[GHC] #8834: 64-bit windows cabal.exe segfaults in GC

GHC ghc-devs at haskell.org
Mon Mar 17 23:32:34 UTC 2014


#8834: 64-bit windows cabal.exe segfaults in GC
----------------------------------+----------------------------------
        Reporter:  awson          |            Owner:  jstolarek
            Type:  bug            |           Status:  patch
        Priority:  highest        |        Milestone:  7.8.1
       Component:  Compiler       |          Version:  7.8.1-rc2
      Resolution:                 |         Keywords:
Operating System:  Windows        |     Architecture:  x86_64 (amd64)
 Type of failure:  Runtime crash  |       Difficulty:  Unknown
       Test Case:                 |       Blocked By:
        Blocking:                 |  Related Tickets:
----------------------------------+----------------------------------

Comment (by igloo):

 http://msdn.microsoft.com/en-us/library/6t169e9c.aspx says
 {{{
 The registers RAX, RCX, RDX, R8, R9, R10, R11 are considered volatile and
 must be considered destroyed on function calls (unless otherwise safety-
 provable by analysis such as whole program optimization).

 The registers RBX, RBP, RDI, RSI, RSP, R12, R13, R14, and R15 are
 considered nonvolatile and must be saved and restored by a function that
 uses them.
 }}}
 so the saving info looks right to me.

 It wouldn't be too surprising if saving and restoring registers more
 worked around a register corruption bug.

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


More information about the ghc-tickets mailing list