-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-99377: Revert audit events for thread state creation and free, because the GIL is not properly held at these times #99543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… actually been set. This can occur during initialization. Without the check, later calls to get the interpreter state will cause a fatal error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm surprised _PyThreadState_SetCurrent()
can leave it NULL
though. Something seems fishy there.
This hasn't done it. Going to revert most of the change (I'll leave the |
FYI, I'm double-checking that that PR was the culprit: gh-99545. |
Looks like a full revert passes all buildbots (actually, 7 still running), so it seems like we're right that the original PR is the source of the failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This also closes #99544 |
This can occur during initialization. Without the check, later calls to get the interpreter state will cause a fatal error.