[Numpy-discussion] numpy core dump on linux

2009-09-02 Thread Jeremy Mayes
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

Re: [Numpy-discussion] ndarray subclass causes memory leak

2009-08-14 Thread Jeremy Mayes
:1273) ==10132==by 0x4AED612: PyRun_SimpleFileExFlags (pythonrun.c:879) ==10132==by 0x4AF88C7: Py_Main (main.c:532) ==10132==by 0x38C821C3FA: (below main) (in /lib64/tls/libc-2.3.4.so) ==10132== On Fri, Aug 14, 2009 at 6:34 AM, Jeremy Mayes wrote: > This simple example causes a

[Numpy-discussion] ndarray subclass causes memory leak

2009-08-14 Thread Jeremy Mayes
This simple example causes a massive leak in v1.3.0 which didn't exist in v1.0.1. What am I doing wrong? If I replace arr = [Array((2,2)), Array((2,2))] with arr = [numpy.ndarray((2,2,)), numpy.ndarray((2,2))] then I don't have the leak import numpy import gc class Array(numpy.ndarray): d