STINNER Victor <vstin...@redhat.com> added the comment:

The mashal also caused similar issues with stack overflow in the past:

commit f6c69e6cc9aac35564a2a2a7ecc43fa8db6da975
Author: Steve Dower <steve.do...@microsoft.com>
Date:   Sat Nov 1 15:15:16 2014 -0700

    #22734 marshal needs a lower stack depth for debug builds on Windows

commit 24e33acf8c422f6b8f84387242ff7874012f7291
Author: Victor Stinner <victor.stin...@gmail.com>
Date:   Sun Jul 7 02:49:07 2013 +0200

    Issue #17206: On Windows, increase the stack size from 2 MB to 4.2 MB to fix
    a stack overflow in the marshal module (fix a crash in test_marshal).
    Patch written by Jeremy Kloth.


History of PyOS_CheckStack:

commit 5299935be5acefae819bcc08a888a9466747d7cb
Author: Kristján Valur Jónsson <krist...@ccpgames.com>
Date:   Mon Feb 18 17:40:47 2008 +0000

    Perform correct handling of stack overflow for windows: Catch the correct 
exception code and reset the overflow condition when handled.

commit dc61901dd2b1bcb5467ebc36ef35a51106d9b103
Author: Amaury Forgeot d'Arc <amaur...@gmail.com>
Date:   Sat Nov 22 20:01:18 2008 +0000

    #3996: On Windows, PyOS_CheckStack is supposed to protect the interpreter 
from
    stack overflow. But doing this, it always crashes when the stack is nearly 
full.
    
    Reviewed by Martin von Loewis. Will backport to 2.6.

commit 92e4dd865709f4a4be2b11453ef4de954b8d7b14
Author: Tim Peters <tim.pet...@gmail.com>
Date:   Sat Oct 5 01:47:34 2002 +0000

    s/_alloca/alloca/g; Windows doesn't need the former, at least not unless
    __STDC__ is defined (or something like that ...).

commit 399739f79f1d6cef6bc8a8ec63f9a81255464f15
Author: Fred Drake <fdr...@acm.org>
Date:   Thu Aug 31 05:52:44 2000 +0000

    PyOS_CheckStack():  Better ANSI'fy this while we're at it.

commit 2f15b25da2060ab723e0bb82a8f4f713d547b2b8
Author: Fredrik Lundh <fred...@pythonware.com>
Date:   Sun Aug 27 19:15:31 2000 +0000

    implements PyOS_CheckStack for Windows and MSVC.  this fixes a
    couple of potential stack overflows, including bug #110615.
    
    closes patch #101238

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36973>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to