[GHC] #14533: Make GHC more robust against PC crashes by using atomic writes

GHC ghc-devs at haskell.org
Sun Mar 10 14:31:16 UTC 2019


#14533: Make GHC more robust against PC crashes by using atomic writes
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #14788            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Marge Bot <ben+marge-bot@…>):

 In [changeset:"cfbedf1780002f4f76aa9c6c754818a436888e9f/ghc"
 cfbedf17/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="cfbedf1780002f4f76aa9c6c754818a436888e9f"
 compiler: Write .o files atomically. See #14533

 This issue was reproduced with, and the fix confirmed with,
 the `hatrace` tool for syscall-based fault injection:

     https://github.com/nh2/hatrace

 The concrete test case for GHC is at

 https://github.com/nh2/hatrace/blob/e23d35a2d2c79e8bf49e9e2266b3ff7094267f29/test/HatraceSpec.hs#L185

 A previous, nondeterministic reproducer for the issue was provided by
 Alexey Kuleshevich in

     https://github.com/lehins/exec-kill-loop

 Signed-off-by: Niklas Hambüchen <niklas at fpcomplete.com>
 Reviewed-by: Alexey Kuleshevich <alexey at fpcomplete.com>
 }}}

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


More information about the ghc-tickets mailing list