-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
gh-101975: Fixed a potential SegFault on garbage collection #102803
Conversation
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 = 1
is missing on trace entry which could cause thegc
on another thread to access freed memory.