homepage

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 pablogsal, vstinner, xtreak
Date 2019年02月12日.18:46:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549997208.24.0.0423055962824.issue35961@roundup.psfhosted.org>
In-reply-to
Content
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/site.py b/Lib/site.py
index ad1146332b..68cdf105b1 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -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
History
Date User Action Args
2019年02月12日 18:46:48vstinnersetrecipients: + vstinner, pablogsal, xtreak
2019年02月12日 18:46:48vstinnersetmessageid: <1549997208.24.0.0423055962824.issue35961@roundup.psfhosted.org>
2019年02月12日 18:46:48vstinnerlinkissue35961 messages
2019年02月12日 18:46:48vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /