[GHC] #8974: 64 bit windows executable built with ghc-7.9.20140405+LLVM segfaults

GHC ghc-devs at haskell.org
Tue Apr 8 15:59:09 UTC 2014


#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
       Keywords:                   |  Operating System:  Windows
   Architecture:  x86_64 (amd64)   |   Type of failure:  Runtime crash
     Difficulty:  Unknown          |         Test Case:
     Blocked By:                   |          Blocking:
Related Tickets:                   |
-----------------------------------+----------------------------------
 {{{
 -- test.hs
 import System.Mem (performMajorGC)

 main = performMajorGC >> putStrLn "Done"
 }}}

 built with `ghc -pgmlo opt -pgmlc llc -fllvm --make test.hs` segfaults
 both for LLVM 3.4 and 3.5svn (taken from
 http://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64).

 32-bit ghc-7.9.20140404+llvm produces good executable.

 Adding `ArchX86_64` `OSMinGW32` case to `moduleLayout` in
 `compiler/llvmGen/LlvmCodeGen/Ppr.hs` improves things slightly (some code
 segfaulting without it starts to work) but still does not cure the code
 above.

 Also I've found the Cmm produced for LLVM CG differs from that produced
 for NCG.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8974>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list