[issue36370] "Fatal Python error: Cannot recover from stack overflow" from SymPy tests
Stefan Krah
report at bugs.python.org
Wed Mar 20 10:32:26 EDT 2019
Stefan Krah <stefan at bytereef.org> added the comment:
This occurs when handling a recursion error uses more than 50 extra nested function calls:
if (tstate->overflowed) {
if (tstate->recursion_depth > recursion_limit + 50) {
/* Overflowing while handling an overflow. Give up. */
Py_FatalError("Cannot recover from stack overflow.");
}
return 0;
}
You can set the recursion limit with sys.setrecursionlimit(), but it is the extra stack depth that matters here.
----------
nosy: +skrah
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36370>
_______________________________________
More information about the Python-bugs-list
mailing list