BUG: noGIL: segfault in custom dtype creation C API #29127
Labels
00 - Bug
39 - free-threading
PRs and issues related to support for free-threading CPython (a.k.a. no-GIL, PEP 703)
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
A test that invokes C APIs segfaults when run from multiple threads in parallel in python 3.13t:
numpy/numpy/_core/tests/test_dtype.py
Lines 1920 to 1925 in ff1d6cc
The test invokes a test-specific C function, which however upon cursory inspection doesn't seem to have anything untowards in it. The C function in turn calls:
Py_SET_TYPE
,PyArray_RegisterDataType
,PyArray_DescrFromType
:numpy/numpy/_core/src/multiarray/_multiarray_tests.c.src
Line 518 in ff1d6cc
Reproduce the code example:
autouse=True
fixtures by default in test suite #29090):Python and NumPy Versions:
python 3.13t
numpy git tip 2025-06-04
Runtime Environment:
32-core x86_64 Linux host
The text was updated successfully, but these errors were encountered: