[Python-Dev] [Python-checkins] Daily reference leaks (b78574cb00ab): sum=1120 (original) (raw)

Kevin Modzelewski kmod at dropbox.com
Sat Nov 19 14:46:36 EST 2016


Hi Yury, you may be interested in some leak-finding code that wrote for Pyston. It uses the GC infrastructure to show you objects that were directly leaked, ignoring indirect leaks -- ie objects that were only leaked because they were referenced by a leaked object. It can often give you a very small list of objects to look into (depending on how many non-gc objects were leaked). If you're interested I can try porting it to CPython.

https://github.com/dropbox/pyston/blob/master/from_cpython/Modules/gcmodule.c#L894

kmod

On Wed, Nov 9, 2016 at 7:16 AM, Yury Selivanov <yselivanov.ml at gmail.com> wrote:

I'm trying to fix refleaks in 3.6. So far:

On 2016-11-09 4:02 AM, solipsis at pitrou.net wrote: results for b78574cb00ab on branch "default" --------------------------------------------

testast leaked [98, 98, 98] references, sum=294 testast leaked [98, 98, 98] memory blocks, sum=294 testasyncio leaked [3, 0, 0] memory blocks, sum=3 testcode leaked [2, 2, 2] references, sum=6 testcode leaked [2, 2, 2] memory blocks, sum=6 testfunctools leaked [0, 3, 1] memory blocks, sum=4 testpydoc leaked [106, 106, 106] references, sum=318 testpydoc leaked [42, 42, 42] memory blocks, sum=126 testtrace leaked [12, 12, 12] references, sum=36 testtrace leaked [11, 11, 11] memory blocks, sum=33

testast, testcode and testtrace were fixed by https://hg.python.org/cpython/rev/2c6825c9ecfd testpydoc leaks in testtypingpydoc. I tried git bisect and it looks like that the first commit that introduced the refleak was the one that added testtypingpydoc! 62127e60e7b0 doesn't modify any CPython internals, so it looks like that testtypingpydoc exposed some bug that has existed before it. Any help tracking that down is welcome :) Yury


Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/kmod% 40dropbox.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20161119/3764cf11/attachment.html>



More information about the Python-Dev mailing list