unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Cc: 13527@debbugs.gnu.org
Subject: bug#13527: 24.2.92; Spawning child process: resource temporarily unavailable
Date: Tue, 22 Jan 2013 17:39:56 +0200	[thread overview]
Message-ID: <83txq9mdkj.fsf@gnu.org> (raw)
In-Reply-To: <86obgh8cq5.fsf@somewhere.org>

> From: "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com>
> Cc: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>,  13527@debbugs.gnu.org
> Date: Tue, 22 Jan 2013 16:21:54 +0100
> 
> > If you can run Emacs under GDB, I can tell you how to get the
> > information needed to understand this problem.
> 
> Do you mean: launching Emacs from within GDB?  Or simply being able to attach
> GDB to a running Emacs?  In the latter case, yes.

It doesn't matter, whatever is easier for you.

> So does the first case as well, apparently:
> 
> --8<---------------cut here---------------start------------->8---
> $ cd Program\ Files\ \(x86\)/emacs-24.2.92/bin
> $ gdb runemacs.exe

You need to use "gdb emacs.exe", runemacs.exe is just a launcher
program.

> So, yes, I'd be interested by how to study this...

The error message comes from this snippet in callproc.c:

  #ifdef WINDOWSNT
    prepare_standard_handles (in, out, err, handles);
    set_process_dir (SDATA (current_dir));
    /* Spawn the child.  (See ntproc.c:Spawnve).  */
    cpid = spawnve (_P_NOWAIT, new_argv[0], new_argv, env);
    reset_standard_handles (in, out, err, handles);
    if (cpid == -1)
      /* An error occurred while trying to spawn the process.  */
      report_file_error ("Spawning child process", Qnil);
    return cpid;

  #else  /* not WINDOWSNT */

The call to 'spawnve' will end up in w32proc.c:sys_spawnve, which
returns EAGAIN here:

  cp = new_child ();
  if (cp == NULL)
    {
      errno = EAGAIN;
      return -1;
    }

Therefore, step into spawnve, then step into new_child, and see why
new_child returns NULL.  I see a couple of places where it does so,
one of them because there's already 32 subprocesses running (which is
a hard limit in Emacs on Windows), the other one because some system
APIs fail.

If you need more instructions about the specific GDB commands to use,
please don't hesitate to ask.

Thanks.





  reply	other threads:[~2013-01-22 15:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22 12:55 bug#13527: 24.2.92; Spawning child process: resource temporarily unavailable Sebastien Vauban
2013-01-22 13:46 ` Eli Zaretskii
     [not found] ` <mailman.18072.1358862416.855.bug-gnu-emacs@gnu.org>
     [not found]   ` <mailman.18072.1358862416.855.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-01-22 15:21     ` Sebastien Vauban
2013-01-22 15:39       ` Eli Zaretskii [this message]
     [not found]       ` <mailman.18081.1358869199.855.bug-gnu-emacs@gnu.org>
     [not found]         ` <mailman.18081.1358869199.855.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-01-28 15:55           ` Sebastien Vauban
2013-01-28 18:43             ` Eli Zaretskii
     [not found]             ` <mailman.18496.1359398619.855.bug-gnu-emacs@gnu.org>
     [not found]               ` <mailman.18496.1359398619.855.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-02-12  9:21                 ` bug#13527: 24.2.92 + 24.2.93; " Sebastien Vauban
2013-02-12 16:17                   ` Eli Zaretskii
     [not found]                   ` <mailman.19680.1360685866.855.bug-gnu-emacs@gnu.org>
     [not found]                     ` <mailman.19680.1360685866.855.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-02-12 17:21                       ` Sebastien Vauban

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=83txq9mdkj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13527@debbugs.gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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).