[issue11105] Compiling recursive Python ASTs crash the interpreter
Batuhan Taskaya
report at bugs.python.org
Sat Jun 5 14:24:13 EDT 2021
Batuhan Taskaya <isidentical at gmail.com> added the comment:
> The stack size for a window build is currently set to 2MB, which is usually lesser than *nix 8MB. So I think an easy solution is to increase the stack size for windows builds.
> I'm guessing release builds aren't affected because some of the Py_EnterRecursiveCall helper functions are probably inlined and thus use less of the stack.
> Opinions are greatly appreciated.
I don't think that we should make a global change for this case, AFAIK some of the core parts of the interpreter maintain their own recursion checks with different handling of windows limits. E.g;
https://github.com/python/cpython/blob/fa106a685c1f199aca5be5c2d0277a14cc9057bd/Python/marshal.c#L25-L40
We might need to end up with the same motion and do the handling by ourselves. Wdyt @pablogsal @kj?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue11105>
_______________________________________
More information about the Python-bugs-list
mailing list