[issue44895] refleak test failure in test_exceptions

Pablo Galindo Salgado report at bugs.python.org
Tue Aug 17 16:21:45 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

> But this makes it not leak again, so now we know it's the traceback:

The traceback is a very heavy gc object because it contains the frames, and in the locals of the frame is the traceback itself via the exception. This is a well known heavy cycle, but the gc should take care of it if the cycle becomes isolated

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44895>
_______________________________________


More information about the Python-bugs-list mailing list