[GHC] #12501: Windows builds segfault (as in doesn't work at all).

#12501: Windows builds segfault (as in doesn't work at all).
-------------------------------------+-------------------------------------
Reporter: Phyx- | Owner: Phyx-
Type: bug | Status: new
Priority: highest | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Windows
Architecture: | Type of failure: GHC doesn't work
Unknown/Multiple | at all
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Commit a9bc54766ddd1bdb011f1656ad58fb409055d08f is the last known good
commit for the Windows build of GHC.
After this point multiple segfaults were introduced due to changes in the
rts and GC.
One was introduced by the compacts regions patch
cf989ffe490c146be4ed0fd7e0c00d3ff8fe1453 but fixed by
f9a11a241b8056ac2b9c771172a48919fb3d0ed1
Unfortunately because many of the intermediate commits between
cf989ffe490c146be4ed0fd7e0c00d3ff8fe1453 also break the build I can't run
a proper bisect. And because of some very large commits in between it
makes it really hard to cherry-pick individual commits or rebase certain
ones out manually to try.
Effectively something was committed that makes GC go horribly wrong.
{{{
Tamar@Kino MINGW64 ~/ghc2
$ inplace/bin/ghc-stage2.exe --version
The Glorious Glasgow Haskell Compilation System, version 8.1.20160817
Segmentation fault
}}}
In GDB
{{{
Program received signal SIGSEGV, Segmentation fault.
0x0000000002aa35d9 in LOOKS_LIKE_CLOSURE_PTR (p=0x2cd1dd000000000) at
includes/rts/storage/ClosureMacros.h:275
275 (UNTAG_CONST_CLOSURE((const StgClosure
*)(p)))->header.info);
(gdb) bt
#0 0x0000000002aa35d9 in LOOKS_LIKE_CLOSURE_PTR (p=0x2cd1dd000000000) at
includes/rts/storage/ClosureMacros.h:275
#1 0x0000000002aa3e3e in evacuate1 (p=0x31c1a04

#12501: Windows builds segfault (as in doesn't work at all). -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: new Priority: highest | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * cc: simonmar (added) Comment: Adding Simon Marlow since he committed the compact-region patch. Add in cc anyone else who committed a patch you are suspicious about. See my reversion of #11758. Might that help? Oddly, I ''could'' bisect, and found #11758. After that HEAD works on my 64-bit Windows. We must fix this, and soon. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12501#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12501: Windows builds segfault (as in doesn't work at all). -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: new Priority: highest | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Hi Simon, Thanks!, I was trying to find it by looking at commits that touched the `rts`, which that commit hadn't so I never considered it (and the codegen!). I think the mileage with bisect would depend on where you start, since cf989ffe490c146be4ed0fd7e0c00d3ff8fe1453 , d068220f4249cce66ed5b6cc5504f79e7c8c0184 and cac3fb06f4b282eee21159c364c4d08e8fdedce9 all broke the build at one point and were fixed at different points. I didn't try it for this reason, but maybe I should have. I'll try building head again once I get home. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12501#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12501: Windows builds segfault (as in doesn't work at all). -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => closed * resolution: => fixed Comment: Yup, HEAD works again now here too. So it was the codegen changes. Thanks again! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12501#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC