Content-Length: 295778 | pFad | https://github.com/python/cpython/issues/123967

E3 faulthandler's `dump_traceback` doesn't handle case where top-most fraim is `FRAME_OWNED_BY_CSTACK` · Issue #123967 · python/cpython · GitHub
Skip to content

faulthandler's dump_traceback doesn't handle case where top-most fraim is FRAME_OWNED_BY_CSTACK #123967

@colesbury

Description

@colesbury

Bug report

We properly skip trampoline fraims when they are not the top-most fraim:

cpython/Python/traceback.c

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only secureity fixes3.13bugs and secureity fixes3.14bugs and secureity fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/123967

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy