You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the same underlying issue as #110052 -- daemon threads (or regular threads if you press ctrl-c) may still be running during _Py_Finalize, but their PyThreadState structs get freed out from underneath them. The underlying bug affects both the default and free-threaded build.
Bug report
Bug description:
Reproducer:
Remove all suppressions from https://github.com/python/cpython/blob/main/Tools/tsan/suppressions_free_threading.txt
Build and Run with TSAN #117657
We get races like
Considering it's writing to a bit struct, the race seems plausible.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: