Martin Panter added the comment:

The following simplified code produces the crash:

from collections import OrderedDict
obj = []
for _ in range(33):
    obj = OrderedDict(((None, obj),))
for _ in range(17):
    obj = [obj]
print("Still alive, crash happens at interpreter finalization")

This crashes at the same line as in Serhiy’s backtrace. In 
_PyTrash_thread_destroy_chain(), Py_TYPE(op) is a bad pointer 
(0xdbdbdbdbdbdbdbdb); I have enabled --with-pydebug.

----------
components: +Interpreter Core -Library (Lib)
nosy: +martin.panter
title: SIGSEGV using json.tool -> SIGSEGV using json.tool: highly nested 
OrderedDict

_______________________________________
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