Charles-François Natali added the comment:
> This shouldn't be a problem in Python 3 where Python threads cannot switch
> during shutdown.
What happens if the GIL is relased during shutdown?
Also, I'm a bit worried about this code:
"""
void
PyThreadState_Clear(PyThreadState *tstate)
{
if (Py_VerboseFlag && tstate->frame != NULL)
fprintf(stderr,
"PyThreadState_Clear: warning: thread still has a frame\n");
Py_CLEAR(tstate->frame);
Py_CLEAR(tstate->dict);
"""
The TLS dict is deallocated after having cleared the frame, which
could lead to surprises, no?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17263>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com