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

SciPy Trac scipy-tickets@scipy....
Wed Jun 16 12:33:19 CDT 2010


#1202: netcdf segfault
------------------------------+---------------------------------------------
 Reporter:  warren.weckesser  |       Owner:  somebody
     Type:  defect            |      Status:  new     
 Priority:  normal            |   Milestone:  0.8.0   
Component:  scipy.io          |     Version:  0.7.0   
 Keywords:  netcdf            |  
------------------------------+---------------------------------------------
 From Benjamin Root on the scipy-dev mailing list (June 14, 2010):
 {{{
 I was trying out the scipy.io.netcdf module in order to work
 on the documentation and I came across a way to segfault out
 of python.  If you open an existing netcdf file as read-only
 and then try to set a scalar value using .assignValue for a
 1-element netcdf_variable, the program segfaults rather than
 raising an exception.

 Here is an example to go with a very small netcdf file as a test:

 from scipy.io import netcdf
 f = netcdf.netcdf_file("testdata.netcdf", 'r')
 tval = f.variables['t']
 tval.assignValue(42)
 f.close()
 }}}
 (http://mail.scipy.org/pipermail/scipy-dev/2010-June/014824.html)

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1202>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list