[GHC] #10986: GHC should delete all temporary files it creates in /tmp
GHC
ghc-devs at haskell.org
Thu Jan 21 21:44:18 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):
I found one cause of leaked `ghc*_*` directories from the test suite:
`WAY=ghci` tests where executing `main` raises an exception. `WAY=ghci`
tests are run with ghci input like
{{{
:set prog cgrun016
:set args
:! echo ===== program output begins here
:! echo 1>&2 ===== program output begins here
System.IO.hSetBuffering System.IO.stdout System.IO.LineBuffering
GHC.TopHandler.runIOFastExit Main.main Prelude.>> Prelude.return ()
}}}
If its argument (`Main.main`) raises an exception, `runIOFastExit` calls
`shutdownHaskellAndExit()` with `fastExit=1`, which just calls `exit()`.
So, GHC has no chance to clean up.
This seems like more of a testsuite issue than a GHC issue.
I'll let the testsuite finish to see if there are any more cases where it
leaves behind a `ghc*_*` directory.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10986#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list