From: Eli Zaretskii <eliz@gnu.org>
To: William Xu <william.xwl@gmail.com>
Cc: 9264@debbugs.gnu.org
Subject: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error")
Date: Thu, 11 Aug 2011 00:44:44 -0400 [thread overview]
Message-ID: <E1QrN8O-0005wb-SI@fencepost.gnu.org> (raw)
In-Reply-To: <21gld3gcd247.fsf@gmail.com> (message from William Xu on Thu, 11 Aug 2011 12:05:28 +0800)
> From: William Xu <william.xwl@gmail.com>
> 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.
next prev parent reply other threads:[~2011-08-11 4:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 7:25 bug#9264: 24.0.50; (file-error "Creating process pipe" "no error") William Xu
2011-08-09 8:42 ` Eli Zaretskii
2011-08-11 4:05 ` William Xu
2011-08-11 4:44 ` Eli Zaretskii [this message]
2011-08-11 8:25 ` William Xu
2011-08-11 10:34 ` Eli Zaretskii
2011-08-17 9:32 ` William Xu
2011-09-23 10:55 ` William Xu
2011-09-23 11:04 ` Eli Zaretskii
2011-09-29 16:21 ` Eli Zaretskii
2012-06-05 1:45 ` William Xu
2012-06-05 2:47 ` 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=E1QrN8O-0005wb-SI@fencepost.gnu.org \
--to=eliz@gnu.org \
--cc=9264@debbugs.gnu.org \
--cc=william.xwl@gmail.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).