64 bit windows executable built with ghc-7.9.20140405+LLVM segfaults
|Reported by:||awson||Owned by:|
|Operating System:||Windows||Architecture:||x86_64 (amd64)|
|Type of failure:||Runtime crash||Test Case:|
|Related Tickets:||Differential Rev(s):|
-- 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.
Change History (43)
comment:32 Changed 8 months ago by bgamari
- Milestone changed from 8.0.1 to 8.2.1
- Status changed from infoneeded to upstream
comment:33 follow-up: ↓ 34 Changed 8 months ago by awson
comment:34 in reply to: ↑ 33 Changed 6 months ago by thomie
- Milestone changed from 8.2.1 to 8.0.1
- Resolution set to worksforme
- Status changed from upstream to closed
comment:35 Changed 2 months ago by GordonBGood
comment:36 follow-up: ↓ 37 Changed 2 months ago by Fanael
- Resolution worksforme deleted
- Status changed from closed to new