Skip to content

Hitting Assert for Managed Static Types During Subinterpreter Finalization #120765

Description

@ericsnowcurrently

Bug report

Bug description:

$ ./python
Python 3.14.0a0 (heads/main:9f741e55c16, Jun 18 2024, 16:38:50) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import _interpreters
>>> _interpreters.create()
>>> exit
python: Objects/typeobject.c:307: managed_static_type_state_clear: Assertion `!_PyRuntime.types.managed_static.types[full_index].interp_count' failed.
Aborted (core dumped)

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Activity

  1. added
    type-crashA hard crash of the interpreter, possibly with a core dump
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Jun 19, 2024
  2. ericsnowcurrently commented on Jun 19, 2024

    @ericsnowcurrently
    MemberAuthor

    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.

  3. Eclips4 commented on Jun 20, 2024

    @Eclips4
    Member

    Isn't it a duplicate of #113433?

  4. ericsnowcurrently commented on Jun 20, 2024

    @ericsnowcurrently
    MemberAuthor

    It's definitely closely related (and the fix for gh-113433 will fix it), but it is a slightly different problem.

  5. added a commit that references this issue on Jun 26, 2024
  6. added 2 commits that reference this issue on Jun 26, 2024
  7. added a commit that references this issue on Jun 30, 2024
  8. added a commit that references this issue on Jul 11, 2024
  9. added a commit that references this issue on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.13only security fixes3.14bugs and security fixestopic-subinterpreterstype-crashA hard crash of the interpreter, possibly with a core dump

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions