[Numpy-discussion] Memory leak with numpy master

Nathaniel Smith njs@pobox....
Mon Sep 24 13:59:11 CDT 2012


On Mon, Sep 24, 2012 at 7:45 PM, Nathaniel Smith <njs@pobox.com> wrote:
> On Mon, Sep 24, 2012 at 7:19 PM, Gael Varoquaux
> <gael.varoquaux@normalesup.org> wrote:
>> Hi Fred,
>>
>> On Mon, Sep 24, 2012 at 02:17:16PM -0400, Frédéric Bastien wrote:
>>> with numpy '1.6.1', I have no problem.
>>
>>> With numpy 1.7.0b2, I can reproduce the problem.
>>
>> OK, thanks. I think that I'll start a bisect to figure out when it crept
>> in.
>
> This also seems to reproduce it:
>
> while True:
>     a = np.zeros((1000, 1000))
>     a.diagonal()
>
> which means I probably forgot a DECREF while doing the
> PyArray_Diagonal changes...

Yep: https://github.com/numpy/numpy/pull/457

-n


More information about the NumPy-Discussion mailing list