-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-125723: Fix crash with f_locals when generator frame outlive their generator #126956
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-125723: Fix crash with f_locals when generator frame outlive their generator #126956
Conversation
cc @ncoghlan |
Co-authored-by: Kirill Podoprigora <[email protected]>
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.
Nice clean fix and thorough tests.
So, this PR can be merged? Or there's something I should improve? |
I am planning to merge this in a couple of days if no one has objections. |
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, too! Nice detective work, thanks. Minor typo fix suggestion in the NEWS entry.
Misc/NEWS.d/next/Core_and_Builtins/2024-11-18-12-17-45.gh-issue-125723.tW_hFG.rst
Outdated
Show resolved
Hide resolved
…e-125723.tW_hFG.rst Co-authored-by: Alyssa Coghlan <[email protected]>
It seems that this PR had a problem.
It provides incorrect clearing of generator frame locals without checking any another references on this frame.
In this PR we can see a more accurate way of clearing such a frame.