]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-117657: Fix TSAN data race in _PyEval_SetTrace assertion (gh-131561) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 21 Mar 2025 18:48:40 +0000 (19:48 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Mar 2025 18:48:40 +0000 (18:48 +0000)
commit94fbe97bbef374e240decc8a69107a639151ba02
tree79c1b7671f9a1e14276d965376dfa511b11f3f50
parent55fb3a75d5558c2a1683fd7ca61a320caf24c626
[3.13] gh-117657: Fix TSAN data race in _PyEval_SetTrace assertion (gh-131561) (#131564)

The `sys_tracing_threads` variable should be read inside `LOCK_SETUP()`.
(cherry picked from commit 0de5e0c5442abddbe17481ef450e4abc992058f5)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Python/legacy_tracing.c