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 phsilva
Recipients amaury.forgeotdarc, corona10, eric.snow, isoschiz, kylotan, lukasz.langa, miss-islington, pconnell, phsilva, santoso.wijaya, shihai1991, tlesher, vstinner, ysj.ray
Date 2020-03-25.01:46:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Updating on my findings on msg364833.

It looks like encodings module is not being destoyed at all and keeping all the encoding refs alive. Looks like some cycle but I am not sure yet how to solve it.

To validate this, I:
 - removed codec_search_cach of PyInterpreterState.
 - Py_DECREFd(encodings) after loading it on codecs.c.

Before: 4376 refs left (37fcbb65d4)
After :  352 refs left (-92%)

I've updated the changes at (not a proposed patch, just to validate the idea)
Date User Action Args
2020-03-25 01:46:40phsilvasetrecipients: + phsilva, amaury.forgeotdarc, kylotan, vstinner, tlesher, ysj.ray, santoso.wijaya, lukasz.langa, eric.snow, pconnell, isoschiz, corona10, miss-islington, shihai1991
2020-03-25 01:46:40phsilvasetmessageid: <>
2020-03-25 01:46:40phsilvalinkissue1635741 messages
2020-03-25 01:46:39phsilvacreate