Message335344
| 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:48 | vstinner | set | recipients:
+ vstinner, pablogsal, xtreak |
| 2019年02月12日 18:46:48 | vstinner | set | messageid: <1549997208.24.0.0423055962824.issue35961@roundup.psfhosted.org> |
| 2019年02月12日 18:46:48 | vstinner | link | issue35961 messages |
| 2019年02月12日 18:46:48 | vstinner | create |
|