[Numpy-tickets] [NumPy] #314: array factory aborts when passed a list with a void type inside

NumPy numpy-tickets at scipy.net
Wed Oct 4 07:31:59 CDT 2006


#314: array factory aborts when passed a list with a void type inside
------------------------+---------------------------------------------------
 Reporter:  faltet      |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  1.0 Release
Component:  numpy.core  |     Version:  devel      
 Severity:  normal      |    Keywords:             
------------------------+---------------------------------------------------
 The next exposes the problem:

 {{{
 In [1]:import numpy
 In [2]:rows=[(0,)]
 In [3]:descr=[('x', 'i4')]
 In [4]:numpy.array([rows[0]], dtype=descr)
 Out[4]:
 array([(0,)],
       dtype=[('x', '<i4')])
 In [5]:scra = numpy.array(rows, dtype=descr)[0]
 In [6]:numpy.array(scra, dtype=descr)
 Out[6]:
 array((0,),
       dtype=[('x', '<i4')])
 # So far so good, but....
 In [7]:numpy.array([scra], dtype=descr)
 *** glibc detected *** double free or corruption (fasttop): 0x081e46d0 ***
 Avortat

 }}}

 Using numpy 1.0.dev3249

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


More information about the Numpy-tickets mailing list