Skip to content

_PyStaticType_Dealloc does not invalidate type version tag #101696

Closed
@kumaraditya303

Description

@kumaraditya303

_PyStaticType_Dealloc does not invalidate the type version tag and when the interpreter is reinitialized it still points to the old index. It should be cleared after the runtime finalization to avoid a rare case where there is a cache hit from the old index.

Found while working on https://github.com/python/cpython/actions/runs/4112993949/jobs/7098592004

Linked PRs

Metadata

Metadata

Labels

3.11only security fixes3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errortype-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