[Numpy-discussion] numpy core dump on linux
Bruce Southey
bsouthey@gmail....
Thu Sep 3 09:24:23 CDT 2009
On 09/02/2009 10:26 PM, Charles R Harris wrote:
>
>
> On Wed, Sep 2, 2009 at 4:23 PM, Jeremy Mayes <jeremy.mayes@gmail.com
> <mailto:jeremy.mayes@gmail.com>> wrote:
>
> This one line causes python to core dump on linux.
> numpy.lexsort([
> numpy.array(['-','-','-','-','-','-','-','-','-','-','-','-','-'])[::-1],numpy.array([732685.,
> 732685., 732685., 732685., 732685., 732685.,732685.,
> 732685., 732685., 732685., 732685., 732685., 732679.])[::-1]])
>
> Here's some version info:
>
> python 2.5.4
> numpy 1.3.0
>
> error is
> *** glibc detected *** free(): invalid next size (fast):
> 0x0000000000526be0 ***
>
>
> I've opened ticket #1217 for this.
>
> Chuck
>
Hi,
It appears to work if you:
1) Use a copied version of the reverse string array using
numpy.copy(numpy.array(['-','-','-','-','-','-','-','-','-','-','-','-','-'])[::-1])
2) Change the dtype of the string array to at least S8
Which may support the suggestion that it is related to using [::-1].
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090903/11646a84/attachment.html
More information about the NumPy-Discussion
mailing list