Skip to content

Commit cc17307

Browse files
authored
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.
1 parent 038e4d6 commit cc17307

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Tools/tsan/suppressions.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# This file contains suppressions for the default (with GIL) build.
22
# reference: https://github.com/google/sanitizers/wiki/ThreadSanitizerSuppressions
33

4+
# gh-124878: race condition when interpreter finalized while daemon thread runs
5+
race:free_threadstate
6+
47
# https://gist.github.com/mpage/daaf32b39180c1989572957b943eb665
58
thread:pthread_create

Tools/tsan/suppressions_free_threading.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# These entries are for warnings that trigger in a library function, as called
1111
# by a CPython function.
1212

13-
# https://gist.github.com/swtaarrs/08dfe7883b4c975c31ecb39388987a67
13+
# gh-124878: race condition when interpreter finalized while daemon thread runs
1414
race:free_threadstate
1515

1616
# These warnings trigger directly in a CPython function.

0 commit comments

Comments
 (0)