Skip to content

Fix check_dump_traceback_threads in free-threaded build #117658

Closed
@colesbury

Description

@colesbury

The check_dump_traceback_threads function checks the result when faulthandler dumps the traceback involving more than one thread.

With the GIL, the waiting thread is always (or almost always) in the self.stop.wait() call, but in the free-threaded build the waiting thread might still be in the self.running.set() call.

def run(self):
self.running.set()
self.stop.wait()

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions