[SciPy-dev] bug and debugging (on gentoo linux)

Robert Cimrman cimrman3 at ntc.zcu.cz
Thu Dec 1 03:56:15 CST 2005

Is there any gentooist who could help me setup python installation so 
that scipy compiles with debugging symbols?

BTW. I use a local install
(python setup.py install --root=/home/share/software + setting 
instead of the system install.

Reason: the following stopped working (segfault) after 1533 (not sure 
exactly when) core revision:

PyArrayObject *obj = 0;
intp plen[1];
plen[0] = <some length>
obj = (PyArrayObject *) PyArray_SimpleNew( 1, len, PyArray_INT32 );

My first sentence hints that I am not able to provide a better stack 
trace than this:

(gdb) bt
#0  0xb7a05ddf in PyArray_DescrFromType ()
#1  0xb7a17bfe in PyArray_ValidType ()
#2  0xb6410ce9 in helper_newCArrayObject_i32 (len=271, array=0x8332e18)
     at graph_wrap.c:788

I have also had to replace PyArray_ContiguousFromObject() (caused 
segfaults) with PyArray_ContiguousFromAny().


More information about the Scipy-dev mailing list