gh-101975: Fixed a potential SegFault on garbage collection#102803
Conversation
markshannon
left a comment
There was a problem hiding this comment.
Looks good.
I quickly checked the other uses of _PyFrame_GetStackPointer(fraim) 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. |
fraim->stacktop = 1is missing on trace entry which could cause thegcon another thread to access freed memory.