[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x
report at bugs.python.org
Wed Jun 1 11:23:07 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
The leaking file descriptor is a the read end of a pipe created in the test (the test creates 5 pipes, 10 file descriptors). On creation (in the parent process), this file descriptor has the mode : st_mode=4528. In the child process, the file descriptor has the mode : st_mode=420, which is an invalid mode. The child cannot read or write into this file: write raises an OSError(9, 'Bad file descriptor') and read raises an OSError(45, 'Operation not supported'). It looks like a kernel (Darwin) bug, fixed in Mac OS X > 10.4.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list