[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

Charles-François Natali report at bugs.python.org
Thu Mar 28 17:52:18 CET 2013


Charles-François Natali added the comment:

> i don't think that's it, look at the result output in comment #183756: the list of fds is correct, except that they aren't closed as they should be.

Of course the list is correct: the message is printed by the parent
process, which opened the FDs ;-)

> i can't reproduce the result when running code by hand, so it's either a race or an issue with test setup.

If it's random, yes. One way to debug this would be to run the test
with "strace -f".

> so far i figured out that this goes away when patch from issue #16962 is reverted

Note that the patch doesn't retry getdents64() on EINTR, and retries
close() on EINTR while it's not advised, see this post by Linus:
http://article.gmane.org/gmane.linux.kernel/330619

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12466>
_______________________________________


More information about the Python-bugs-list mailing list