[issue25395] SIGSEGV using json.tool: highly nested OrderedDict

Martin Panter report at bugs.python.org
Sun Oct 18 03:05:40 EDT 2015


Martin Panter added the comment:

Here is a patch that seems to fix the problem for me. Can someone who knows more about tp_dealloc() methods and the Py_TRASHCAN_SAFE stuff have a look? All I know is that the body of the trashcan stuff can be deferred until an outer nested body is finished, so I though it might be best to defer that PyDict_Type.tp_dealloc() call as well.

Is it worth packaging up my simplified code in a test case, perhaps in an assert_python_ok() child process?

----------
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file40804/odict-trashcan.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25395>
_______________________________________


More information about the Python-bugs-list mailing list