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

"GHC" <[email protected]> Sun, 10 Mar 2019 14:31:16 -0000
Newsgroups gmane.comp.lang.haskell.glasgow.bugs
Message-ID <[email protected]>
--===============2121900837284511958==
Content-Type: multipart/related;
 boundary="===============5175174279825304428=="

--===============5175174279825304428==
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

#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 <[email protected]>
 Reviewed-by: Alexey Kuleshevich <[email protected]>
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14533#comment:12>