[NumPy-Tickets] [NumPy] #2001: Seg fault when using r_ incorrectly

NumPy Trac numpy-tickets@scipy....
Fri Dec 16 11:33:53 CST 2011


#2001: Seg fault when using r_ incorrectly
----------------------+-----------------------------------------------------
 Reporter:  claumann  |       Owner:  somebody   
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  Other     |     Version:  devel      
 Keywords:            |  
----------------------+-----------------------------------------------------
 Howdy-
 Just discovered a segfault when calling r_ on a list of arrays of record
 type in a recent snapshot. See minimal session below.
 Best, C


 {{{
 $ python
 Enthought Python Distribution -- www.enthought.com
 Version: 7.1-1 (64-bit)

 Python 2.7.2 |EPD 7.1-1 (64-bit)| (default, Jul  3 2011, 15:56:02)
 [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
 Type "packages", "demo" or "enthought" for more information.
 >>> import numpy as np
 >>> np.__version__
 '2.0.0.dev-26aa3cf'
 >>> dat1 = np.zeros(5, dtype=[('a', '<f8')])
 >>> dat2 = np.zeros(5, dtype=[('a', '<f8')])
 >>> np.r_[dat1,dat2]
 array([(0.0,), (0.0,), (0.0,), (0.0,), (0.0,), (0.0,), (0.0,), (0.0,),
        (0.0,), (0.0,)],
       dtype=[('a', '<f8')])
 >>> np.r_[[dat1,dat2]]
 Segmentation fault: 11

 $ uname -a
 Darwin blackbear.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9
 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64


 }}}

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


More information about the NumPy-Tickets mailing list