[Scipy-tickets] [SciPy] #742: scipy.ndimage.label crash on 64-bit linux

SciPy scipy-tickets@scipy....
Tue Sep 23 06:55:21 CDT 2008


#742: scipy.ndimage.label  crash on 64-bit linux
---------------------------+------------------------------------------------
 Reporter:  usovalx        |       Owner:  somebody
     Type:  defect         |      Status:  new     
 Priority:  normal         |   Milestone:  0.7.0   
Component:  scipy.ndimage  |     Version:          
 Severity:  major          |    Keywords:          
---------------------------+------------------------------------------------
 It appears that ndimage.label is bugged for 64-bit linux builds. So far I
 was able to trigger the bug by using reasonably large 3-d datasets. Sample
 code:

 =============================
 from numpy import *
 import scipy.ndimage as nd

 shape=(3, 1000, 1000)
 a = random.rand(product(shape)).reshape(shape)
 m = a > .7
 nd.label(m, nd.generate_binary_structure(3,3))
 =============================

 This code works fine on 32-bit machines, but crashes with "segmentation
 fault  python" on 64-bit fedora & debian. Both 0.6.0 and (current) trunk
 versions crash.

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/742>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list