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 <>
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 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)
    >>> t = threading.Thread(target=compile_file, args=('',))
    >>> t.start()
    >>> Compiling ''...
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: <>
2017-08-07 23:37:08eryksunlinkissue31113 messages
2017-08-07 23:37:08eryksuncreate