BUG: data race in from_dlpack method under free-threading #28881
Labels
00 - Bug
39 - free-threading
PRs and issues related to support for free-threading CPython (a.k.a. no-GIL, PEP 703)
Describe the issue:
There is time of check to time of use race in from_dlpack method seen under free-threading in JAX CI 3.14 FT TSAN:
numpy/numpy/_core/src/multiarray/dlpack.c
Lines 512 to 513 in 99e52b1
TSAN report:
Full report: https://gist.github.com/vfdev-5/61f2a64f103319c0b5d2f850ceee8dcf
Reproduce the code example:
Error message:
Python and NumPy Versions:
Python 3.14.0a7+ experimental free-threading build (heads/main:4f18916, Apr 27 2025, 05:25:00) [Clang 18.1.3 (1ubuntu1)]
Numpy from source
Runtime Environment:
No response
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: