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 vstinner
Recipients eric.smith, ncoghlan, skrah, vstinner
Date 2017-09-11.17:14:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505150044.63.0.482570433783.issue31420@psf.upfronthosting.co.za>
In-reply-to
Content
The leak comes from the following lines of _PySys_EndInit():
---
    PyObject *warnoptions = get_warnoptions();
    if (warnoptions == NULL)
        return -1;
    SET_SYS_FROM_STRING_BORROW_INT_RESULT("warnoptions", warnoptions);

    PyObject *xoptions = get_xoptions();
    if (xoptions == NULL)
        return -1;
    SET_SYS_FROM_STRING_BORROW_INT_RESULT("_xoptions", xoptions);
---

It's not the first time that I have an issue with these attributes. The last reference weak caused by multiple interpreters was also related to this one if I recall correctly.

See bpo-30598 and my commit 865de27dd79571a4a5c7a7d22a07fb909c4a9f8e.
History
Date User Action Args
2017-09-11 17:14:04vstinnersetrecipients: + vstinner, ncoghlan, eric.smith, skrah
2017-09-11 17:14:04vstinnersetmessageid: <1505150044.63.0.482570433783.issue31420@psf.upfronthosting.co.za>
2017-09-11 17:14:04vstinnerlinkissue31420 messages
2017-09-11 17:14:04vstinnercreate