mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
The `PyEval_SetProfileAllThreads` function and other related functions
had a race condition on `tstate->c_profilefunc` that could lead to a
crash when disable profiling or tracing on all threads while another
thread is starting to profile or trace a a call.
There are still potential crashes when threads exit concurrently with
profiling or tracing be enabled/disabled across all threads.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_bisect.py | ||
| test_code.py | ||
| test_dict.py | ||
| test_func_annotations.py | ||
| test_gc.py | ||
| test_list.py | ||
| test_monitoring.py | ||
| test_set.py | ||
| test_slots.py | ||
| test_str.py | ||
| test_tokenize.py | ||
| test_type.py | ||