[issue1856] shutdown (exit) can hang or segfault with daemon threads running
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.
Tracker <report at bugs.python.org>
More information about the Python-bugs-list