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 serhiy.storchaka
Recipients eric.snow, martin.panter, nagisa, rhettinger, serhiy.storchaka, vstinner
Date 2015-10-18.08:04:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445155467.88.0.753761224374.issue25395@psf.upfronthosting.co.za>
In-reply-to
Content
I think there is no need to run the test in a subprocess. You can trigger the crash by "del obj".

from collections import OrderedDict
obj = None
for _ in range(1000):
    obj = OrderedDict([(None, obj)])

del obj
support.gc_collect()

Unfortunately this test is crashed with the patch.

Fatal Python error: Objects/odictobject.c:1443 object at 0xb749ddfc has negative ref count -1

Current thread 0xb7580700 (most recent call first):
  File "<stdin>", line 1 in <module>
Aborted (core dumped)
History
Date User Action Args
2015-10-18 08:04:27serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, eric.snow, martin.panter, nagisa
2015-10-18 08:04:27serhiy.storchakasetmessageid: <1445155467.88.0.753761224374.issue25395@psf.upfronthosting.co.za>
2015-10-18 08:04:27serhiy.storchakalinkissue25395 messages
2015-10-18 08:04:27serhiy.storchakacreate