[issue17969] multiprocessing crash on exit

Kristján Valur Jónsson report at bugs.python.org
Mon May 13 18:14:04 CEST 2013


Kristján Valur Jónsson added the comment:

Well, knowing that they crash less in 3.3 doesn't really fix the problem now, does it?

We can consider two options then:
1) A multiprocessing specific fix.  Removing this handle close gil release (which is superfluous, since these calls aren't blocking in any real sense) will certainly remove _this_ instance of the crash.  An alternative is to make this worker thread non-daemon.  That shouldn't be too hard and shouldn't have any other side effects.

2) A general daemon thread fix.  For example, removing the GIL at the start of the shutdown process will make it impossible to release it.  We can do this by setting interpreter_lock to NULL.

I don't see the point of having 2.7 in bug fix mode if we can't fix bugs.

----------

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


More information about the Python-bugs-list mailing list