| 1 |
# This file contains suppressions for the free-threaded build. It contains the |
| 2 |
# suppressions for the default build and additional suppressions needed only in |
| 3 |
# the free-threaded build. |
| 4 |
# |
| 5 |
# reference: https://github.com/google/sanitizers/wiki/ThreadSanitizerSuppressions |
| 6 |
|
| 7 |
## Free-threaded suppressions |
| 8 |
|
| 9 |
|
| 10 |
# These entries are for warnings that trigger in a library function, as called |
| 11 |
# by a CPython function. |
| 12 |
|
| 13 |
# These warnings trigger directly in a CPython function. |
| 14 |
|
| 15 |
race_top:assign_version_tag |
| 16 |
race_top:_Py_slot_tp_getattr_hook |
| 17 |
race_top:dump_traceback |
| 18 |
race_top:fatal_error |
| 19 |
race_top:_PyFrame_GetCode |
| 20 |
race_top:_PyFrame_Initialize |
| 21 |
race_top:_PyObject_TryGetInstanceAttribute |
| 22 |
race_top:PyUnstable_InterpreterFrame_GetLine |
| 23 |
race_top:type_modified_unlocked |
| 24 |
race_top:write_thread_id |
| 25 |
|
| 26 |
# gh-129068: race on shared range iterators (test_free_threading.test_zip.ZipThreading.test_threading) |
| 27 |
race_top:rangeiter_next |
| 28 |
|
| 29 |
# gh-129748: test.test_free_threading.test_slots.TestSlots.test_object |
| 30 |
race_top:mi_block_set_nextx |
| 31 |
|
| 32 |
# gh-127266: type slot updates are not thread-safe (test_opcache.test_load_attr_method_lazy_dict) |
| 33 |
race_top:update_one_slot |
| 34 |
|
| 35 |
# https://gist.github.com/mpage/6962e8870606cfc960e159b407a0cb40 |
| 36 |
thread:pthread_create |
| 37 |
|
| 38 |
# Range iteration is not thread-safe yet (issue #129068) |
| 39 |
race_top:rangeiter_next |
| 40 |
|
| 41 |
# List resizing happens through different paths ending in memcpy or memmove |
| 42 |
# (for efficiency), which will probably need to rewritten as explicit loops |
| 43 |
# of ptr-sized copies to be thread-safe. (Issue #129069) |
| 44 |
race:list_ass_slice_lock_held |
| 45 |
race:list_inplace_repeat_lock_held |
| 46 |
|
| 47 |
# PyObject_Realloc internally does memcpy which isn't atomic so can race |
| 48 |
# with non-locking reads. See #132070 |
| 49 |
race:PyObject_Realloc |
| 50 |
|
| 51 |
# gh-133467. Some of these could be hard to trigger. |
| 52 |
race_top:update_one_slot |
| 53 |
race_top:set_tp_bases |
| 54 |
race_top:type_set_bases_unlocked |