
#8870: GHC 7.8.0 RC2 fails when compiling a hello world program on Windows 7 32bits ---------------------------------------+------------------------------ Reporter: facundoq | Owner: Type: bug | Status: infoneeded Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: Compile-time crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------------+------------------------------ Comment (by awson): I don't quite understand [https://ghc.haskell.org/trac/ghc/ticket/8834#comment:77 how could I reproduce it]. Even running GHC under MSYS2 I can't get it segfaulting. If sitting on 64-bit windows shall I use 32-bit MSYS2 to reproduce it? Also [https://ghc.haskell.org/trac/ghc/ticket/8834#comment:82 growing stack by more than 1 page] is a *definite* bug in Windows. And there are many discussions on this here and there. As a temporary workaround could we simply increase reserved *and* committed stack size in an executable's header making GHC invoke linker with right options when producing executables - something like `-optl- Xlinker -optl--stack=0x800000,0x800000`? This would make things more or less like they are under Linux/OSX. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8870#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler