[GHC] #14533: Make GHC more robust against PC crashes by using atomic writes
GHC
ghc-devs at haskell.org
Mon Mar 4 18:51:02 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:"0e2d300a59b1b5c167d2e7d99a448c8663ba6d7d/ghc"
0e2d300a/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="0e2d300a59b1b5c167d2e7d99a448c8663ba6d7d"
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:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list