[Scipy-tickets] [SciPy] #1277: measurements.label: uneven array shape causes segfault

SciPy Trac scipy-tickets@scipy....
Mon Sep 13 03:39:43 CDT 2010


#1277: measurements.label: uneven array shape causes segfault
---------------------------------+------------------------------------------
 Reporter:  gurkpeter            |       Owner:  somebody
     Type:  defect               |      Status:  new     
 Priority:  normal               |   Milestone:  0.9.0   
Component:  scipy.ndimage        |     Version:  0.7.0   
 Keywords:  measurements, label  |  
---------------------------------+------------------------------------------
 {{{
 a = numpy.random.randint(0,high=65535,size=(256,256,2300))
 import scipy.ndimage.measurements
 b = scipy.ndimage.measurements.label(a[0:70,0:170,:].astype(numpy.bool))
 }}}
 Segfault.

 Segfaults only if second dimension is larger than first.

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


More information about the Scipy-tickets mailing list