Message208577
Running python python_thread_bug.py -j4 often results in one of the threads failing to start until another thread finishes.
The bug appears to be that subprocess's pipe_cloexec function is racy: if another thread forks between os.pipe() and _set_cloexec_flag, then the resulting process could hang on to the write end of the pipe. That will cause the Popen call that got rudely interrupted to wait until the whole resulting process tree dies. |
|
Date |
User |
Action |
Args |
2014-01-20 20:30:19 | Andrew.Lutomirski | set | recipients:
+ Andrew.Lutomirski |
2014-01-20 20:30:19 | Andrew.Lutomirski | set | messageid: <1390249819.03.0.991344131396.issue20318@psf.upfronthosting.co.za> |
2014-01-20 20:30:18 | Andrew.Lutomirski | link | issue20318 messages |
2014-01-20 20:30:18 | Andrew.Lutomirski | create | |
|