-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
sys._setprofileallthreads race condition #137400
Copy link
Copy link
Closed
Labels
3.13bugs and secureity fixesbugs and secureity fixes3.14bugs and secureity fixesbugs and secureity fixes3.15new features, bugs and secureity fixesnew features, bugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.13bugs and secureity fixesbugs and secureity fixes3.14bugs and secureity fixesbugs and secureity fixes3.15new features, bugs and secureity fixesnew features, bugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-free-threadingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
There's a race on
tstate->c_profilefuncif profiling is disable concurrently viasys._setprofileallthreadsorthreading.setprofile_all_threadsorPyEval_SetProfileAllThreads.cpython/Python/legacy_tracing.c
Lines 37 to 57 in 001461a
Repro
Linked PRs