STINNER Victor added the comment:

test_multiprocessing_spawn hangs on running test_child_fd_inflation(). Child 
processes call test.support.fd_count(). But in a debug build, if the fd is 
invalid, os.dup(fd) kills immediately the process without letting Python to 
handle the error. It seems like os.dup(fd) raises a OSError(EBADF), as 
expected, in release mode.

The test is new and currently only in master, see bpo-26732. The commit:

commit 896145d9d266ee2758cfcd7691238cbc1f9e1ab8
Author: Antoine Pitrou <pit...@free.fr>
Date:   Sat Jul 22 13:22:54 2017 +0200

    bpo-26732: fix too many fds in processes started with the "forkserver" 
method (#2813)
    
    * bpo-26732: fix too many fds in processes started with the "forkserver" 
method
    
    A child process would inherit as many fds as the number of still-running 
children.
    
    * Add blurb and test comment

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31009>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to