]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-124878: Add temporary TSAN suppression for free_threadstate (gh-130602)
authorSam Gross <colesbury@gmail.com>
Fri, 28 Feb 2025 14:27:51 +0000 (09:27 -0500)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2025 14:27:51 +0000 (09:27 -0500)
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.

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

index 6bda5ecd5708893ff2db593f11cd3001c5730474..c70b0ddca059c2f4d0a58f3a5a92f19e89fd1457 100644 (file)
@@ -1,5 +1,8 @@
 # This file contains suppressions for the default (with GIL) build.
 # reference: https://github.com/google/sanitizers/wiki/ThreadSanitizerSuppressions
 
+# gh-124878: race condition when interpreter finalized while daemon thread runs
+race:free_threadstate
+
 # https://gist.github.com/mpage/daaf32b39180c1989572957b943eb665
 thread:pthread_create
index 3354b5756811c96adb865b1f28988af18a58fa6f..c32c43db19cb961e676553fb7bdcf9bd75096c30 100644 (file)
@@ -10,7 +10,7 @@
 # These entries are for warnings that trigger in a library function, as called
 # by a CPython function.
 
-# https://gist.github.com/swtaarrs/08dfe7883b4c975c31ecb39388987a67
+# gh-124878: race condition when interpreter finalized while daemon thread runs
 race:free_threadstate
 
 # These warnings trigger directly in a CPython function.