[issue41912] Long generator chain causes segmentation fault

Tim Peters report at bugs.python.org
Fri Oct 2 23:31:29 EDT 2020


Tim Peters <tim at python.org> added the comment:

Right, generators played no essential role here. Just one way of piling up a tall tower of C stack frames.

Search the web for "stackless Python" for the history of attempts to divorce the CPython implementation from the platform C stack.

There are ways to increase the main thread's stack size on Windows too using MSVC, but unless someone is extremely knowledgeable and willing to write some assembler to help out, they need to change it via a Windows linker option when the .exe is built, or via the EDITBIN developer tool (to modify the .exe file).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41912>
_______________________________________


More information about the Python-bugs-list mailing list