]> granicus.if.org Git - python/commitdiff
Boosted the stack reservation for python.exe and python_w.exe from the
authorTim Peters <tim.peters@gmail.com>
Thu, 12 Aug 2004 18:37:10 +0000 (18:37 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 12 Aug 2004 18:37:10 +0000 (18:37 +0000)
default 1MB to 2 million bytes.  The test suite passes with -uall again
(test_compiler no longer drives WinXP into an insane state).

Misc/NEWS
PCbuild/python.vcproj
PCbuild/pythonw.vcproj

index 632d44628918329c7b6d62e3e8b6071e0da101a4..c4a1cf17738af377ea6c860ec071f2aef702bdb7 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -75,6 +75,16 @@ Tests
 Windows
 -------
 
+- Boosted the stack reservation for python.exe and pythonw.exe from
+  the default 1MB to 2MB.  Stack frames under VC 7.1 for 2.4 are enough
+  bigger than under VC 6.0 for 2.3.4 that deeply recursive progams
+  within the default sys.getrecursionlimit() default value of 1000 were
+  able to suffer undetected C stack overflows.  The standard test program
+  test_compiler was one such program.  If a Python process on Windows
+  "just vanishes" without a trace, and without an error message of any
+  kind, but with an exit code of 128, undetected stack overflow may be
+  the problem.
+
 Mac
 ---
 
index 0c3c4b6b42a7b64159f4509433e5be017c6bd5a7..722bf4344cc79fe3393b2120774219673ef8399d 100644 (file)
@@ -47,6 +47,7 @@
                                GenerateDebugInformation="TRUE"
                                ProgramDatabaseFile=".\./python.pdb"
                                SubSystem="1"
+                               StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
                                TargetMachine="1"/>
                        <Tool
                                GenerateDebugInformation="TRUE"
                                ProgramDatabaseFile=".\./python_d.pdb"
                                SubSystem="1"
+                               StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
                                TargetMachine="1"/>
                        <Tool
                                GenerateDebugInformation="TRUE"
                                ProgramDatabaseFile=".\./python.pdb"
                                SubSystem="1"
+                               StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
                                TargetMachine="0"/>
                        <Tool
index 0eab69062df53145f1ef94cdbaf90b04f4dbf289..1ac107a15a34f6867339fe6650acf1b8b952784e 100644 (file)
@@ -42,6 +42,7 @@
                                GenerateDebugInformation="TRUE"
                                ProgramDatabaseFile=".\./pythonw_d.pdb"
                                SubSystem="2"
+                               StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
                                TargetMachine="1"/>
                        <Tool
                                GenerateDebugInformation="TRUE"
                                ProgramDatabaseFile=".\./pythonw.pdb"
                                SubSystem="2"
+                               StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
                                TargetMachine="1"/>
                        <Tool
                                GenerateDebugInformation="TRUE"
                                ProgramDatabaseFile=".\./pythonw.pdb"
                                SubSystem="2"
+                               StackReserveSize="2000000"
                                BaseAddress="0x1d000000"
                                TargetMachine="0"/>
                        <Tool