On 28 May 2008, at 16:30, Keith Goodman wrote:
> Does anyone else get this seg fault?
>
>>> def fn():
> x = np.random.rand(5,2)
> x.cumsum(None, out=x)
> return x
> ....:
>>> fn()
> *** glibc detected *** /usr/bin/python: double free or corruption
> (out): 0x08212dc8 ***
>
> I'm running 1.0.4 from Debian Lenny with python 2.5.2 compiled with
> gcc 4.2.3-3, if that matters.
Nope,
In [1]: import numpy as np
In [2]: def fn():
...: x = np.random.rand(5,2)
...: x.cumsum(None,out=x)
...: return x
...:
In [3]: fn()
Out[3]:
array([[ 0.07840917, 0.73252624],
[ 0.8109354 , 0.38653933],
[ 1.62187081, 0.1785713 ],
[ 2.00841014, 0.76834603],
[ 3.63028095, 0.64377051]])
Max OSX, Python 2.5, numpy 1.0.4.
Joris
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion