[GHC] #10986: GHC should delete all temporary files it creates in /tmp

GHC ghc-devs at haskell.org
Thu Jan 21 22:20:38 UTC 2016


#10986: GHC should delete all temporary files it creates in /tmp
-------------------------------------+-------------------------------------
        Reporter:  erikd             |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Okay! There were two non-`WAY=ghci` tests that also left behind a
 temporary directory: `ghc-e005` and `T3890`. They are both `ghc
 -e`-related, but don't involve this `GHC.TopHandler.runIOFastExit` stuff,
 so they are real bugs. As hinted at by `ghc-e005`, `runghc` has the same
 behavior.
 {{{
 rwbarton at morphism:/tmp$ rm -rf ghc*
 rwbarton at morphism:/tmp$ cat err.hs
 main = error "oops"
 rwbarton at morphism:/tmp$ runghc err.hs
 err.hs: oops
 rwbarton at morphism:/tmp$ echo ghc*
 ghc31610_0
 }}}

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


More information about the ghc-tickets mailing list