[GHC] #14081: 8.2.1 runghc from Windows x32 segfaults an all programs

GHC ghc-devs at haskell.org
Tue Aug 8 12:22:27 UTC 2017


#14081: 8.2.1 runghc from Windows x32 segfaults an all programs
----------------------------------+------------------------------
        Reporter:  sergv          |                Owner:  (none)
            Type:  bug            |               Status:  new
        Priority:  highest        |            Milestone:  8.2.2
       Component:  Compiler       |              Version:  8.2.1
      Resolution:                 |             Keywords:
Operating System:  Windows        |         Architecture:  x86
 Type of failure:  Runtime crash  |            Test Case:
      Blocked By:                 |             Blocking:
 Related Tickets:                 |  Differential Rev(s):
       Wiki Page:                 |
----------------------------------+------------------------------

Comment (by Phyx-):

 >
 > For some reason crash dumps are not collected, even though I followed
 the instructions you linked. I can try building a debug version of GHC and
 give it a go. Is this the right instructions to obtain debug ghc
 https://ghc.haskell.org/trac/ghc/wiki/Debugging/Compiler?

 If you can that would be really handy! as I can't see to reproduce it.

 https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows are the
 packages you'll need installed, then just copy `mk/build.mk.in` to
 `mk/build.mk` and uncomment the `devel2` line.

 Once building finishes, just do

 {{{
 cd ghc
 make re2 GhcDebugged=YES
 }}}

 and it'll relink ghc using the debug runtime.

 you can then run ghci as

 {{{
 inplace/bin/ghc-stage2.exe --interactive +RTS -Dl -RTS 2> linker.log
 }}}

 to dump a linker log. You can also try attaching it to gdb and see if it
 happened to have segfaulted in rts code.

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


More information about the ghc-tickets mailing list