[Numpy-discussion] segmentation fault

Keith Goodman kwgoodman@gmail....
Wed May 28 10:21:33 CDT 2008


On Wed, May 28, 2008 at 7:30 AM, Keith Goodman <kwgoodman@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