https://github.com/python/cpython/commit/cc17307faaa248535c65f6a7668e06dc8ef04575
commit: cc17307faaa248535c65f6a7668e06dc8ef04575
branch: main
author: Sam Gross <colesb...@gmail.com>
committer: colesbury <colesb...@gmail.com>
date: 2025-02-28T09:27:51-05:00
summary:

gh-124878: Add temporary TSAN suppression for free_threadstate (gh-130602)

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.

files:
M Tools/tsan/suppressions.txt
M Tools/tsan/suppressions_free_threading.txt

diff --git a/Tools/tsan/suppressions.txt b/Tools/tsan/suppressions.txt
index 6bda5ecd570889..c70b0ddca059c2 100644
--- a/Tools/tsan/suppressions.txt
+++ b/Tools/tsan/suppressions.txt
@@ -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
diff --git a/Tools/tsan/suppressions_free_threading.txt 
b/Tools/tsan/suppressions_free_threading.txt
index 3354b5756811c9..c32c43db19cb96 100644
--- a/Tools/tsan/suppressions_free_threading.txt
+++ b/Tools/tsan/suppressions_free_threading.txt
@@ -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.

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to