From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 03:27:43 2011 Received: (at submit) by debbugs.gnu.org; 9 Aug 2011 07:27:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qqgj0-0005xd-TN for submit@debbugs.gnu.org; Tue, 09 Aug 2011 03:27:43 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qqgix-0005xV-QL for submit@debbugs.gnu.org; Tue, 09 Aug 2011 03:27:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qqghs-0003CN-61 for submit@debbugs.gnu.org; Tue, 09 Aug 2011 03:26:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:36527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqghs-0003CJ-4d for submit@debbugs.gnu.org; Tue, 09 Aug 2011 03:26:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqghr-0007fj-5v for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2011 03:26:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qqghp-0003Bz-QW for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2011 03:26:31 -0400 Received: from lo.gmane.org ([80.91.229.12]:55426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qqghp-0003Bp-LW for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2011 03:26:29 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qqghn-0003C8-Ua for bug-gnu-emacs@gnu.org; Tue, 09 Aug 2011 09:26:27 +0200 Received: from amprx01x.nokia.com ([192.100.130.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Aug 2011 09:26:27 +0200 Received: from william.xwl by amprx01x.nokia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Aug 2011 09:26:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: William Xu Subject: 24.0.50; (file-error "Creating process pipe" "no error") Date: Tue, 09 Aug 2011 15:25:56 +0800 Organization: the Church of Emacs Lines: 24 Message-ID: <21gl7h6nnj0b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: amprx01x.nokia.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (windows-nt) Cancel-Lock: sha1:76KwmmJE3VNiEZAPstnM9SbQi6E= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) After running emacs for *some* time(like one or two days), call-process starts to fail: (call-process "ls") Debugger entered--Lisp error: (file-error "Creating process pipe" "no error") call-process("ls") eval((call-process "ls") nil) eval-last-sexp-1(nil) ad-Orig-eval-last-sexp(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) What exactly does this mean? In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-06-28 on 3249CTO Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/build/include' -- William http://xwl.appspot.com From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 04:43:46 2011 Received: (at 9264) by debbugs.gnu.org; 9 Aug 2011 08:43:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qqhub-0007eP-IG for submit@debbugs.gnu.org; Tue, 09 Aug 2011 04:43:46 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QqhuX-0007eG-Mi for 9264@debbugs.gnu.org; Tue, 09 Aug 2011 04:43:42 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QqhtS-0007Hy-NI; Tue, 09 Aug 2011 04:42:34 -0400 Date: Tue, 09 Aug 2011 04:42:34 -0400 Message-Id: From: Eli Zaretskii To: William Xu In-reply-to: <21gl7h6nnj0b.fsf@gmail.com> (message from William Xu on Tue, 09 Aug 2011 15:25:56 +0800) Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") References: <21gl7h6nnj0b.fsf@gmail.com> X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9264 Cc: 9264@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > From: William Xu > Date: Tue, 09 Aug 2011 15:25:56 +0800 > > After running emacs for *some* time(like one or two days), call-process > starts to fail: > > (call-process "ls") > > Debugger entered--Lisp error: (file-error "Creating process pipe" "no error") > call-process("ls") > eval((call-process "ls") nil) > eval-last-sexp-1(nil) > ad-Orig-eval-last-sexp(nil) > eval-last-sexp(nil) > call-interactively(eval-last-sexp nil nil) > > What exactly does this mean? That something is broken inside Emacs, but Emacs doesn't tell what. Did you build Emacs yourself? If so, could you please add a call to GetLastError to sys_pipe (defined on w32.c), after the _pipe call, and when it fails like that, see which error code it returns? > In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) > of 2011-06-28 on 3249CTO This is quite old, suggest to update to a newer version, to avoid wasting energy on an old bug that was already fixed. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 00:08:53 2011 Received: (at submit) by debbugs.gnu.org; 11 Aug 2011 04:08:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrMZg-00087E-8S for submit@debbugs.gnu.org; Thu, 11 Aug 2011 00:08:53 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrMZd-000876-66 for submit@debbugs.gnu.org; Thu, 11 Aug 2011 00:08:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrMYM-000201-SB for submit@debbugs.gnu.org; Thu, 11 Aug 2011 00:07:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:37877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrMYM-0001zx-Qm for submit@debbugs.gnu.org; Thu, 11 Aug 2011 00:07:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:36808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrMYL-0002ST-Qt for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 00:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrMYK-0001zf-GX for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 00:07:29 -0400 Received: from lo.gmane.org ([80.91.229.12]:40292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrMYK-0001zZ-BW for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 00:07:28 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QrMYI-0003ks-8z for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 06:07:26 +0200 Received: from amprx01x.nokia.com ([192.100.130.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Aug 2011 06:07:26 +0200 Received: from william.xwl by amprx01x.nokia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Aug 2011 06:07:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: William Xu Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") Date: Thu, 11 Aug 2011 12:05:28 +0800 Organization: the Church of Emacs Lines: 47 Message-ID: <21gld3gcd247.fsf@gmail.com> References: <21gl7h6nnj0b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: amprx01x.nokia.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:VP49vB5uQBjBAy+0qQ5DMqlkKKw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) Eli Zaretskii writes: That something is broken inside Emacs, but Emacs doesn't tell what. Did you build Emacs yourself? If so, could you please add a call to GetLastError to sys_pipe (defined on w32.c), after the _pipe call, and when it fails like that, see which error code it returns? I was using Sean Sieger's build. Anyway, i update bzr repo to "revno: 105425". Made following change: === modified file 'src/w32.c' --- src/w32.c 2011-07-09 07:00:58 +0000 +++ src/w32.c 2011-08-10 01:26:51 +0000 @@ -5218,6 +5218,7 @@ pipes into binary mode; we will do text mode translation ourselves if required. */ rc = _pipe (phandles, 0, _O_NOINHERIT | _O_BINARY); + printf("xwl: error = %d\n", GetLastError ()); if (rc == 0) { In gdb, the error number printed is always zero, even when this file-error comes up. But it seems it would first give this error: (file-error "Spawning child process" "resource temporarily unavailable") After a while, starts to give following error: (file-error "Creating process pipe" "no error") Is it reaching some process number limit? > In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) > of 2011-06-28 on 3249CTO This is quite old, suggest to update to a newer version, to avoid wasting energy on an old bug that was already fixed. BTW, on my laptop, same OS, with a build back to Feburary, it has no such problem. -- William http://xwl.appspot.com From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 00:46:05 2011 Received: (at 9264) by debbugs.gnu.org; 11 Aug 2011 04:46:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrN9g-0000WB-RL for submit@debbugs.gnu.org; Thu, 11 Aug 2011 00:46:04 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrN9e-0000W4-9n for 9264@debbugs.gnu.org; Thu, 11 Aug 2011 00:46:03 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QrN8O-0005wb-SI; Thu, 11 Aug 2011 00:44:44 -0400 Date: Thu, 11 Aug 2011 00:44:44 -0400 Message-Id: From: Eli Zaretskii To: William Xu In-reply-to: <21gld3gcd247.fsf@gmail.com> (message from William Xu on Thu, 11 Aug 2011 12:05:28 +0800) Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9264 Cc: 9264@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > From: William Xu > Date: Thu, 11 Aug 2011 12:05:28 +0800 > > === modified file 'src/w32.c' > --- src/w32.c 2011-07-09 07:00:58 +0000 > +++ src/w32.c 2011-08-10 01:26:51 +0000 > @@ -5218,6 +5218,7 @@ > pipes into binary mode; we will do text mode translation ourselves > if required. */ > rc = _pipe (phandles, 0, _O_NOINHERIT | _O_BINARY); > + printf("xwl: error = %d\n", GetLastError ()); > > if (rc == 0) > { > > In gdb, the error number printed is always zero, even when this > file-error comes up. But it seems it would first give this error: > > (file-error "Spawning child process" "resource temporarily unavailable") > > After a while, starts to give following error: > > (file-error "Creating process pipe" "no error") > > Is it reaching some process number limit? Not sure yet, but it sounds unlikely (the limit is on simultaneous processes). Do you see the value of rc becoming negative at some point? If so, does _pipe return a negative value, or does it become negative in this fragment below the call to _pipe? if (phandles[0] >= MAXDESC || phandles[1] >= MAXDESC) { _close (phandles[0]); _close (phandles[1]); rc = -1; } If the latter, it sounds like we are not closing the file handles somewhere. > > In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) > > of 2011-06-28 on 3249CTO > > This is quite old, suggest to update to a newer version, to avoid > wasting energy on an old bug that was already fixed. That's a good clue, thanks. I will try to look into the changes since then. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 04:27:21 2011 Received: (at submit) by debbugs.gnu.org; 11 Aug 2011 08:27:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrQbp-0005Zg-H6 for submit@debbugs.gnu.org; Thu, 11 Aug 2011 04:27:21 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrQbn-0005ZV-Bp for submit@debbugs.gnu.org; Thu, 11 Aug 2011 04:27:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrQaU-0005Ny-VP for submit@debbugs.gnu.org; Thu, 11 Aug 2011 04:26:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:45028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrQaU-0005Np-Tv for submit@debbugs.gnu.org; Thu, 11 Aug 2011 04:25:58 -0400 Received: from eggs.gnu.org ([140.186.70.92]:43538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrQaU-0000xT-1M for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 04:25:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrQaR-0005N4-Lt for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 04:25:58 -0400 Received: from lo.gmane.org ([80.91.229.12]:41889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrQaR-0005N0-Fc for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 04:25:55 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QrQaN-0003VE-Cq for bug-gnu-emacs@gnu.org; Thu, 11 Aug 2011 10:25:51 +0200 Received: from amprx01x.nokia.com ([192.100.130.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Aug 2011 10:25:51 +0200 Received: from william.xwl by amprx01x.nokia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Aug 2011 10:25:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: William Xu Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") Date: Thu, 11 Aug 2011 16:25:31 +0800 Organization: the Church of Emacs Lines: 24 Message-ID: <21glr54se4n8.fsf@gmail.com> References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: amprx01x.nokia.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:lh3Q6nDHId2f2CT0nYf31Xp8pEY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) Eli Zaretskii writes: Not sure yet, but it sounds unlikely (the limit is on simultaneous processes). Do you see the value of rc becoming negative at some point? If so, does _pipe return a negative value, or does it become negative in this fragment below the call to _pipe? if (phandles[0] >= MAXDESC || phandles[1] >= MAXDESC) { _close (phandles[0]); _close (phandles[1]); rc = -1; } If the latter, it sounds like we are not closing the file handles somewhere. I put a printf after "rc = -1". I can see lots of logs from there. _pipe never returns a negative value. -- William http://xwl.appspot.com From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 11 06:36:11 2011 Received: (at 9264) by debbugs.gnu.org; 11 Aug 2011 10:36:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrScU-0000IK-Om for submit@debbugs.gnu.org; Thu, 11 Aug 2011 06:36:11 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QrScR-0000IC-MK for 9264@debbugs.gnu.org; Thu, 11 Aug 2011 06:36:08 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QrSbA-0002nX-LR; Thu, 11 Aug 2011 06:34:48 -0400 Date: Thu, 11 Aug 2011 06:34:48 -0400 Message-Id: From: Eli Zaretskii To: William Xu In-reply-to: <21glr54se4n8.fsf@gmail.com> (message from William Xu on Thu, 11 Aug 2011 16:25:31 +0800) Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> <21glr54se4n8.fsf@gmail.com> X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9264 Cc: 9264@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > From: William Xu > Date: Thu, 11 Aug 2011 16:25:31 +0800 > > if (phandles[0] >= MAXDESC || phandles[1] >= MAXDESC) > { > _close (phandles[0]); > _close (phandles[1]); > rc = -1; > } > > If the latter, it sounds like we are not closing the file handles > somewhere. > > I put a printf after "rc = -1". I can see lots of logs from there. > _pipe never returns a negative value. We are close. This probably means that we are not closing file descriptors somewhere. When these printf's about rc == -1 start to appear, can you look at all the elements of the fd_info[] array (there are 64 of them), and see which flags are set on most of the elements, and whether or not the `cp' member is non-NULL? This information might give a clue as to what functionality is stealing the file descriptors and not releasing them. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 17 05:34:23 2011 Received: (at 9264) by debbugs.gnu.org; 17 Aug 2011 09:34:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtcVz-0005Sq-2E for submit@debbugs.gnu.org; Wed, 17 Aug 2011 05:34:23 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtcVw-0005Sh-4v for 9264@debbugs.gnu.org; Wed, 17 Aug 2011 05:34:21 -0400 Received: by ywm21 with SMTP id 21so541087ywm.3 for <9264@debbugs.gnu.org>; Wed, 17 Aug 2011 02:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=fdIdltdpDPs+9WaCcawvDBxTXon5vD1mdLkdrh+wwVU=; b=L6IhV2g3VuTDUJWa9y3qLC/3i0MICVz6uy0/SZ2BCLG5zIR2JS+R/VsuofqYvIQwtt GCnJhaNzuS1wuwC79RMmqVamxFPpdOR/hD1Fp5XXAaeZbCL9ZOqpx0sCHSBPv8NhWSpa qvluyLNUZ7YiZGaNcPZIqj/6hD/MaLu6D11BI= MIME-Version: 1.0 Received: by 10.146.121.9 with SMTP id t9mr815205yac.17.1313573547004; Wed, 17 Aug 2011 02:32:27 -0700 (PDT) Received: by 10.146.86.13 with HTTP; Wed, 17 Aug 2011 02:32:26 -0700 (PDT) In-Reply-To: References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> <21glr54se4n8.fsf@gmail.com> Date: Wed, 17 Aug 2011 17:32:26 +0800 Message-ID: Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") From: William Xu To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 9264 Cc: 9264@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) 2011/8/11 Eli Zaretskii : > We are close. =C2=A0This probably means that we are not closing file > descriptors somewhere. =C2=A0When these printf's about rc =3D=3D -1 start= to > appear, can you look at all the elements of the fd_info[] array (there > are 64 of them), and see which flags are set on most of the elements, > and whether or not the `cp' member is non-NULL? =C2=A0This information > might give a clue as to what functionality is stealing the file > descriptors and not releasing them. Here is the fd_info array. Most flags are 273, 274 or 0x111, 0x112, namely FILE_PIPE read and write? And most cp member is NULL, does that imply thos= e are not properly released ones? $1 =3D { {flags =3D 0, hnd =3D 0x0, cp =3D 0x0 }, {flags =3D 0, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 0, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 1559, hnd =3D 0x234, cp =3D 0x13b1200}, {flags =3D 273, hnd =3D 0x358, cp =3D 0x13b1518}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x13b14c0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x13b1468}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x13b1410}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x13b13b8}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x13b1570}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 273, hnd =3D 0x0, cp =3D 0x0}, {flags =3D 274, hnd =3D 0x0, cp =3D 0x0}} -William From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 23 06:55:51 2011 Received: (at 9264) by debbugs.gnu.org; 23 Sep 2011 10:55:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R73Q7-0008S3-0f for submit@debbugs.gnu.org; Fri, 23 Sep 2011 06:55:51 -0400 Received: from mail-yi0-f44.google.com ([209.85.218.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R73Q4-0008Rw-Uh for 9264@debbugs.gnu.org; Fri, 23 Sep 2011 06:55:50 -0400 Received: by yic13 with SMTP id 13so2367879yic.3 for <9264@debbugs.gnu.org>; Fri, 23 Sep 2011 03:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WWu1TXlCH101dAM9nx+5mplS6DERoMigLH7v/rsHyGk=; b=mgLUyJhCY9kdxRVcTYhlQaut1Na+qXTasxt4EFf+0x5Cjd613GMyWH5zSayTsA4gG9 vPz67pnjg5OeoJReqaqkSgWU8btHcDOyqS0m8Qamw+ER5CpqO6yLGMQ7ZL3pkBI4DThp f/icl3MmrXPoGkRK2JQyFPxbPrjuE8IkZj2Nw= MIME-Version: 1.0 Received: by 10.150.186.6 with SMTP id j6mr3265846ybf.211.1316775322533; Fri, 23 Sep 2011 03:55:22 -0700 (PDT) Received: by 10.147.136.12 with HTTP; Fri, 23 Sep 2011 03:55:22 -0700 (PDT) In-Reply-To: References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> <21glr54se4n8.fsf@gmail.com> Date: Fri, 23 Sep 2011 13:55:22 +0300 Message-ID: Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") From: William Xu To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 9264 Cc: 9264@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.1 (----) It seems I'm able to reproduce it easily now. 1. emacs -Q 2. eval below: (progn (dotimes (i 50) (start-process "hi" nil "ls") (message "%d" i) ;(sleep-for 1) )) It gives an error: while: Spawning child process: resource temporarily unavailable The same code works well under linux, i can even set counter to 1000, just takes some time to finish. -William From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 23 07:04:32 2011 Received: (at 9264) by debbugs.gnu.org; 23 Sep 2011 11:04:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R73YV-0000EQ-U9 for submit@debbugs.gnu.org; Fri, 23 Sep 2011 07:04:32 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R73YT-0000EH-Nn for 9264@debbugs.gnu.org; Fri, 23 Sep 2011 07:04:30 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LRZ008002OA5C00@a-mtaout21.012.net.il> for 9264@debbugs.gnu.org; Fri, 23 Sep 2011 14:04:02 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.8.215]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LRZ0089J2QN4Z40@a-mtaout21.012.net.il>; Fri, 23 Sep 2011 14:04:01 +0300 (IDT) Date: Fri, 23 Sep 2011 14:04:01 +0300 From: Eli Zaretskii Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") In-reply-to: X-012-Sender: halo1@inter.net.il To: William Xu Message-id: <83y5xfr04e.fsf@gnu.org> References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> <21glr54se4n8.fsf@gmail.com> X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 9264 Cc: 9264@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Fri, 23 Sep 2011 13:55:22 +0300 > From: William Xu > Cc: 9264@debbugs.gnu.org > > It seems I'm able to reproduce it easily now. > > 1. emacs -Q > 2. eval below: > > (progn > (dotimes (i 50) > (start-process "hi" nil "ls") > (message "%d" i) > ;(sleep-for 1) > )) > > It gives an error: > while: Spawning child process: resource temporarily unavailable Right, thanks. I will look into this, if no one beats me to it. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 29 12:22:28 2011 Received: (at 9264) by debbugs.gnu.org; 29 Sep 2011 16:22:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R9JNT-0001fl-Kz for submit@debbugs.gnu.org; Thu, 29 Sep 2011 12:22:28 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R9JNQ-0001fZ-EJ for 9264@debbugs.gnu.org; Thu, 29 Sep 2011 12:22:25 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LSA00700LCQDA00@a-mtaout20.012.net.il> for 9264@debbugs.gnu.org; Thu, 29 Sep 2011 19:21:19 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.8.215]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LSA007QXLFI6F60@a-mtaout20.012.net.il>; Thu, 29 Sep 2011 19:21:19 +0300 (IDT) Date: Thu, 29 Sep 2011 19:21:21 +0300 From: Eli Zaretskii Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") In-reply-to: X-012-Sender: halo1@inter.net.il To: William Xu Message-id: <83ipobe2v2.fsf@gnu.org> References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> <21glr54se4n8.fsf@gmail.com> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 9264 Cc: 9264@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Fri, 23 Sep 2011 13:55:22 +0300 > From: William Xu > Cc: 9264@debbugs.gnu.org > > It seems I'm able to reproduce it easily now. > > 1. emacs -Q > 2. eval below: > > (progn > (dotimes (i 50) > (start-process "hi" nil "ls") > (message "%d" i) > ;(sleep-for 1) > )) > > It gives an error: > while: Spawning child process: resource temporarily unavailable I'm not sure the problem reproduced by this snippet is the same one as what you reported originally. In the above snippet, the problem happens because we never give Emacs a chance to take note of the processes that exit, and free the handles used for the 2 pipes we open for each subprocess. If I uncomment the sleep-for call, the program runs to completion with no problems, even if I replace 1 with 0.1. The underlying issue is that the Windows build of Emacs is limited to 31 simultaneous subprocesses. That's because the APIs used on Windows to listen to subprocesses are limited to 64 handles, and we use 2 handles per pipe (3 more handles are taken by the standard I/O handles). So we cannot start 50 subprocesses unless the first few exit by the time we get to the 32nd process. Emacs checks for exited subprocesses when it is idle, but the above loop never gives it a chance to do that. Adding a call to sleep-for does, and so the problem disappears. I can achieve similar results with a patch I show below, which causes sys_pipe to retry the failed _pipe call after doing the equivalent of `(sleep-for 0.1)'. However, I'm not sure this actually solves your original problem, for two reasons: . you said that your problem starts happening only after some time that Emacs is up and running, whereas this recipe works right away after starting "emacs -Q" . I really doubt that you use some code that launches many subprocesses one after the other without any idleness in between So I think there's a different bug somewhere. Or maybe I'm missing something. Can you tell more about the context of your original problem, which produced the following backtrace: Debugger entered--Lisp error: (file-error "Creating process pipe" "no error") call-process("ls") eval((call-process "ls") nil) eval-last-sexp-1(nil) ad-Orig-eval-last-sexp(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) Was "ls" the only subprocess active at that time, or were you launching many more at the same time? If none of the above gives a clue, could you please add printf's to the following functions: . create_child and register_child, where they assign cp->fd = fd . delete_child In all of these places, please print cp->fd. When the problem starts to happen, it would be interesting to see which file descriptors somehow were not released. Here's the patch that allows your test case to run without failing: === modified file 'src/w32.c' --- src/w32.c 2011-09-09 01:06:52 +0000 +++ src/w32.c 2011-09-29 15:37:54 +0000 @@ -5212,11 +5212,13 @@ sys_pipe (int * phandles) { int rc; unsigned flags; + int retried = 0; /* make pipe handles non-inheritable; when we spawn a child, we replace the relevant handle with an inheritable one. Also put pipes into binary mode; we will do text mode translation ourselves if required. */ + retry: rc = _pipe (phandles, 0, _O_NOINHERIT | _O_BINARY); if (rc == 0) @@ -5227,7 +5229,14 @@ sys_pipe (int * phandles) { _close (phandles[0]); _close (phandles[1]); + if (!retried) + { + wait_reading_process_output (0, 100000, 0, 0, Qnil, NULL, 0); + retried = 1; + goto retry; + } rc = -1; + errno = EAGAIN; } else { From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 04 21:47:48 2012 Received: (at 9264) by debbugs.gnu.org; 5 Jun 2012 01:47:48 +0000 Received: from localhost ([127.0.0.1]:57675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sbis7-0004Dy-Mj for submit@debbugs.gnu.org; Mon, 04 Jun 2012 21:47:47 -0400 Received: from mail-vc0-f172.google.com ([209.85.220.172]:33472) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sbis6-0004Dn-80 for 9264@debbugs.gnu.org; Mon, 04 Jun 2012 21:47:46 -0400 Received: by vcqp1 with SMTP id p1so3011877vcq.3 for <9264@debbugs.gnu.org>; Mon, 04 Jun 2012 18:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=e9GYsPQcIJO4cD9rkO+4FDUfT21uW7KjE5kdinb+0xY=; b=GiowPO5BZL/2owaZAnYdNR+uWjOV2FhE8mLk84zJ+nVwLvquNr4pLFpBEFM311u5PN lcq3xL3lrYJMYV6RFXZ/ZwOxqq/GKFvyLGyzJKDfNjiIjEwlHehQckzfKwheuuU2+Ejy eJ5SZwEGyizJ6bGgdRT+reHYeleSKGGN23agQySzEtMikzafCZrMNjDXgpeoB+5ATl1B EhhXXTmIdb5Nna6YVcSQ2bp2GCNmy3p2ElZD6SlzbLtuFkemciYv8VcsmrnW02J0E5vJ 3Xdu/frRlNowNN1Yiwx/1wAe+QzWDrAz/SuMqDoJMz6H/kKFzzQAlJnq53xQqfoCCt/g KVnw== MIME-Version: 1.0 Received: by 10.52.95.203 with SMTP id dm11mr5073774vdb.70.1338860740595; Mon, 04 Jun 2012 18:45:40 -0700 (PDT) Received: by 10.52.69.139 with HTTP; Mon, 4 Jun 2012 18:45:40 -0700 (PDT) In-Reply-To: <83ipobe2v2.fsf@gnu.org> References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> <21glr54se4n8.fsf@gmail.com> <83ipobe2v2.fsf@gnu.org> Date: Tue, 5 Jun 2012 09:45:40 +0800 Message-ID: Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") From: William Xu To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9264 Cc: 9264@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Hi, I believe the following commit has also fixed my problem. i have not reproduced it in days. Author: Eli Zaretskii Date: Sat May 5 11:40:31 2012 +0300 Fix failures in starting subprocesses on Windows 7. src/w32proc.c (new_child): Force Windows to reserve only 64KB of stack for each reader_thread, instead of defaulting to 8MB determined by the linker. This avoids failures in creating subprocesses on Windows 7, see the discussion in this thread: http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00119.html -William From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 04 22:50:14 2012 Received: (at 9264-done) by debbugs.gnu.org; 5 Jun 2012 02:50:14 +0000 Received: from localhost ([127.0.0.1]:57722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SbjqY-0005dG-2K for submit@debbugs.gnu.org; Mon, 04 Jun 2012 22:50:14 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:61491) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SbjqC-0005cR-SM for 9264-done@debbugs.gnu.org; Mon, 04 Jun 2012 22:50:12 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M5400400I6FW700@a-mtaout20.012.net.il> for 9264-done@debbugs.gnu.org; Tue, 05 Jun 2012 05:47:45 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M54004W0IFLM3A0@a-mtaout20.012.net.il>; Tue, 05 Jun 2012 05:47:45 +0300 (IDT) Date: Tue, 05 Jun 2012 05:47:54 +0300 From: Eli Zaretskii Subject: Re: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") In-reply-to: X-012-Sender: halo1@inter.net.il To: William Xu Message-id: <83sjeawk2t.fsf@gnu.org> References: <21gl7h6nnj0b.fsf@gmail.com> <21gld3gcd247.fsf@gmail.com> <21glr54se4n8.fsf@gmail.com> <83ipobe2v2.fsf@gnu.org> X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 9264-done Cc: 9264-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Tue, 5 Jun 2012 09:45:40 +0800 > From: William Xu > Cc: 9264@debbugs.gnu.org > > I believe the following commit has also fixed my problem. i have not > reproduced it in days. > > Author: Eli Zaretskii > Date: Sat May 5 11:40:31 2012 +0300 > > Fix failures in starting subprocesses on Windows 7. > > src/w32proc.c (new_child): Force Windows to reserve only 64KB of > stack for each reader_thread, instead of defaulting to 8MB > determined by the linker. This avoids failures in creating > subprocesses on Windows 7, see the discussion in this thread: > http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00119.html Thanks. I'm therefore closing this bug; feel free to reopen with new data if the bug recurs. From unknown Wed Jun 18 00:10:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 03 Jul 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator