
#13112: Windows 64-bit GHC HEAD segfaults on the code with a lot of TH stuff. ---------------------------------+-------------------------------------- Reporter: awson | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by quyse): Replying to [comment:9 awson]:
FYI, I've built (slightly patched) GHC HEAD (170118) with `USE_LARGE_ADDRESS_SPACE` enabled.
Now it automatically allocates main heap at 2GB mark (no need to give any extra options, since Windows already can't find 1TB or contiguous address space starting below 2GB mark) and things work '''perfectly'''.
Apparently, also there are no problems with `USE_LARGE_ADDRESS_SPACE` on W10 1607. Woohoo! Hi, I'm seeing these segfaults on Windows too with GHC 8.0.2 building my own code using TH. Is there a GHC patch I can apply to fix this? I tried using `-fexternal-interpreter`, it works on development machine, but frequently hangs indefinitely on CI machine.
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13112#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler