Skip to content

[3.15] gh-155997: Fix list_all() if an interpreter is destroyed during the call (GH-155998) - #156004

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-60dff5a-3.15
Open

[3.15] gh-155997: Fix list_all() if an interpreter is destroyed during the call (GH-155998)#156004
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-60dff5a-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Creating the Interpreter objects can start a garbage collection which
finalizes an object owning the last reference to a listed interpreter.
Skip interpreters which no longer exist instead of failing.
(cherry picked from commit 60dff5a)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

… the call (pythonGH-155998)

Creating the Interpreter objects can start a garbage collection which
finalizes an object owning the last reference to a listed interpreter.
Skip interpreters which no longer exist instead of failing.
(cherry picked from commit 60dff5a47b20a7efb6e43c571617b9139474bfe9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review topic-subinterpreters type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants