-
Notifications
You must be signed in to change notification settings - Fork 29
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
segfault in calling __array_namespace__ on a usm_ndarray class #1632
Comments
Same seg fault seems to occur with some other properties as well |
This is rather generic issue with Cython. Define a PXD and PYX files # a.pxd
cdef class A:
cdef object v # a.pyx
# distutils: language = c++
# cython: language_level=3
# cython: linetrace=True
cdef class A:
"""Dummpy class to reproduce crash"""
def __cinit__(self, val=None):
self.v = val
def __value__(self):
"Get the value"
return self.v Cythonize and compile it: cython --cplus -3 a.pyx
gcc --shared -fPIC a.cpp $(python3-config --includes) -o a.so Now execute this script:
The issue is that This is confirmed by GDB stack:
|
Filed cython/cython#6207 based on small reproducer above. |
Python 3.10 (venv)
Ubuntu 22.04.3 LTS
dpctl installed via pip (0.15.0)
Here is the example which seg faults:
Its a dumb thing to query, but the fact it seg faults is not good. This likely needs to be guarded against.
The text was updated successfully, but these errors were encountered: