This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author levkivskyi
Recipients gvanrossum, levkivskyi
Date 2017-02-23.23:47:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487893667.97.0.185214523378.issue29638@psf.upfronthosting.co.za>
In-reply-to
Content
This command:

./python -c 'import runpy, typing; runpy.run_module("test")' -R 5:5 test_collections

Sometimes gives spurious failures like this:

test_collections leaked [0, 0, 3, -3, 3] memory blocks, sum=3

I think this is because ABC caches of typing.ChainMap, typing.Counter, and typing.DefaultDict are not cleared by refleak.py/dash_R_cleanup (presumably because inspect.isabstract returns False on those)

Adding a manual clean-up of these cashes to cleanup_cashes() fixes the "leak".
History
Date User Action Args
2017-02-23 23:47:48levkivskyisetrecipients: + levkivskyi, gvanrossum
2017-02-23 23:47:47levkivskyisetmessageid: <1487893667.97.0.185214523378.issue29638@psf.upfronthosting.co.za>
2017-02-23 23:47:47levkivskyilinkissue29638 messages
2017-02-23 23:47:47levkivskyicreate