[issue20318] subprocess.Popen can hang in threaded applications in Python 2

2014-04-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: I added a pointer to subprocess32 in the 2.7 subprocess docs in dd52365c8721. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue20318] subprocess.Popen can hang in threaded applications in Python 2

2014-02-09 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20318] subprocess.Popen can hang in threaded applications in Python 2

2014-02-02 Thread STINNER Victor
Changes by STINNER Victor : -- title: subprocess.Popen can hang in threaded applications -> subprocess.Popen can hang in threaded applications in Python 2 ___ Python tracker ___

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: A pointer in the 2.7 subprocess docs to subprocess32 does seem like a good idea, its what i tell everyone to do anyways. :) If you've got a patch for this in 2.7 feel free to add it here and I can take a look. leaving this open as a reminder to me to update

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Andrew Lutomirski
Andrew Lutomirski added the comment: FWIW, sticking a mutex in Popen.__init__ (wrapping the whole thing) seems to work around this issue (for programs that aren't using multiprocessing or fork, for example). This might be a good-enough fix and be safe enough to stick in the standard library.

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Andrew Lutomirski
Andrew Lutomirski added the comment: Would it be worth adding something to the Python 2.7 subprocess docs indicating that subprocess is known to be broken? -- resolution: wont fix -> status: closed -> open ___ Python tracker

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: 2.7 subprocess is fundamentally flawed and cannot be fixed. Install subprocess32 from PyPI. It's fixed in 3.2 and later. -- nosy: +gregory.p.smith resolution: -> wont fix status: open -> closed ___ Python tracker

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread R. David Murray
R. David Murray added the comment: Hmm. I thought someone had already reported this, but I can't find an issue. I suspect it is fixed in 3.4 and it may not be practical to fix it in earlier versions. -- nosy: +gps, haypo, r.david.murray ___ Python

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Andrew Lutomirski
New submission from Andrew Lutomirski: 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_f