[NumPy-Tickets] [NumPy] #1370: numpy.load() crashes on invalid data

NumPy Trac numpy-tickets@scipy....
Thu Jan 21 17:17:33 CST 2010


#1370: numpy.load() crashes on invalid data
------------------------+---------------------------------------------------
 Reporter:  dhelfman    |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  1.5.0   
Component:  numpy.core  |     Version:  1.4.0   
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by dhelfman):

 Oops, the Mac version of the backtrace should be:

 {{{
 $ gdb python
 GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC
 2008)
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for
 details.
 This GDB was configured as "i386-apple-darwin"...Reading symbols for
 shared libraries .. done

 (gdb) r -c "import cStringIO as io ; import numpy as np ; np.load(
 io.StringIO('0') )"
 Starting program:
 /System/Library/Frameworks/Python.framework/Versions/2.6/bin/python -c
 "import cStringIO as io ; import numpy as np ; np.load( io.StringIO('0')
 )"
 Reading symbols for shared libraries +. done

 Program received signal SIGTRAP, Trace/breakpoint trap.
 0x8fe01010 in __dyld__dyld_start ()
 (gdb) bt
 #0  0x8fe01010 in __dyld__dyld_start ()
 Cannot access memory at address 0x4
 }}}

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


More information about the NumPy-Tickets mailing list