| 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 |
## Default build suppresssions |
| 8 |
|
| 9 |
race:get_allocator_unlocked |
| 10 |
race:set_allocator_unlocked |
| 11 |
|
| 12 |
## Free-threaded suppressions |
| 13 |
|
| 14 |
|
| 15 |
# These entries are for warnings that trigger in a library function, as called |
| 16 |
# by a CPython function. |
| 17 |
|
| 18 |
# https://gist.github.com/swtaarrs/8e0e365e1d9cecece3269a2fb2f2b8b8 |
| 19 |
race:sock_recv_impl |
| 20 |
|
| 21 |
# gh-124878: race condition when interpreter finalized while daemon thread runs |
| 22 |
race:free_threadstate |
| 23 |
|
| 24 |
|
| 25 |
# These warnings trigger directly in a CPython function. |
| 26 |
|
| 27 |
race_top:assign_version_tag |
| 28 |
race_top:new_reference |
| 29 |
race_top:_multiprocessing_SemLock_acquire_impl |
| 30 |
race_top:list_get_item_ref |
| 31 |
race_top:_Py_slot_tp_getattr_hook |
| 32 |
race_top:add_threadstate |
| 33 |
race_top:dump_traceback |
| 34 |
race_top:fatal_error |
| 35 |
race_top:_multiprocessing_SemLock_release_impl |
| 36 |
race_top:_PyFrame_GetCode |
| 37 |
race_top:_PyFrame_Initialize |
| 38 |
race_top:PyInterpreterState_ThreadHead |
| 39 |
race_top:_PyObject_TryGetInstanceAttribute |
| 40 |
race_top:PyThreadState_Next |
| 41 |
race_top:PyUnstable_InterpreterFrame_GetLine |
| 42 |
race_top:sock_close |
| 43 |
race_top:tstate_delete_common |
| 44 |
race_top:tstate_is_freed |
| 45 |
race_top:type_modified_unlocked |
| 46 |
race_top:write_thread_id |
| 47 |
race_top:PyThreadState_Clear |
| 48 |
# Only seen on macOS, sample: https://gist.github.com/aisk/dda53f5d494a4556c35dde1fce03259c |
| 49 |
race_top:set_default_allocator_unlocked |
| 50 |
|
| 51 |
# gh-127266: type slot updates are not thread-safe (test_opcache.test_load_attr_method_lazy_dict) |
| 52 |
race_top:update_one_slot |
| 53 |
|
| 54 |
# https://gist.github.com/mpage/6962e8870606cfc960e159b407a0cb40 |
| 55 |
thread:pthread_create |