Race in type_get_annotations under free-threading #129547
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-free-threading
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
I don't have a succinct reproducer for this, but TSAN reported the following race under CPython 3.13 with free-threading.
(forked from #128714 (comment) )
Reading the code, it does not appear there is any locking protecting the initialization of the annotations dictionary of a type.
CPython versions tested on:
3.13.2
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: