Here is the debug info:

In [4]: scipy.ndimage.test(verbosity=2)

Found 398 tests for scipy.ndimage

Warning: No test file found in /usr/lib/python2.3/site-packages/scipy/ndimage/tests for module <module 'scipy.ndimage._nd_image' from '...ges/scipy/ndimage/_nd_image.so'>

Warning: No test file found in /usr/lib/python2.3/site-packages/scipy/ndimage/tests for module <module 'scipy.ndimage._ni_support' from '.../scipy/ndimage/_ni_support.pyc'>

Warning: No test file found in /usr/lib/python2.3/site-packages/scipy/ndimage/tests for module <module 'scipy.ndimage.filters' from '...ages/scipy/ndimage/filters.pyc'>

Warning: No test file found in /usr/lib/python2.3/site-packages/scipy/ndimage/tests for module <module 'scipy.ndimage.fourier' from '...ages/scipy/ndimage/fourier.pyc'>

Warning: No test file found in /usr/lib/python2.3/site-packages/scipy/ndimage/tests for module <module 'scipy.ndimage.info' from '...ackages/scipy/ndimage/info.pyc'>

Warning: No test file found in /usr/lib/python2.3/site-packages/scipy/ndimage/tests for module <module 'scipy.ndimage.interpolation' from '...cipy/ndimage/interpolation.pyc'>

Warning: No test file found in /usr/lib/python2.3/site-packages/scipy/ndimage/tests for module <module 'scipy.ndimage.measurements' from '...scipy/ndimage/measurements.pyc'>

Warning: No test file found in /usr/lib/python2.3/site-packages/scipy/ndimage/tests for module <module 'scipy.ndimage.morphology' from '...s/scipy/ndimage/morphology.pyc'>

Found 0 tests for __main__

affine_transform 1 ... ok

affine transform 2 ... ok

affine transform 3 ... ok

affine transform 4 ... ok

affine transform 5 ... ok

affine transform 6 ... ok

affine transform 7 ... ok

affine transform 8 ... ok

affine transform 9 ... ok

affine transform 10 ... ok

affine transform 11 ... ok

affine transform 12 ... ok

affine transform 13 ... ok

affine transform 14 ... ok

affine transform 15 ... ok

affine transform 16 ... ok

affine transform 17 ... ok

affine transform 18 ... ok

affine transform 19 ... ok

affine transform 20 ... ok

affine transform 21 ... ok

binary closing 1 ... ok

binary closing 2 ... ok

binary dilation 1 ... ok

binary dilation 2 ... ok

binary dilation 3 ... ok

binary dilation 4 ... ok

binary dilation 5 ... ok

binary dilation 6 ... ok

binary dilation 7 ... ok

binary dilation 8 ... ok

binary dilation 9 ... ok

binary dilation 10 ... ok

binary dilation 11 ... ok

binary dilation 12 ... ok

binary dilation 13 ... ok

binary dilation 14 ... ok

binary dilation 15 ... ok

binary dilation 16 ... ok

binary dilation 17 ... ok

binary dilation 18 ... ok

binary dilation 19 ... ok

binary dilation 20 ... ok

binary dilation 21 ... ok

binary dilation 22 ... ok

binary dilation 23 ... ok

binary dilation 24 ... ok

binary dilation 25 ... ok

binary dilation 26 ... ok

binary dilation 27 ... ok

binary dilation 28 ... ok

binary dilation 29 ... ok

binary dilation 30 ... ok

binary dilation 31 ... ok

binary dilation 32 ... ok

binary dilation 33 ... ok

binary dilation 34 ... ok

binary dilation 35 ... ok

binary erosion 1 ... ok

binary erosion 2 ... ok

binary erosion 3 ... ok

binary erosion 4 ... ok

binary erosion 5 ... ok

binary erosion 6 ... ok

binary erosion 7 ... ok

binary erosion 8 ... ok

binary erosion 9 ... ok

binary erosion 10 ... ok

binary erosion 11 ... ok

binary erosion 12 ... ok

binary erosion 13 ... ok

binary erosion 14 ... ok

binary erosion 15 ... ok

binary erosion 16 ... ok

binary erosion 17 ... ok

binary erosion 18 ... ok

binary erosion 19 ... ok

binary erosion 20 ... ok

binary erosion 21 ... ok

binary erosion 22 ... ok

binary erosion 23 ... ok

binary erosion 24 ... ok

binary erosion 25 ... ok

binary erosion 26 ... ok

binary erosion 27 ... ok

binary erosion 28 ... ok

binary erosion 29 ... ok

binary erosion 30 ... ok

binary erosion 31 ... ok

