[NumPy-Tickets] [NumPy] #2148: Bus error/seg fault when using flat on sliced, memmap'd array

NumPy Trac numpy-tickets@scipy....
Fri Jun 1 13:52:59 CDT 2012


#2148: Bus error/seg fault when using flat on sliced, memmap'd array
----------------------+-----------------------------------------------------
 Reporter:  farrowch  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  1.6.1      
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by warren.weckesser):

 I'm getting burned by this in a project that I'm updating from numpy 1.5.1
 to 1.6.1.  The simplified code that triggers the crash is:

 {{{
 x = np.memmap('stuff.dat', dtype=np.uint8, mode='r')
 y = x[::2]
 print np.nanmin(y)   # Segfaults
 }}}

 This does not segfault in 1.5.1.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2148#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list