-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hitting Assert for Managed Static Types During Subinterpreter Finalization #120765
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-subinterpreters
type-crash
A hard crash of the interpreter, possibly with a core dump
Comments
ericsnowcurrently
added
type-bug
An unexpected behavior, bug, or error
topic-subinterpreters
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
labels
Jun 19, 2024
ericsnowcurrently
added
type-crash
A hard crash of the interpreter, possibly with a core dump
and removed
type-bug
An unexpected behavior, bug, or error
labels
Jun 19, 2024
Ah, I see the problem. The code currently assumes that when the main interpreter is finalized, that no other interpreters are still around. I'll have to fix that. |
Isn't it a duplicate of #113433? |
It's definitely closely related (and the fix for gh-113433 will fix it), but it is a slightly different problem. |
This was referenced Jun 26, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 26, 2024
…e() (pythongh-121060) This change makes things a little less painful for some users. It also fixes a failing assert (pythongh-120765), by making sure all subinterpreters are destroyed before the main interpreter. As part of that, we make sure Py_Finalize() always runs with the main interpreter active. (cherry picked from commit 4be1f37) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
ericsnowcurrently
added a commit
that referenced
this issue
Jun 26, 2024
…ze() (gh-121067) This change makes things a little less painful for some users. It also fixes a failing assert (gh-120765), by making sure all subinterpreters are destroyed before the main interpreter. As part of that, we make sure Py_Finalize() always runs with the main interpreter active. (cherry picked from commit 4be1f37, AKA gh-121060) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
mrahtz
pushed a commit
to mrahtz/cpython
that referenced
this issue
Jun 30, 2024
…e() (pythongh-121060) This change makes things a little less painful for some users. It also fixes a failing assert (pythongh-120765), by making sure all subinterpreters are destroyed before the main interpreter. As part of that, we make sure Py_Finalize() always runs with the main interpreter active.
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
…e() (pythongh-121060) This change makes things a little less painful for some users. It also fixes a failing assert (pythongh-120765), by making sure all subinterpreters are destroyed before the main interpreter. As part of that, we make sure Py_Finalize() always runs with the main interpreter active.
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
…e() (pythongh-121060) This change makes things a little less painful for some users. It also fixes a failing assert (pythongh-120765), by making sure all subinterpreters are destroyed before the main interpreter. As part of that, we make sure Py_Finalize() always runs with the main interpreter active.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-subinterpreters
type-crash
A hard crash of the interpreter, possibly with a core dump
Bug report
Bug description:
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: