Author vstinner
Recipients pablogsal, vstinner, xtreak
Date 2019-02-12.18:46:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It's impressive *and* scary that such 13 years old bug only show up today...

I modified the GC threshold in the site module with this patch:

diff --git a/Lib/ b/Lib/
index ad1146332b..68cdf105b1 100644
--- a/Lib/
+++ b/Lib/
@@ -557,6 +557,10 @@ def main():
     This function is called automatically when this module is imported,
     unless the python interpreter was started with the -S flag.
+    import gc, random
+    n = random.randint(5, 100)
+    gc.set_threshold(n)
     global ENABLE_USER_SITE
     orig_path = sys.path[:]

Running the test suite with this patch doesn't catch the bug :-(

$ ./python -m test -j0 -r -u all,-gui
Date User Action Args
2019-02-12 18:46:48vstinnersetrecipients: + vstinner, pablogsal, xtreak
2019-02-12 18:46:48vstinnersetmessageid: <>
2019-02-12 18:46:48vstinnerlinkissue35961 messages
2019-02-12 18:46:48vstinnercreate