This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author subdir
Recipients subdir
Date 2009-06-24.14:32:42
SpamBayes Score 3.8904088e-07
Marked as misclassified No
Message-id <1245853965.54.0.75551607338.issue6337@psf.upfronthosting.co.za>
In-reply-to
Content
Double close of FD 0 when child process spawns its own child process.
Bug causes wrong file descriptors to be closed.
Bug affects only posix system.

How to reproduce:

>>> import multiprocessing as mp
>>> def child(q):
... print 'current process:', mp.current_process().name
... q.put(1)
... q.get()
... p = mp.Process(None, child, args=(mp.Queue(),))
... p.start()
...
>>> q = mp.Queue()
>>> child(q)
current process: MainProcess
current process: Process-1
current process: Process-1:1
Process Process-1:1:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/multiprocessing/process.py", line
236, in _bootstrap
self.run()
File "/usr/lib/python2.5/site-packages/multiprocessing/process.py", line
93, in run
self._target(*self._args, **self._kwargs)
File "<stdin>", line 4, in child
File "/usr/lib/python2.5/site-packages/multiprocessing/queues.py", line
91, in get
res = self._recv()
IOError: [Errno 9] Bad file descriptor
History
Date User Action Args
2009-06-24 14:32:45subdirsetrecipients: + subdir
2009-06-24 14:32:45subdirsetmessageid: <1245853965.54.0.75551607338.issue6337@psf.upfronthosting.co.za>
2009-06-24 14:32:43subdirlinkissue6337 messages
2009-06-24 14:32:43subdircreate