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 corona10, vstinner
Date 2020-04-02.02:42:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585795362.17.0.751600893706.issue40149@roundup.psfhosted.org>
In-reply-to
Content
I'm not sure why, but trigger explicitly a second GC collection fix the issue.

diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 2d5cb0ff78..d20ae01238 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -1295,6 +1295,7 @@ finalize_interp_clear(PyThreadState *tstate)
     /* Trigger a GC collection on subinterpreters*/
     if (!is_main_interp) {
         _PyGC_CollectNoFail();
+        _PyGC_CollectNoFail();
     }
 
     finalize_interp_types(tstate, is_main_interp);
History
Date User Action Args
2020-04-02 02:42:42vstinnersetrecipients: + vstinner, corona10
2020-04-02 02:42:42vstinnersetmessageid: <1585795362.17.0.751600893706.issue40149@roundup.psfhosted.org>
2020-04-02 02:42:42vstinnerlinkissue40149 messages
2020-04-02 02:42:42vstinnercreate