[NumPy-Tickets] [NumPy] #1622: Bus error when attempting to use itemset() on a read-only memory-mapped array

NumPy Trac numpy-tickets@scipy....
Sun Sep 26 01:43:09 CDT 2010


#1622: Bus error when attempting to use itemset() on a read-only memory-mapped
array
------------------------------+---------------------------------------------
 Reporter:  warren.weckesser  |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  normal            |   Milestone:  2.0.0   
Component:  numpy.core        |     Version:  1.5.0   
 Keywords:  itemset           |  
------------------------------+---------------------------------------------
 From http://projects.scipy.org/scipy/ticket/1202
 {{{
 In [1]: import numpy as np

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

 In [3]: !cat tmp.dat
 DBC

 In [4]: m = np.memmap('tmp.dat', np.uint8, 'r')

 In [5]: m[0:1].itemset(65)
 Bus error
 }}}
 The bus error does not occur if the file is opened with mode 'r+'.

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


More information about the NumPy-Tickets mailing list