[issue11960] Python crashes when running numpy test
Amaury Forgeot d'Arc
report at bugs.python.org
Sat Apr 30 11:25:12 CEST 2011
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
The issue is actually in numpy. In numpy/f2py/src/fortranobject.c, function array_from_pyobj(), there is::
sprintf(mess,"failed to initialize intent(inout|inplace|cache) array"
" -- input must be array but got %s",
PyString_AsString(PyObject_Str(PyObject_Type(obj)))
);
(In numpy headers, PyString_AsString is aliased to PyBytes_AsString.)
Besides the reference leaks, this function will fail when given the unicode string returned by PyObject_Str(), and sprintf receives the null string...
Please report this to numpy.
----------
nosy: +amaury.forgeotdarc
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11960>
_______________________________________
More information about the Python-bugs-list
mailing list