Re: [Numpy-discussion] Memory leak with numpy master

2012-09-24 Thread Gael Varoquaux
On Mon, Sep 24, 2012 at 07:59:11PM +0100, Nathaniel Smith wrote: > > which means I probably forgot a DECREF while doing the > > PyArray_Diagonal changes... > Yep: https://github.com/numpy/numpy/pull/457 Awesome. I can confirm that this fixes the problem. Script below to check. You are my hero!

Re: [Numpy-discussion] Memory leak with numpy master

2012-09-24 Thread Nathaniel Smith
On Mon, Sep 24, 2012 at 7:45 PM, Nathaniel Smith wrote: > On Mon, Sep 24, 2012 at 7:19 PM, Gael Varoquaux > 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.

Re: [Numpy-discussion] Memory leak with numpy master

2012-09-24 Thread Nathaniel Smith
On Mon, Sep 24, 2012 at 7:19 PM, Gael Varoquaux 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 whe

Re: [Numpy-discussion] Memory leak with numpy master

2012-09-24 Thread Gael Varoquaux
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. Gael __

Re: [Numpy-discussion] Memory leak with numpy master

2012-09-24 Thread Frédéric Bastien
Hi, with numpy '1.6.1', I have no problem. With numpy 1.7.0b2, I can reproduce the problem. HTH Fred On Mon, Sep 24, 2012 at 1:04 PM, Gael Varoquaux wrote: > Hi list, > > I think that I am hit a memory leak with numpy master. The following code > enables to reproduce it: > >

[Numpy-discussion] Memory leak with numpy master

2012-09-24 Thread Gael Varoquaux
Hi list, I think that I am hit a memory leak with numpy master. The following code enables to reproduce it: import numpy as np n = 100 m = np.eye(n) for i in range(3): #np.linalg.slogdet(m) t, result_t =