]> granicus.if.org Git - graphviz/commitdiff
Increase stack size for dot MSBUILD project file (avoid crash on larger graphs)
authorgreg <gregory.shklover@gmail.com>
Fri, 7 Oct 2022 00:34:47 +0000 (17:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 15 Oct 2022 20:50:14 +0000 (13:50 -0700)
Comment from Matthew Fernandez: It is believed this resolves some instances of
stack overflow in `dfs_enter_outedge` experienced with larger graphs on Windows.

Co-authored-by: Matthew Fernandez <matthew.fernandez@gmail.com>
CHANGELOG.md
cmd/dot/dot.vcxproj

index 484da7f3139a3d004ba666b190c1a7e5b59ca84e..204ef18f2e1ab14317e883700b104f3b96b502cb 100644 (file)
@@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
   compiler does not support.
 - The `-ffast-math` compiler flag is no longer enabled by the Autotools build
   system.
+- Reserved stack size on Windows for the `dot.exe` binary has been increased
+  from the default 1MB to ~3.8MB.
 
 ### Fixed
 
index a2b0ca57c460081fdb7ef7709311c8fd80ed0cfa..bbfbe4d2ef626da061102ba1da65d47bd60a3d15 100644 (file)
@@ -68,6 +68,7 @@
       <DataExecutionPrevention />
       <TargetMachine>MachineX86</TargetMachine>
       <AdditionalDependencies>cgraph.lib;gvc.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <StackReserveSize>4000000</StackReserveSize>
     </Link>
     <PostBuildEvent>
       <Command>$(OutDir)dot -c
@@ -98,6 +99,7 @@ copy /B /Y $(OutDir)dot.exe $(OutDir)twopi.exe</Command>
       <DataExecutionPrevention />
       <TargetMachine>MachineX86</TargetMachine>
       <AdditionalDependencies>cgraph.lib;gvc.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <StackReserveSize>4000000</StackReserveSize>
     </Link>
     <PostBuildEvent>
       <Command>$(OutDir)dot -c