FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-117657: Fix QSBR race condition (GH-118843) by miss-islington · Pull Request #118905 · python/cpython · GitHub

/ cpython Public

[3.13] gh-117657: Fix QSBR race condition (GH-118843) - #118905

Merged
colesbury merged 1 commit into
python:3.13from
miss-islington:backport-33d2019-3.13
May 10, 2024
Merged

[3.13] gh-117657: Fix QSBR race condition (GH-118843)#118905
colesbury merged 1 commit into
python:3.13from
miss-islington:backport-33d2019-3.13

Conversation

miss-islington commented May 10, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

_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 33d2019)

Co-authored-by: Alex Turner alexturner@meta.com

`_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 33d2019)

Co-authored-by: Alex Turner <alexturner@meta.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL