[issue14548] garbage collection just after multiprocessing's fork causes exceptions

Antoine Pitrou report at bugs.python.org
Wed Apr 11 23:46:47 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> Hmm...
> I don't really like disabling GC, because it has a process-wide side
> effect, and hence isn't thread-safe: if another thread forks() or
> creates a subprocess right at the wrong time, it could end up with the
> GC disabled for good...

That's a problem indeed. Perhaps we need a global "fork lock" shared
between subprocess and multiprocessing?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14548>
_______________________________________


More information about the Python-bugs-list mailing list