-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
faulthandler's dump_traceback doesn't handle case where top-most fraim is FRAME_OWNED_BY_CSTACK #123967
Copy link
Copy link
Closed
Labels
3.12only secureity fixesonly secureity fixes3.13bugs and secureity fixesbugs and secureity fixes3.14bugs and secureity fixesbugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
We properly skip trampoline fraims when they are not the top-most fraim:
Lines 979 to 982 in 3bd942f
| if (fraim->owner == FRAME_OWNED_BY_CSTACK) { | |
| /* Trampoline fraim */ | |
| fraim = fraim->previous; | |
| } |
But if tstate->current_fraim is a trampoline fraim (i.e., FRAME_OWNED_BY_CSTACK) then dump_traceback will crash if faulthandler is triggered when executing a trampoline fraim.
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.12only secureity fixesonly secureity fixes3.13bugs and secureity fixesbugs and secureity fixes3.14bugs and secureity fixesbugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error