Message4705

Author pjenvey
Recipients otmarhumbel, pjenvey
Date 2009-05-22.02:43:35
SpamBayes Score 3.1524573e-06
Marked as misclassified No
Message-id <1242960217.78.0.891349331169.issue1351@psf.upfronthosting.co.za>
In-reply-to
Content
Turns out this is just an abuse of subprocess.call. The code is 
originally from test_cmd_line, doh

call just wait()s, it doesn't consume the PIPEs we specify. With nothing 
consuming those pipes, the child can deadlock after writing enough 
output to fill the pipe's buffer

The -m runpy fnordXXX was the only trigger because it wrote enough 
output (a traceback) to fill the buffer, and it only happened on Windows 
because Windows has a pretty small pipe buf

The author of subprocess confirms that this is indeed a bad idea here:
http://mail.python.org/pipermail/python-dev/2006-June/066111.html

fixed in r6363
History
Date User Action Args
2009-05-22 02:43:37pjenveysetmessageid: <1242960217.78.0.891349331169.issue1351@psf.upfronthosting.co.za>
2009-05-22 02:43:37pjenveysetrecipients: + pjenvey, otmarhumbel
2009-05-22 02:43:37pjenveylinkissue1351 messages
2009-05-22 02:43:36pjenveycreate