
#8974: 64 bit windows executable built with ghc-7.9.20140405+LLVM segfaults ------------------------------------+---------------------------------- Reporter: awson | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.2 Component: Compiler (LLVM) | Version: 7.9 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ------------------------------------+---------------------------------- Comment (by awson): To make Cmm shorter I've separated segfaulting code from `main` (it still segfaults when called from `main`) thus: {{{ -- T8947.hs module T8947 where import System.Mem (performMajorGC) t8947 :: IO () t8947 = performMajorGC >> putStrLn "Done" }}} `T8947_LLVMCG_cmm` `T8947.ll` are produced by `ghc -O2 -pgmlo opt -pgmlc llc -fllvm -keep-llvm-files -ddump-cmm -c T8947.hs > T8947_LLVMCG_cmm`. `T8947_NCG_cmm` is produced by `ghc -O2 -ddump-cmm -c T8947.hs > T8947_NCG_cmm`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8974#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler