[issue18808] Thread.join returns before PyThreadState is destroyed

STINNER Victor report at bugs.python.org
Mon Jun 10 19:19:38 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

_thread._set_sentinel() and threading.Thread._tstate_lock is a great enhancement, as Py_EndInterprter() which now calls threading._shutdown().

FYI I found yet another race condition, this time in threading._shutdown(). See bpo-36402 follow-up: "threading._shutdown() race condition: test_threading test_threads_join_2() fails randomly".

----------
nosy: +vstinner

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue18808>
_______________________________________


More information about the Python-bugs-list mailing list