-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Race in func_get_annotations under free-threading #128714
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
Comments
Besides, it seems the the range object also has data races when I run the test suites
|
Here's a somewhat similar looking race on
I figured it might be simplest just to add this here, but I can open a new issue if you like! |
These were found in https://github.com/jax-ml/jax/actions/runs/13072427817/job/36476819907 and reported in python/cpython#129533 and python/cpython#128714.
These were found in https://github.com/jax-ml/jax/actions/runs/13072427817/job/36476819907 and reported in python/cpython#129533 and python/cpython#128714.
Please create a new issue for it, the getters and setters of typeobject are missing critical section which would have to be added independent of function object fixes. |
…s__` and `__type_params__` in free-threading build (#129016)
…tations__` and `__type_params__` in free-threading build (python#129016) (cherry picked from commit 55f17b7)
…tations__` and `__type_params__` in free-threading build (python#129016)
…tations__` and `__type_params__` in free-threading build (python#129016)
…otations__` and `__type_params__` in free-threading build (GH-129016) (#129729) * gh-128714: Fix function object races in `__annotate__`, `__annotations__` and `__type_params__` in free-threading build (#129016) (cherry picked from commit 55f17b7) --------- Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Bug report
Bug description:
With CPython 3.13 from commit 65da5db TSAN reports the following race, which looks right: the initialization of
p->func_annotations
is racy.Reproducer:
TSAN report (first race):
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
__annotate__
,__annotations__
and__type_params__
in free-threading build (GH-129016) #129729The text was updated successfully, but these errors were encountered: