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 chris.jerdonek, corona10, iritkatriel, lukasz.langa, miss-islington, vstinner
Date 2021-08-13.12:59:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628859585.7.0.0178091555109.issue44895@roundup.psfhosted.org>
In-reply-to
Content
Chris:
> Out of curiosity, is the failure deterministic in environments where it fails? If not, what is the source of the indeterminism -- some kind of race condition or something else?

The GC uses counters and thresholds to decide which collection and when they should be collected. I tried to play with gc.set_threshold(), but I failed to reproduce the issue on Linux.

Maybe it's a very precise threshold which triggers the issue. Between Linux and macOS, the site module executes different code paths which produce different GC counters.

Sometimes, the GC must happen in a very precise line, one line later is too late. See bpo-44422 for a case of threading.enumerate() (different kind of bug, but it's related to the GC). See bpo-44184 for another example of GC bug which only occurred on Windows and only if you type an exact command line.
History
Date User Action Args
2021-08-13 12:59:45vstinnersetrecipients: + vstinner, chris.jerdonek, lukasz.langa, corona10, miss-islington, iritkatriel
2021-08-13 12:59:45vstinnersetmessageid: <1628859585.7.0.0178091555109.issue44895@roundup.psfhosted.org>
2021-08-13 12:59:45vstinnerlinkissue44895 messages
2021-08-13 12:59:45vstinnercreate