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-99110: Initialize frame->previous in init_frame to fix segmentation fault #100182
Conversation
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
|
Use self.assertEquals instead of assert.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Move frame test from test_python_api.py to test_frame.py.
I moved the test code into the I have made the requested changes; please review again. |
Thanks for making the requested changes! @markshannon: please review the changes made to this pull request. |
Misc/NEWS.d/next/Core and Builtins/2022-12-12-01-05-16.gh-issue-99110.1JqtIg.rst
Outdated
Show resolved
Hide resolved
…e-99110.1JqtIg.rst
Thanks @byllyfish for the PR, and @kumaraditya303 for merging it |
Sorry, @byllyfish and @kumaraditya303, I could not cleanly backport this to |
This PR fixes a segmentation fault caused by an uninitialized variable. One way to trigger the seg. fault is to use the PyFrame_New() C API. I've also run across this segmentation fault by calling
asyncio.Task.get_stack()
on cython based asyncio Task (in the grpcio module).The fix for #99110 needs to be back-ported to 3.11.