Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.13] gh-119585: Fix crash involvingPyGILState_Release() andPyThreadState_Clear() (GH-119753)#119859

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedMay 31, 2024
edited by bedevere-appbot
Loading

Make sure thatgilstate_counter is not zero in when calling
PyThreadState_Clear(). A destructor called fromPyThreadState_Clear() may
call back intoPyGILState_Ensure() andPyGILState_Release(). If
gilstate_counter is zero, it will try to create a new thread state before
the current active thread state is destroyed, leading to an assertion failure
or crash.
(cherry picked from commitbcc1be3)

Co-authored-by: Sam Grosscolesbury@gmail.com

…readState_Clear()` (pythonGH-119753)Make sure that `gilstate_counter` is not zero in when calling`PyThreadState_Clear()`. A destructor called from `PyThreadState_Clear()` maycall back into `PyGILState_Ensure()` and `PyGILState_Release()`. If`gilstate_counter` is zero, it will try to create a new thread state beforethe current active thread state is destroyed, leading to an assertion failureor crash.(cherry picked from commitbcc1be3)Co-authored-by: Sam Gross <colesbury@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

@gvanrossumgvanrossumAwaiting requested review from gvanrossum

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@miss-islington@colesbury

[8]ページ先頭

©2009-2025 Movatter.jp