[Numpy-tickets] [NumPy] #514: memory corruption crash with array of strings

NumPy numpy-tickets@scipy....
Wed May 9 09:03:55 CDT 2007

#514: memory corruption crash with array of strings
 Reporter:  benjamin.thyreau  |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  normal            |   Milestone:          
Component:  numpy.core        |     Version:  devel   
 Severity:  normal            |    Keywords:          
 The following code seems to trigger a crash for me.

 from numpy import hstack, __version__
 print __version__
 s = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
 t = []
 print hstack((t, s ))
 # in some case, try a second time
 print hstack((t, s ))


 *** glibc detected *** python: malloc(): memory corruption: 0x08c70a98 ***

 Tested on Python 2.4.1, 2.4.3 and 2.5, with numpy 1.0.1.dev3460 and

 Note that i'm aware that the code itself is silly :-)


Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/514>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list