Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Objects/typeobject.c:143: managed_static_type_index_get: Assertionmanaged_static_type_index_is_set(self)' failed.` in 3.13.0b2+, with freezegun #120161

Closed
Assignees
ericsnowcurrently
Labels
3.13bugs and security fixes3.14bugs and security fixestype-crashA hard crash of the interpreter, possibly with a core dump
@mgorny

Description

@mgorny

Crash report

What happened?

Starting with Python 3.13.0b2, importingfreezegun causes the interpreter to crash on exit. I was able to reduce it into the following ugly quasi-standalone snippet:

importasyncioimportdatetimefromtypingimportTypeclasstzutc(datetime.tzinfo):pass_EPOCHTZ=datetime.datetime(1970,1,1,tzinfo=tzutc())classFakeDateMeta(type):def__instancecheck__(self,obj):returnTrueclassFakeDate(datetime.date,metaclass=FakeDateMeta):passdefpickle_fake_date(datetime_)->Type[FakeDate]:# A pickle function for FakeDatereturnFakeDate
$ python -c 'import repro'python: Objects/typeobject.c:143: managed_static_type_index_get: Assertion `managed_static_type_index_is_set(self)' failed.Aborted (core dumped)

I've been able to reproduce it with 3.13.0b2, tip of 3.13 branch and tip of main branch.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

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

Python 3.14.0a0 (heads/main:fd104dfcb83, Jun 6 2024, 16:55:57) [GCC 14.1.1 20240516]

Linked PRs

Metadata

Metadata

Labels

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp