faulthandler's dump_traceback
doesn't handle case where top-most frame is FRAME_OWNED_BY_CSTACK
#123967
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Bug report
We properly skip trampoline frames when they are not the top-most frame:
cpython/Python/traceback.c
Lines 979 to 982 in 3bd942f
But if
tstate->current_frame
is a trampoline frame (i.e.,FRAME_OWNED_BY_CSTACK
) thendump_traceback
will crash if faulthandler is triggered when executing a trampoline frame.Linked PRs
The text was updated successfully, but these errors were encountered: