Subject: bug#9264: 24.0.50; (file-error "Creating process pipe" "no error")

From: William Xu <[email-masked]>
Date: Wed, 17 Aug 2011 17:32:26 +0800

2011/8/11 Eli Zaretskii <[email-masked]>:

> 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.

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 those are
not properly released ones?

$1 = { {flags = 0, hnd = 0x0, cp = 0x0 },
 {flags = 0, hnd = 0x0, cp = 0x0},
 {flags = 0, hnd = 0x0, cp = 0x0},
 {flags = 1559, hnd = 0x234, cp = 0x13b1200},
 {flags = 273, hnd = 0x358, cp = 0x13b1518},
 {flags = 273, hnd = 0x0, cp = 0x13b14c0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x13b1468},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x13b1410},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x13b13b8},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x13b1570},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0},
 {flags = 273, hnd = 0x0, cp = 0x0},
 {flags = 274, hnd = 0x0, cp = 0x0}}

-William