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 Mark.Shannon, chris.jerdonek, corona10, gvanrossum, iritkatriel, lukasz.langa, miss-islington, pablogsal, vstinner
Date 2021-08-18.16:43:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629304980.16.0.692044171295.issue44895@roundup.psfhosted.org>
In-reply-to
Content
Irit: do you still reproduce the issue using gc.disable()? Or you can try different values to call gc.set_threshold(). You may also try different values in ns.huntrleaks, like: ns.huntrleaks = (3, 20, 'tt_out.py'). With 20 iterations, do you still reproduce the leak?

To make the issue more likely, you can change check_rc_deltas() in Lib/test/libregrtest/refleak.py. Try:

    def check_rc_deltas(deltas):
        return any(delta >= 1 for delta in deltas)

With this change, the script stops immediately:

test leaked [-4, 4, -4] references, sum=-4
test leaked [-4, 4, -4] memory blocks, sum=-4

Using 20 iterations, I get:

test leaked [-4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4] references, sum=0
test leaked [-4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4] memory blocks, sum=0
History
Date User Action Args
2021-08-18 16:43:00vstinnersetrecipients: + vstinner, gvanrossum, chris.jerdonek, lukasz.langa, Mark.Shannon, corona10, pablogsal, miss-islington, iritkatriel
2021-08-18 16:43:00vstinnersetmessageid: <1629304980.16.0.692044171295.issue44895@roundup.psfhosted.org>
2021-08-18 16:43:00vstinnerlinkissue44895 messages
2021-08-18 16:43:00vstinnercreate