[Numpy-discussion] segmentation fault
Keith Goodman
kwgoodman at gmail.com
Wed May 28 11:21:33 EDT 2008
On Wed, May 28, 2008 at 7:30 AM, Keith Goodman <kwgoodman at gmail.com> 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 replaced cumsum with sum and with max. Both give
ValueError: wrong shape for output
So is that the problem? No check for shape is made?
More information about the NumPy-Discussion
mailing list