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

GHC ghc-devs at haskell.org
Mon Mar 4 22:11:06 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 nh2):

 This was reverted due to a (apparently nondeterministic) build failure on
 Windows in later builds even though my Winodws validate succeeded.

 The build that failed for bgamari is
 https://gitlab.haskell.org/ghc/ghc/-/jobs/37771

 The only thing I can imagine could result in this is when in
 `withAtomicRename targetFile f`, the action `f` doesn't actually write the
 file. But why would the assembler ''sometimes'' not do that?

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


More information about the ghc-tickets mailing list