unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Li Zhai <mrzhaili@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 13079@debbugs.gnu.org
Subject: bug#13079: 24.3.50; Emacs cannot create subprocess
Date: Wed, 5 Dec 2012 10:26:51 +0800	[thread overview]
Message-ID: <CAPPz3g4RxarEw+P6DHh0ii3LrHOB4Ae8yWvo+sq-bTVZq1yW8Q@mail.gmail.com> (raw)
In-Reply-To: <83ehj5r2gs.fsf@gnu.org>

Sorry. I'll explain more clear. I'm using emacs under windows 7.

I mean, emacs display the messages before the loop ends. And all the
processes are gone, emacs did not wait them to exit.

I've tried two different version from
http://ftp.gnu.org/gnu/emacs/windows/emacs-23.4-bin-i386.zip and
http://alpha.gnu.org/gnu/emacs/windows/emacs-20120917-r110062-bin-i386.zip

Here is how to reproduce the bug:

1. Open the emacs using ``emacs -Q''

2. paste the code into *scratch* buffer:

  (progn
   (dotimes (i 35)
     (call-process-region (point-min) (point-min) "ddeclient" t 0 nil
 "SUMATRA" "control")
     (message "%d" i)))

the *ONLY* difference between the previous code is I increase the
repeat times to call the function `call-process-region'. Here is 35
times, you could try to increase the number lager if the bug not
reproducing.

3. Eval the code using C-x C-e

4. You should see the emacs report an error:

Debugger entered--Lisp error: (file-error "Spawning child process"
"resource temporarily unavailable")

5. Quit the elisp debugger and execute the code again(press C-x C-e),
this time emacs should report:

Debugger entered--Lisp error: (file-error "Opening output file"
"permission denied" "c:/Users/iot003/Desktop/emacs-24.2.50/bin")
  call-process-region(1 1 "ddeclient" t 0 nil "SUMATRA" "control")

6. Quit the elisp debugger. This time, emacs cannot create any
sub-process any more. Try to execute a shell command by press `M-!
ls', you will find it out.

This problem occurred more often on my private build version. I guess
the problem is the default stack size assigned by compiler is too
small.

Thanks for your reply, Eli. Have a good day.


On Wed, Dec 5, 2012 at 4:23 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Tue, 4 Dec 2012 16:03:56 +0800
>> From: Li Zhai <mrzhaili@gmail.com>
>>
>> I've noticed emacs cannot create subprocess in some cases:
>>
>>  (progn
>>   (dotimes (i 25)
>>     (call-process-region (point-min) (point-min) "ddeclient" t 0 nil
>> "SUMATRA" "control")
>>     (message "%d" i)))
>>
>> After executed above codes, emacs report:
>>
>> "Spawning child process" "resource temporarily unavailable"
>
> I cannot reproduce this here.  Does this happen in "emacs -Q"?
> Also, what do you mean "after executing"?  Does it mean Emacs displays
> this message before it ends the loop, i.e. before it launches 25
> processes?  Or do you mean that after all the 25 processes are
> launched, Emacs cannot start more subprocesses?  If the latter, does
> the problem go away after you wait for all the 25 ddeclient
> subprocesses to exit?





  reply	other threads:[~2012-12-05  2:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-04  8:03 bug#13079: 24.3.50; Emacs cannot create subprocess Li Zhai
2012-12-04 20:23 ` Eli Zaretskii
2012-12-05  2:26   ` Li Zhai [this message]
2012-12-05 17:29     ` Eli Zaretskii
2012-12-06  1:58       ` Li Zhai
2012-12-06  3:54         ` Eli Zaretskii
2012-12-06  8:18           ` Li Zhai
2012-12-06 19:04             ` Eli Zaretskii
2012-12-15 13:41       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPPz3g4RxarEw+P6DHh0ii3LrHOB4Ae8yWvo+sq-bTVZq1yW8Q@mail.gmail.com \
    --to=mrzhaili@gmail.com \
    --cc=13079@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).