binary erosion 32 ... ok

binary erosion 33 ... ok

binary erosion 34 ... ok

binary erosion 35 ... ok

binary erosion 36 ... ok

binary fill holes 1 ... ok

binary fill holes 2 ... ok

binary fill holes 3 ... ok

binary opening 1 ... ok

binary opening 2 ... ok

binary propagation 1 ... ok

binary propagation 2 ... ok

black tophat 1 ... ok

black tophat 2 ... ok

boundary modes/usr/lib/python2.3/site-packages/scipy/ndimage/interpolation.py:41: UserWarning: Mode "reflect" may yield incorrect results on boundaries. Please use "mirror" instead.

warnings.warn('Mode "reflect" may yield incorrect results on '

... ok

center of mass 1 ... ok

center of mass 2 ... ok

center of mass 3 ... ok

center of mass 4 ... ok

center of mass 5 ... ok

center of mass 6 ... ok

center of mass 7 ... ok

center of mass 8 ... ok

center of mass 9 ... ok

correlation 1 ... ok

correlation 2 ... ok

correlation 3 ... ok

correlation 4 ... ok

correlation 5 ... ok

correlation 6 ... ok

correlation 7 ... ok

correlation 8 ... ok

correlation 9 ... ok

correlation 10 ... ok

correlation 11 ... ok

correlation 12 ... ok

correlation 13 ... ok

correlation 14 ... ok

correlation 15 ... ok

correlation 16 ... ok

correlation 17 ... ok

correlation 18 ... ok

correlation 19 ... ok

correlation 20 ... ok

correlation 21 ... ok

correlation 22 ... ok

correlation 23 ... ok

correlation 24 ... ok

correlation 25 ... ok

brute force distance transform 1 ... ok

brute force distance transform 2 ... ok

brute force distance transform 3 ... ok

brute force distance transform 4 ... ok

brute force distance transform 5 ... ok

brute force distance transform 6 ... ok

chamfer type distance transform 1 ... ok

chamfer type distance transform 2 ... ok

chamfer type distance transform 3 ... ok

euclidean distance transform 1 ... ok

euclidean distance transform 2 ... ok

euclidean distance transform 3 ... ok

euclidean distance transform 4 ... ok

line extension 1 ... ok

line extension 2 ... ok

line extension 3 ... ok

line extension 4 ... ok

line extension 5 ... ok

line extension 6 ... ok

line extension 7 ... ok

line extension 8 ... ok

line extension 9 ... ok

line extension 10 ... ok

extrema 1 ... ok

extrema 2 ... ok

extrema 3 ... ok

extrema 4 ... ok

find_objects 1 ... ok

find_objects 2 ... ok

find_objects 3 ... ok

find_objects 4 ... ok

find_objects 5 ... ok

find_objects 6 ... ok

find_objects 7 ... ok

find_objects 8 ... ok

find_objects 9 ... ok

ellipsoid fourier filter for complex transforms 1 ... ok

ellipsoid fourier filter for real transforms 1 ... ok

gaussian fourier filter for complex transforms 1 ... ok

gaussian fourier filter for real transforms 1 ... ok

shift filter for complex transforms 1 ... ok

shift filter for real transforms 1 ... ok

uniform fourier filter for complex transforms 1 ... ok

uniform fourier filter for real transforms 1 ... ok

gaussian filter 1 ... ok

gaussian filter 2 ... ok

gaussian filter 3 ... ok

gaussian filter 4 ... ok

gaussian filter 5 ... ok

gaussian filter 6 ... ok

gaussian gradient magnitude filter 1 ... ok

gaussian gradient magnitude filter 2 ... ok

gaussian laplace filter 1 ... ok

gaussian laplace filter 2 ... ok

generation of a binary structure 1 ... ok

generation of a binary structure 2 ... ok

generation of a binary structure 3 ... ok

generation of a binary structure 4 ... ok

generic filter 1Segmentation fault

And Stefan is right. The problem is generic_filter.

Gen

On Apr 30, 2007, at 4:09 PM, Robert Kern wrote:

Gennan Chen wrote:

Hi! All,

scipy.ndimage gave me seg fault on Rocks 4.0, python 2.3.4. Anyone has a

solution?

Can you rerun the tests with scipy.ndimage.test(verbosity=2)? That will put the

test framework into verbose mode and print out the name of the test before it's

run. That way, we can know which test failed.

A gdb backtrace would also be helpful if you know how to get one.

--

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma

that is made terrible by our own mad attempt to interpret it as though it had

an underlying truth."

-- Umberto Eco

_______________________________________________

SciPy-user mailing list