[issue25395] SIGSEGV using json.tool: highly nested OrderedDict
Martin Panter
report at bugs.python.org
Sun Oct 18 02:16:34 EDT 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue25395>
_______________________________________
More information about the Python-bugs-list
mailing list