]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-124878: Add temporary TSAN suppression for free_threadstate (gh-130602...
authorSam Gross <colesbury@gmail.com>
Fri, 28 Feb 2025 14:53:35 +0000 (09:53 -0500)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2025 14:53:35 +0000 (14:53 +0000)
The race condition with `free_threadstate` and daemon threads exists in
both the free threading and default builds. We were missing a
suppression in the default build.
(cherry picked from commit cc17307faaa248535c65f6a7668e06dc8ef04575)

Tools/tsan/suppressions.txt
Tools/tsan/suppressions_free_threading.txt

index 22ba9d6ba2ab4de17e5649bc1d55bfd089d2aa52..de89a41f420235378482be24f8ead4660a582c6b 100644 (file)
@@ -3,5 +3,8 @@
 race:get_allocator_unlocked
 race:set_allocator_unlocked
 
+# gh-124878: race condition when interpreter finalized while daemon thread runs
+race:free_threadstate
+
 # https://gist.github.com/mpage/daaf32b39180c1989572957b943eb665
 thread:pthread_create
index 5ba0a81ac71c3d30195b56c8d53eb60a3d86d0f5..da30d7020d1202a0bea66b8a2d25b3bb2c10c5fc 100644 (file)
@@ -17,7 +17,8 @@ race:set_allocator_unlocked
 
 # https://gist.github.com/swtaarrs/8e0e365e1d9cecece3269a2fb2f2b8b8
 race:sock_recv_impl
-# https://gist.github.com/swtaarrs/08dfe7883b4c975c31ecb39388987a67
+
+# gh-124878: race condition when interpreter finalized while daemon thread runs
 race:free_threadstate