[issue6610] Subprocess descriptor debacle

2011-01-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Superseded by #10806. -- nosy: +georg.brandl resolution: - duplicate status: open - closed superseder: - Subprocess error if fds 0,1,2 are closed ___ Python tracker rep...@bugs.python.org

[issue6610] Subprocess descriptor debacle

2010-07-20 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The patch is small, is there any solid reason for not committing it? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6610

[issue6610] Subprocess descriptor debacle

2010-05-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Would the test still be correct if it didn't close stderr? I feel closing stderr is very bad from a debuggability standpoint. -- ___ Python tracker rep...@bugs.python.org

[issue6610] Subprocess descriptor debacle

2010-05-14 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: I think if the test is conducted without closing stderr, it will only check that stdin/stdout are handled correctly (you could assume that if one handled stdin/stdout correctly, they did the same with stderr). However, since I've used a

[issue6610] Subprocess descriptor debacle

2010-05-13 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Thanks for the test! I'll take a look and likely commit this later. -- assignee: - gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6610

[issue6610] Subprocess descriptor debacle

2010-05-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +astrand, pitrou stage: needs patch - patch review versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6610 ___

[issue6610] Subprocess descriptor debacle

2010-05-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6610 ___ ___ Python-bugs-list

[issue6610] Subprocess descriptor debacle

2010-04-07 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: It seems to me that subprocess is protected against this flaw. Python 2.x has a pure-Python implementation of the child logic (which is susceptible to an unrelated issue). Python 3.x has a C implementation which falls back to pure-Python if

[issue6610] Subprocess descriptor debacle

2009-07-30 Thread Christian Heimes
New submission from Christian Heimes li...@cheimes.de: The subprocess module may suffer from a minor design flaw that is described at http://unixwiz.net/techtips/remap-pipe-fds.html under the heading Descriptor Debacle. The problem can occur under rare conditions when a subprocess is created