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

[3.12] gh-104690: thread_run() checks for tstate dangling pointer (#109056) by vstinner · Pull Request #109133 · python/cpython · GitHub

Repository navigation

[3.12] gh-104690: thread_run() checks for tstate dangling pointer (#109056) - #109133

Merged
Yhg1s merged 1 commit into
python:3.12from
vstinner:tstate_consistency312
Oct 2, 2023
Merged

Yhg1s merged 1 commit into
python:3.12from
vstinner:tstate_consistency312

Conversation

vstinner commented Sep 8, 2023 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

thread_run() of _threadmodule.c now calls
_PyThreadState_CheckConsistency() to check if tstate is a dangling pointer when Python is built in debug mode.

Rename ceval_gil.c is_tstate_valid() to
_PyThreadState_CheckConsistency() to reuse it in _threadmodule.c.

(cherry picked from commit f63d378)

…hon#109056)

thread_run() of _threadmodule.c now calls
_PyThreadState_CheckConsistency() to check if tstate is a dangling
pointer when Python is built in debug mode.

Rename ceval_gil.c is_tstate_valid() to
_PyThreadState_CheckConsistency() to reuse it in _threadmodule.c.

(cherry picked from commit f63d378)

Yhg1s commented Sep 12, 2023

Copy link
Copy Markdown
Member

FYI, I'm delaying this until 3.12.1.

Copy link
Copy Markdown
Member Author

Note for myself: when this change is backported to 3.12, I should also backport #109135 which is the real fix. This change only provides a better error message when the bug occurs.

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