Re: Debugging a memory leak

2020-10-23 Thread Pasha Stetsenko
Thanks MRAB, this was it. I guess I was thinking about tp_dealloc as a C++ destructor, where the base class' destructor is called automatically. On Fri, Oct 23, 2020 at 11:59 AM MRAB wrote: > On 2020-10-23 19:32, Pasha Stetsenko wrote: > > Thanks for all the replies! > &g

Re: Debugging a memory leak

2020-10-23 Thread Pasha Stetsenko
n is open source, available at https://github.com/h2oai/datatable, but the code I posted above is completely independent from my library. On Fri, Oct 23, 2020 at 10:44 AM Dieter Maurer wrote: > Pasha Stetsenko wrote at 2020-10-22 17:51 -0700: > > ... > >I'm a maintainer of a

Debugging a memory leak

2020-10-22 Thread Pasha Stetsenko
Dear Python gurus, I'm a maintainer of a python library "datatable" (can be installed from PyPi), and i've been recently trying to debug a memory leak that occurs in my library. The program that exposes the leak is quite simple: ``` import datatable as dt import gc # just in case def leak(n=10**