Re: bug: subprocess.Popen() hangs

2007-10-26 Thread Nick Craig-Wood
Jonathan Amsterdam <[EMAIL PROTECTED]> wrote: > This is a bug in python 2.4 under Linux 2.6. > > I occasionally see subprocess.Popen() fail to return, and I have > finally figured out roughly what's going on. It involves the GC and > stderr. Interesting Do you have a program to demonstrate t

bug: subprocess.Popen() hangs

2007-10-25 Thread Jonathan Amsterdam
This is a bug in python 2.4 under Linux 2.6. I occasionally see subprocess.Popen() fail to return, and I have finally figured out roughly what's going on. It involves the GC and stderr. 1. os.fork() 2. Parent blocks reading from errpipe_read (subprocess.py:982) 3. In child, a GC occurs before t