[SciPy-dev] BUG: PyArray_FromDims|PyArray_SimpleNew causes segfault

Pearu Peterson pearu at scipy.org
Tue Oct 18 05:07:20 CDT 2005

On Tue, 18 Oct 2005, Pearu Peterson wrote:

> However, f2py generated modules segfault in array_from_pyobj
> when calling PyArray_FromDims. Right now I'm not sure how to debug this
> further.

Adding import_array(); at the begginning of array_from_pyobj(..) in 
fortranobject.c, segfaults went away. But I am not sure if this is a 
proper place to put import_array(), it looks like afful overhead to call 
import_array() on every function argument.


More information about the Scipy-dev mailing list