[Numpy-discussion] Memory leak in ndarray, more info

Kurt Smith kwmsmith@gmail....
Fri Oct 26 16:12:40 CDT 2007


On 10/26/07, Robert Crida <robert.crida@ska.ac.za> wrote:
> Hi all
>
> I recently posted about a memory leak in numpy and failed to mention the
> version. The leak manifests itself in numpy-1.0.3.1 but is not present in
> numpy-1.0.2
>
> The following code reproduces the bug:
>
> import numpy as np
>
> a = np.array([1.0, 2.0, 3.0])
> while True:
>     b = str(a)
>
> What happens above is that is repeatedly converted to a string. The process
> size grow quite rapidly.
>
> Has anyone else come across this? Where do I look to try to correct it?

I find the same leak:

Python version: 2.5.1

numpy version: 1.0.4.dev4081

Regards,

Kurt

>
> Thanks
>  Robert


More information about the Numpy-discussion mailing list