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

GHC ghc-devs at haskell.org
Sun Aug 20 17:43:30 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-):

 `Rva2Offset` isn't needed because the code in `initLinker` isn't reading
 in an image file from disk, but rather the loaded image. So the Windows
 loader has already resolved any RVAs to final addresses. This is why the
 code is simpler.

 I am however confused why this fails for some and not others, I would
 expect the same behavior. Though the original report is for older kernel
 versions.

 Anyway nice catch! It looks sensible to me, If you want credit for the fix
 please attach a `git am` patch and I'll commit. Thanks!

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


More information about the ghc-tickets mailing list