[issue22984] test_json.test_endless_recursion(): "Fatal Python error: Cannot recover from stack overflow." on x86 XP-4 3.x buildbot

Serhiy Storchaka report at bugs.python.org
Tue Dec 2 22:58:07 CET 2014


Serhiy Storchaka added the comment:

JSON encoder uses recursion calls guards but they don't save from an overflow of C stack.

How to reproduce:

import json
sys.setrecursionlimit(1000000000)
json.dumps(5j, check_circular=False, default=lambda o: [o])

----------
components: +Extension Modules

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


More information about the Python-bugs-list mailing list