We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115e4d2 commit b58d4a1Copy full SHA for b58d4a1
Misc/NEWS.d/next/Core_and_Builtins/2025-10-16-20-06-33.gh-issue-140138.a_fhrh.rst
@@ -0,0 +1,7 @@
1
+Fix a TSAN-reported data race and potential use-after-free when shutting
2
+down a subinterpreter with running daemon threads in free-threaded (NOGIL)
3
+builds. The interpreter state could be freed while daemon threads still
4
+accessed tstate->interp (e.g. during time.sleep). PyInterpreterState now
5
+keeps an atomic owner refcount and is only finalized/freed when the last
6
+PyThreadState is destroyed. This fixes
7
+test_threading.test_daemon_threads_fatal_error.
0 commit comments