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

GHC ghc-devs at haskell.org
Fri Aug 11 08:14:53 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-):

 Ah great, that's really useful, this seems to indicate the issue is in
 `initLinker_PEi386` during `addDLLHandle`.

 I just need one final piece which is where, since the segfault is in the
 rts and in C code this should be fairly easy. Could you run

 {{{
 gdb --ex run --args inplace/bin/ghc-stage2.exe --interactive
 }}}

 with the debud build of ghc.

 once it crashes copy that trace and put that here, along with the output
 of running the `bt`, `info locals` and `info args` command.

 Finally run `gcore` to create a gdb core dump file and attach that.

 Should be able to figure what's wrong with those pieces.

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


More information about the ghc-tickets mailing list