-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-101975: Fixed a potential SegFault on garbage collection #102803
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
markshannon
left a comment
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.
Looks good.
I quickly checked the other uses of _PyFrame_GetStackPointer(frame) and this is the odd one out.
|
Thanks @gaogaotiantian for the PR, and @markshannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Sorry, @gaogaotiantian and @markshannon, I could not cleanly backport this to |
|
GH-102807 is a backport of this pull request to the 3.11 branch. |
frame->stacktop = 1is missing on trace entry which could cause thegcon another thread to access freed memory.