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

GHC ghc-devs at haskell.org
Mon Nov 27 18:27:56 UTC 2017


#14533: Make GHC more robust against PC crashes by using atomic writes
-------------------------------------+-------------------------------------
        Reporter:  nh2               |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Build System      |              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:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by svenpanne):

 I'm not sure if I understand "atomic writes" here correctly, but e.g. on
 POSIX systems there is not really much "atomic" regarding I/O. One of the
 few things is renaming a file, but even that is not atomic depending on
 the underlying file system (e.g. NFS and/or SMB IIRC). So I think the best
 a compiler can do is to write its file under a fresh name next to its
 destination, and rename it when it completed writing it.

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


More information about the ghc-tickets mailing list