Message299050
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 <pitrou@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 |
|
Date |
User |
Action |
Args |
2017-07-25 11:42:38 | vstinner | set | recipients:
+ vstinner, pitrou, davin |
2017-07-25 11:42:38 | vstinner | set | messageid: <1500982958.93.0.610547964616.issue31009@psf.upfronthosting.co.za> |
2017-07-25 11:42:38 | vstinner | link | issue31009 messages |
2017-07-25 11:42:38 | vstinner | create | |
|