[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.
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 |
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 <[email protected]>
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. (cherry picked from commit fe997e1) Co-authored-by: Victor Stinner <[email protected]>
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
The text was updated successfully, but these errors were encountered: