From: Sam Gross Date: Thu, 6 Feb 2025 23:37:05 +0000 (-0500) Subject: gh-117657: Include all of test_free_threading in TSAN tests (#129749) X-Git-Tag: v3.14.0a5~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a191d6f78e10268845b24483b3ac65856d7af868;p=thirdparty%2FPython%2Fcpython.git gh-117657: Include all of test_free_threading in TSAN tests (#129749) --- diff --git a/Lib/test/libregrtest/tsan.py b/Lib/test/libregrtest/tsan.py index 1b32deec12bd..90c9f0db0af2 100644 --- a/Lib/test/libregrtest/tsan.py +++ b/Lib/test/libregrtest/tsan.py @@ -25,7 +25,7 @@ TSAN_TESTS = [ 'test_threading_local', 'test_threadsignals', 'test_weakref', - 'test_free_threading.test_slots', + 'test_free_threading', ] # Tests that should be run with `--parallel-threads=N` under TSAN. These tests diff --git a/Tools/tsan/suppressions_free_threading.txt b/Tools/tsan/suppressions_free_threading.txt index b25b3700b356..c2509cae7b9e 100644 --- a/Tools/tsan/suppressions_free_threading.txt +++ b/Tools/tsan/suppressions_free_threading.txt @@ -43,5 +43,11 @@ race_top:PyThreadState_Clear # Only seen on macOS, sample: https://gist.github.com/aisk/dda53f5d494a4556c35dde1fce03259c race_top:set_default_allocator_unlocked +# gh-129068: race on shared range iterators (test_free_threading.test_zip.ZipThreading.test_threading) +race_top:rangeiter_next + +# gh-129748: test.test_free_threading.test_slots.TestSlots.test_object +race_top:mi_block_set_nextx + # https://gist.github.com/mpage/6962e8870606cfc960e159b407a0cb40 thread:pthread_create