Message411332
> See also bpo-46476: Not all memory allocated by _Py_Quicken() is released at Python exit.
If you apply my workaround for bpo-46476:
https://bugs.python.org/issue46476#msg411321
Python no longer leaks any memory block at exit for the simplest command!
$ ./python -I -X showrefcount -c pass
[-5 refs, 0 blocks]
Moreover, I modified deepfreeze to only freeze importlib._bootstrap and importlib._bootstrap_external. It confirms that bpo-46449 is causing the negative reference count, because with these additional local changes I get a positive _Py_RefTotal:
$ ./python -I -X showrefcount -c pass
[6 refs, 0 blocks] |
|
Date |
User |
Action |
Args |
2022-01-23 02:22:48 | vstinner | set | recipients:
+ vstinner, phsilva, petr.viktorin, corona10, miss-islington, shihai1991, erlendaasland, kumaraditya |
2022-01-23 02:22:48 | vstinner | set | messageid: <1642904568.35.0.341857552463.issue46417@roundup.psfhosted.org> |
2022-01-23 02:22:48 | vstinner | link | issue46417 messages |
2022-01-23 02:22:48 | vstinner | create | |
|