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 BTaskaya
Recipients BTaskaya, David.Edelsohn, Michael.Felt, pablogsal, vstinner
Date 2020-04-19.06:20:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587277253.97.0.170354741842.issue40244@roundup.psfhosted.org>
In-reply-to
Content
Moving assertion from _PyObject_GC_TRACK to gen_dealloc (just before the _PyObject_GC_TRACK call) results with success (????)

     if (gen->gi_weakreflist != NULL)
         PyObject_ClearWeakRefs(self);
-
+    _PyObject_ASSERT_FROM(self, !_PyObject_GC_IS_TRACKED(self),
+                          "object already tracked by they garbage collector",
+                          __FILE__, __LINE__, "_PyObject_GC_TRACK");
     _PyObject_GC_TRACK(self);
 
     if (PyObject_CallFinalizerFromDealloc(self))
History
Date User Action Args
2020-04-19 06:20:54BTaskayasetrecipients: + BTaskaya, vstinner, David.Edelsohn, Michael.Felt, pablogsal
2020-04-19 06:20:53BTaskayasetmessageid: <1587277253.97.0.170354741842.issue40244@roundup.psfhosted.org>
2020-04-19 06:20:53BTaskayalinkissue40244 messages
2020-04-19 06:20:53BTaskayacreate