[NumPy-Tickets] [NumPy] #1598: Segfault when changing the filed names of an structured array

NumPy Trac numpy-tickets@scipy....
Wed Sep 1 10:29:18 CDT 2010


#1598: Segfault when changing the filed names of an structured array
------------------------+---------------------------------------------------
 Reporter:  faltet      |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:             
 Keywords:              |  
------------------------+---------------------------------------------------
 The next reproduces the segfault:

 {{{
 In [1]: import numpy as np

 In [2]: np.__version__
 Out[2]: '1.5.0'

 In [3]: ra = np.fromiter(((i*3, i*2) for i in xrange(10)), dtype='i8,f8')

 In [4]: ra.dtype.names = ('f1', 'f2')

 In [5]: ra
 Segmentation fault

 }}}

 I don't know if the `names` filed of a dtype can be changed like this, but
 numpy let me do that, so...

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1598>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list