-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Closed
Description
The code
x = np.linspace(0,10,10000)
x
causes a segfault when run in IPython.
This appears to be caused by numpy/core/src/umath/ufunc_object.c line 272:
if (_extract_pyvals(extobj, ufunc_name,
buffersize, errormask, NULL) < 0)
where _extract_pyvals begins
static int
_extract_pyvals(PyObject *ref, char *name, int *bufsize,
int *errmask, PyObject **errobj)
{
PyObject *retval;
if (ref == NULL) {
*errmask = UFUNC_ERR_DEFAULT;
*errobj = Py_BuildValue("NO", PyBytes_FromString(name), Py_None);
*bufsize = NPY_BUFSIZE;
return 0;
}
specifically, the *errobj line causes the segfault
Metadata
Metadata
Assignees
Labels
No labels