]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-117657: Fix TSAN race in QSBR assertion (GH-119887) (#119904)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 1 Jun 2024 14:51:55 +0000 (16:51 +0200)
committerGitHub <noreply@github.com>
Sat, 1 Jun 2024 14:51:55 +0000 (14:51 +0000)
commit48054d2306fed2a2a53d8e5dba9c1aa7ef138ed5
tree459c3f111aeef9718d9d1fe919c26d48e514636c
parent48f3378d6c620e99f17679ee11982a57640d3bb4
[3.13] gh-117657: Fix TSAN race in QSBR assertion (GH-119887) (#119904)

Due to a limitation in TSAN, all reads from `PyThreadState.state` must be
atomic to avoid reported races.
(cherry picked from commit 90ec19fd33e2452902b9788d4821f1fbf6542304)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Python/qsbr.c
Tools/tsan/suppressions_free_threading.txt