[GHC] #7134: ghc-7.6.0.20120810-x86_64-windows.exe -> internal error R_X86_64_PC32

GHC ghc-devs at haskell.org
Sat Jan 25 10:04:34 UTC 2014


#7134: ghc-7.6.0.20120810-x86_64-windows.exe -> internal error R_X86_64_PC32
-------------------------------+----------------------------------
        Reporter:  cetinsert   |            Owner:  thoughtpolice
            Type:  bug         |           Status:  patch
        Priority:  highest     |        Milestone:  7.8.1
       Component:  GHCi        |          Version:  7.6.1-rc1
      Resolution:              |         Keywords:  R_X86_64_PC32
Operating System:  Windows     |     Architecture:  x86_64 (amd64)
 Type of failure:  GHCi crash  |       Difficulty:  Unknown
       Test Case:              |       Blocked By:  3658
        Blocking:              |  Related Tickets:
-------------------------------+----------------------------------

Comment (by awson):

 I've updated the patch for HEAD. Now:

 1. Memory for trampolines is reserved right next to memory for image. We
 reserve this space for all symbols in image. This could look as overkill,
 but this is the way it is done in unixish cases, and also
 {{{VirtualAlloc}}} takes physical memory from system lazily (only when
 relevant page is accessed), and we don't need to save virtual space
 because we have plenty of it. Unlike in unixish cases, though, we avoid
 any reallocations because we can take the number of symbols from PECoff
 header.

 2. Loading of archives is fixed. Looking into the code I can say it never
 worked for static GHCi linker on Win64. Now it works. Don't try to remove
 prelinked HSbase-4.7.0.0.o though :) otherwise ghci segfaults trying to
 set buffering status for base's stdin, stdout and stderr. I suspect, this
 is related to the way {{{initInterpBuffering}}} in {{{GhciMonad.hs}}}
 works.

 3. Disabled {{{.ctor}}} handling comments now contain the number of
 related ticket, which I've created for this.

 4. The status is documented in release notes.

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


More information about the ghc-tickets mailing list