[issue1856] shutdown (exit) can hang or segfault with daemon threads running

Adam Olsen report at bugs.python.org
Thu Jan 17 22:00:50 CET 2008


Adam Olsen added the comment:

I think non-main threads should kill themselves off if they grab the
interpreter lock and the interpreter is tearing down.  They're about to
get killed off anyway, when the process exits.

PyGILState_Ensure would still be broken.  It touches various things that
get torn down (autoInterpreterState, autoTLSkey, and the HEAD_LOCK
macros) before it grabs the GIL.  Reordering should be possible of course.

----------
nosy: +Rhamphoryncus

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1856>
__________________________________


More information about the Python-bugs-list mailing list