python-netcdf segmentation fault when setting attributes
Bug #1005571 reported by
James Maddison
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-scientific (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Tested on Ubuntu Precise 64 bit. The following code produces a segmentation fault:
#!/usr/bin/env python
import numpy
import Scientific.
handle = netcdf.
handle.test = numpy.array(1.0)
handle.close()
The following avoids a segmentation fault, but produces an unexpected Python error:
#!/usr/bin/env python
import numpy
import Scientific.
handle = netcdf.
handle.test = 1.0
handle.close()
$ ./test_netcdf
Traceback (most recent call last):
File "./test_netcdf", line 5, in <module>
handle.test = 1.0
ValueError: Must be a datetime.timedelta object
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.