
#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