[Numpy-tickets] [NumPy] #551: numpy.ndarray messed up after unpickling
NumPy
numpy-tickets@scipy....
Wed Oct 24 03:17:53 CDT 2007
#551: numpy.ndarray messed up after unpickling
---------------------------------------+------------------------------------
Reporter: cotackst | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.4
Component: numpy.core | Version: 1.0.1
Severity: normal | Resolution:
Keywords: pickle, ndarray, segfault |
---------------------------------------+------------------------------------
Comment (by stefan):
Minimal test case:
{{{
import cPickle
import numpy as N
data = N.random.random((3,3))
cPickle.dump(data,file('mat2.bug','w'))
bug_mat = cPickle.load(file('mat2.bug'))
ok_mat = bug_mat.copy()
v = N.ones((1,bug_mat.shape[0]))
N.dot(v,ok_mat) # this works
N.dot(v,bug_mat) # this segfault
}}}
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/551#comment:5>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list