[issue22984] test_json.test_endless_recursion(): "Fatal Python error: Cannot recover from stack overflow." on x86 XP-4 3.x buildbot
STINNER Victor
report at bugs.python.org
Fri Dec 5 10:41:16 CET 2014
STINNER Victor added the comment:
> I think this patch will break the purpose of the test. We should fix the issue instead of hide it from tests.
The test ensures that json calls Py_EnterRecursiveCall() which relies on sys.getrecursionlimit(), see the commit below.
There is no generic fix for C stack overflow. The tes failed on Windows XP which is no more supported, I don't think that it's interesting to spend time on it.
changeset: 70021:9557e4eeb291
branch: 3.1
parent: 69997:b7abf0590e1c
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Wed May 11 01:02:56 2011 +0300
files: Lib/json/tests/test_recursion.py Misc/NEWS Modules/_json.c
description:
#12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22984>
_______________________________________
More information about the Python-bugs-list
mailing list