colesbury · GitHub

Bug report

We properly skip trampoline frames when they are not the top-most frame:

if (frame->owner == FRAME_OWNED_BY_CSTACK) {
/* Trampoline frame */
frame = frame->previous;
}

But if tstate->current_frame is a trampoline frame (i.e., FRAME_OWNED_BY_CSTACK) then dump_traceback will crash if faulthandler is triggered when executing a trampoline frame.

Linked PRs

Read the original on github.com ↗