This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Wheerd, benjamin.peterson, brett.cannon, eryksun, jkloth, ncoghlan, paul.moore, pitrou, scoder, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, vstinner, yselivanov, zach.ware
Date 2017-08-07.23:37:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502149028.08.0.677235763605.issue31113@psf.upfronthosting.co.za>
In-reply-to
Content
Here are a couple of workarounds for the crash in Windows.

The default stack reservation size is a field in the PE/COFF header, which you can edit using editbin.exe, e.g.:

    editbin /stack:[size_in_bytes] "path\to\python.exe"

The distributed python.exe has a 20000000 byte stack reservation. I changed it to 3 MiB and was able to run generated.py. You can also pre-compile it on a thread with a larger stack, e.g.:

    >>> import threading
    >>> from compileall import compile_file
    >>> threading.stack_size(2**20 * 3)
    0
    >>> t = threading.Thread(target=compile_file, args=('generated.py',))
    >>> t.start()
    >>> Compiling 'generated.py'...
History
Date User Action Args
2017-08-07 23:37:08eryksunsetrecipients: + eryksun, brett.cannon, terry.reedy, paul.moore, ncoghlan, pitrou, scoder, vstinner, tim.golden, benjamin.peterson, jkloth, zach.ware, serhiy.storchaka, yselivanov, steve.dower, Wheerd
2017-08-07 23:37:08eryksunsetmessageid: <1502149028.08.0.677235763605.issue31113@psf.upfronthosting.co.za>
2017-08-07 23:37:08eryksunlinkissue31113 messages
2017-08-07 23:37:08eryksuncreate