Serhiy Storchaka added the comment:

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)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25395>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to