
#14669: 32-bit binaries sometimes throw a stack overflow on shutdown. -----------------------------------+---------------------------------- Reporter: sergv | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Runtime System | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -----------------------------------+---------------------------------- Comment (by Phyx-): alright, well that's annoying.. at `-O1` or higher the optimizers optimize away the calls to `___chkstk_ms`. Which means the stack is not probed so it doesn't grow. This explains why the resulting stack access is nonsense. The optimizers need to be taught to leave this call alone. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14669#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler