-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
[3.10] bpo-44449: faulthandler don't modify frame refcnt #27850
Conversation
Fix a crash in the signal handler of the faulthandler module: no longer modify the reference count of frame objects.
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. I'm not sure how to write a test for this though.
BTW, to make bedevere/maintenance-branch-pr — Not a valid maintenance branch PR title.
test pass, you can rename issue title to [3.10] bpo...
I don't think there is anything wring with |
I hadn't realized that this is for 3.10. It should be OK it that case. |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Fix a crash in the signal handler of the faulthandler module: no longer modify the reference count of frame objects. (cherry picked from commit fe997e1) Co-authored-by: Victor Stinner <vstinner@python.org>
GH-28066 is a backport of this pull request to the 3.9 branch. |
@markshannon: In the main branch, dump_traceback() reads
Right. Hopefully, in my experience, faulthandler is also to dump the traceback in almost all cases, even if something really bad happens. Anyway, Python is already exiting with a "fatal error", so it's not a big deal if it triggers a new crash :-D |
Fix a crash in the signal handler of the faulthandler module: no
longer modify the reference count of frame objects.
https://bugs.python.org/issue44449