Skip to content

Crash when inspecting frame of other thread in free-threaded build#118680

@chgnrdv

Description

@chgnrdv

Crash report

What happened?

Found when playing with #118415 (comment). Appears on both debug and non-debug builds.

importsysimportthreadingl=threading._PyRLock() deff(): whileTrue: withl: passt=threading.Thread(target=f) t.start() whileTrue: f=sys._current_frames()[t.ident] whilef: f.f_codef=f.f_back

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

Python 3.13.0a6+ (heads/main:9fd33af5ac, May 7 2024, 03:18:30) [GCC 10.2.1 20210110]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions