[issue9207] multiprocessing occasionally spits out exception during shutdown (_handle_workers)

Greg Brockman report at bugs.python.org
Mon Jul 12 19:45:13 CEST 2010

Greg Brockman <gdb at ksplice.com> added the comment:

With pool.py:272 commented out, running about 50k iterations, I saw 4 tracebacks giving an exception on pool.py:152.  So this seems to imply the race does exist (i.e. that the thread is in _maintain_pool rather than time.sleep when shutdown begins).  It looks like the _maintain_pool run takes O(10^-4)s, so it's not surprising the error is so rare.

That being said, the patch I submitted in issue 9205 should handle this case as well.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list