[SciPy-dev] import scipy -> SIGSEGV?

Pearu Peterson pearu at scipy.org
Tue Apr 13 17:43:20 CDT 2004


On Tue, 13 Apr 2004, Alok Singhal wrote:

> Hi all,
> 
> OK, I have spent two days trying to figure out what the problem migh
> be, but I give up.  I installed scipy on a Redhat 9 system (as a user
> in my home directory), and when I do:
> 
> $ python
> >>> import scipy
> 
> It says:
> 
> Segmentation fault
> 
> The core dump shows SIGSEGV is received in fastumath_unsigned.inc,
> line 2858:
> 
> add_functions[11] = PyUFunc_OO_O;
> 
> The relevant backtrace is:
> 
> #0  InitOperators (dictionary=0x81b75a4) at fastumath_unsigned.inc:2858
> #1  0x40078f9f in initfastumath () at /users/asinghal/SciPy-0.2.0_alpha_200.4161/scipy_core/scipy_base/fastumathmodule.c:92
> #2  0x080921ef in _PyImport_LoadDynamicModule ()
> #3  0x08090003 in PyImport_ExecCodeModuleEx ()
> 
> (gdb) p add_functions[10]
> $2 = 0x4006f180 <CDOUBLE_add>
> (gdb) p add_functions[11]
> $3 = 0
> (gdb) p &add_functions[11]
> $4 = (PyUFuncGenericFunction *) 0x4007bbcc
> 
> Line 2722 of scipy_core/scipy_base/fastumath_unsigned.inc defines
> add_functions to be a 12 element array, so an assignment to
> add_functions[11] should work.
> 
> I used the SciPy-0.2.0_alpha_200.4161_src.zip code to compile scipy.
> 
> I am using the following:
> 
> - Python 2.2.2 (RPM python-2.2.2-26)
> - Numeric 23.1
> - ATLAS 3.6.0 (+LAPACK)
> - f2py 2.39.235_1693
> - fftw 3.0.1 (though it failed to detect fftw during installation of
>   scipy)
> - gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
> 
> Importing Numeric works fine.  I am not sure where the problem is, but
> if you need any other information, I will be glad to provide it.

Thanks for providing a detailed bug report.

Above there are two issues:
1) Use Scipy from CVS, that probably solves the segfault problem.
2) Scipy does not support fftw 3 yet, use fftw 2.x instead.

HTH,
Pearu




More information about the Scipy-dev mailing list