summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-10 15:13:17 (GMT)
committerGitHub <noreply@github.com>2024-05-10 15:13:17 (GMT)
commit0becae366c9d0b98d3f53849098e76bc8b1ef574 (patch)
tree909a8c366796ea07aa38db34e1f785a3c4a81412 /Lib/test/test_array.py
parent0874a400a86c563cff71847f35674d4e1bcc3957 (diff)
downloadcpython-0becae366c9d0b98d3f53849098e76bc8b1ef574.zip
cpython-0becae366c9d0b98d3f53849098e76bc8b1ef574.tar.gz
cpython-0becae366c9d0b98d3f53849098e76bc8b1ef574.tar.bz2
[3.13] gh-117657: Fix QSBR race condition (GH-118843) (#118905)
`_Py_qsbr_unregister` is called when the PyThreadState is already detached, so the access to `tstate->qsbr` isn't safe without locking the shared mutex. Grab the `struct _qsbr_shared` from the interpreter instead. (cherry picked from commit 33d20199af65c741bdc908a968edd8dc179b6974) Co-authored-by: Alex Turner <alexturner@meta.com>
Diffstat (limited to 'Lib/test/test_array.py')
0 files changed, 0 insertions, 0 deletions