[SciPy-Dev] netcdf segfault
Warren Weckesser
warren.weckesser at enthought.com
Wed Jun 16 13:34:55 EDT 2010
I created a ticket for this issue:
http://projects.scipy.org/scipy/ticket/1202
Warren
Warren Weckesser wrote:
> Benjamin Root wrote:
>
>> Hello,
>>
>> 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 <http://scipy.io> import netcdf
>> f = netcdf.netcdf_file("testdata.netcdf", 'r')
>> tval = f.variables['t']
>> tval.assignValue(42)
>> f.close()
>>
>>
>
> Yup--I get a bus error on Mac OSX 10.5 with scipy trunk.
>
> Warren
>
>
>> Ben Root
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> SciPy-Dev mailing list
>> SciPy-Dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-dev
>>
>>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
More information about the SciPy-Dev
mailing list