From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.bugs Subject: bug#13527: 24.2.92; Spawning child process: resource temporarily unavailable Date: Mon, 28 Jan 2013 16:55:28 +0100 Organization: Sebastien Vauban Message-ID: <86zjztti8f.fsf@somewhere.org> References: <86ham9fkbx.fsf@somewhere.org> <86obgh8cq5.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1359388617 19126 80.91.229.3 (28 Jan 2013 15:56:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2013 15:56:57 +0000 (UTC) Cc: Sebastien Vauban , 13527-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Jan 28 16:57:16 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tzr5A-0005M8-0p for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jan 2013 16:57:16 +0100 Original-Received: from localhost ([::1]:34071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tzr4s-0001Lh-94 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Jan 2013 10:56:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tzr4i-0001Kl-G9 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 28 Jan 2013 10:56:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tzr4X-0003ZH-0h for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 28 Jan 2013 10:56:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tzr4W-0003ZD-TI for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 28 Jan 2013 10:56:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tzr4w-00034Y-8G for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Mon, 28 Jan 2013 10:57:02 -0500 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: "Sebastien Vauban" Original-Sender: debbugs-submit-bounces-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Mon, 28 Jan 2013 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 13527 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13527-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B13527.135938858211748 (code B ref 13527); Mon, 28 Jan 2013 15:57:02 +0000 Original-Received: (at 13527) by debbugs.gnu.org; 28 Jan 2013 15:56:22 +0000 Original-Received: from localhost ([127.0.0.1]:52740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzr4H-00033R-EA for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Mon, 28 Jan 2013 10:56:21 -0500 Original-Received: from 81-188-7-133.sdsl.easynet.be ([81.188.7.133]:53374 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tzr4C-00033B-F2 for 13527-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Mon, 28 Jan 2013 10:56:17 -0500 Original-Received: from MUNDANEUM. (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPSA id 8C165500B08; Mon, 28 Jan 2013 16:55:49 +0100 (CET) X-Url: Under construction... X-Archive: encrypt In-Reply-To: (Eli Zaretskii's message of "Tue, 22 Jan 2013 17:39:56 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.92 (windows-nt) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:70403 Archived-At: Hi Eli, Eli Zaretskii wrote: >> From: "Sebastien Vauban" >> >>> If you can run Emacs under GDB, I can tell you how to get the >>> information needed to understand this problem. >> >> 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. I surely will do ask, as I never stepped yet with GDB in any program. First (important) question: for this error, do I need to run GDB before the error happens? Next time it happens, anyway, I'll keep the process open, aside, for a couple of hours. But I can already "positively" tell you that this "spawning child process" error is something *new in 24.2.92* -- I reused 24.2.91 for a couple of days with no problem; using 24.2.92, I got stopped only after a couple of hours. Best regards, Seb -- Sebastien Vauban