[NumPy-Tickets] [NumPy] #2076: Bus error for F order ndarray creation on SPARC

NumPy Trac numpy-tickets@scipy....
Thu Mar 8 17:23:05 CST 2012


#2076: Bus error for F order ndarray creation on SPARC
------------------------------------+---------------------------------------
 Reporter:  matthew.brett           |       Owner:  somebody   
     Type:  defect                  |      Status:  new        
 Priority:  normal                  |   Milestone:  Unscheduled
Component:  Other                   |     Version:  devel      
 Keywords:  bus error sparc debian  |  
------------------------------------+---------------------------------------
Description changed by matthew.brett:

Old description:

> This test:
>
> {{{
> import numpy as np
>
> from StringIO import StringIO as BytesIO
>
> from numpy.testing import assert_array_equal
>

> def test_2d_buf():
>    dtt = np.complex64
>    arr = np.arange(10, dtype=dtt)
>    # 2D array
>    arr2 = np.reshape(arr, (2, 5))
>    # Fortran write followed by (C or F) read caused bus error
>    data_str = arr2.tostring('F')
>    data_back = np.ndarray(arr2.shape,
>                           arr2.dtype,
>                           buffer=data_str,
>                           order='F')
>    assert_array_equal(arr2, data_back)
> }}}
>
> causes a bus error on Debian squeezy on SPARC64.  This is only so for
> complex types as `dtt`, and if the array is > 1D.  Debug log attached.

New description:

 This test, using numpy '1.7.0.dev-7c07089':

 {{{
 import numpy as np

 from StringIO import StringIO as BytesIO

 from numpy.testing import assert_array_equal


 def test_2d_buf():
    dtt = np.complex64
    arr = np.arange(10, dtype=dtt)
    # 2D array
    arr2 = np.reshape(arr, (2, 5))
    # Fortran write followed by (C or F) read caused bus error
    data_str = arr2.tostring('F')
    data_back = np.ndarray(arr2.shape,
                           arr2.dtype,
                           buffer=data_str,
                           order='F')
    assert_array_equal(arr2, data_back)
 }}}

 causes a bus error on Debian squeezy on SPARC64.  This is only so for
 complex types as `dtt`, and if the array is > 1D.  Debug log attached.

--

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


More information about the NumPy-Tickets mailing list