[Scipy-tickets] [SciPy] #1202: netcdf segfault

SciPy Trac scipy-tickets@scipy....
Sun Sep 26 01:34:55 CDT 2010

#1202: netcdf segfault
 Reporter:  warren.weckesser  |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  normal            |   Milestone:  0.9.0   
Component:  scipy.io          |     Version:  0.7.0   
 Keywords:  netcdf            |  

Comment(by warren.weckesser):

 This might be a numpy bug.  The method assignValue() uses the numpy method
 itemset() on a memory-mapped array.  The following shows the bus error
 generated by using itemset()
 In [1]: import numpy as np

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

 In [3]: !cat tmp.dat

 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/scipy/ticket/1202#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list