diff options
| author | Sam Gross <colesbury@gmail.com> | 2025-08-11 16:07:21 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-11 16:07:21 (GMT) |
| commit | e236568c0ea301591ca1517d39ce337e6ee0a48f (patch) | |
| tree | 1086ae703ba0bb6134c288f22caa970820506ec1 /Python/pythonrun.c | |
| parent | 63a949487840f9b4b1d81df3aba06230ca8e5c28 (diff) | |
| download | cpython-e236568c0ea301591ca1517d39ce337e6ee0a48f.zip cpython-e236568c0ea301591ca1517d39ce337e6ee0a48f.tar.gz cpython-e236568c0ea301591ca1517d39ce337e6ee0a48f.tar.bz2 | |
[3.13] gh-137400: Fix a crash when disabling profiling across all threads (gh-137471) (gh-137649)
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 362692852f13cdd1d33cc7ed35c0cbac7af1a785)
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
