[GHC] #891: hsc2hs tries to remove an open file
Sigbjorn Finne
sof at galois.com
Thu Sep 7 08:40:06 EDT 2006
This is a long standing, irksome Win32 timing issue, and is not
GC related (AFAICR, it was reproducible in straight C code).
A better workaround, which was experimented with in STABLE
at some point, is to simply delay the clean up of the files until
the end of hsc2hs's run
--sigbjorn
GHC wrote:
> #891: hsc2hs tries to remove an open file
> -------------------------+--------------------------------------------------
> Reporter: eivuokko | Owner:
> Type: bug | Status: new
> Priority: normal | Milestone:
> Component: Compiler | Version: 6.4.2
> Severity: normal | Keywords:
> Os: Windows | Difficulty: Unknown
> Architecture: Unknown |
> -------------------------+--------------------------------------------------
> hsc2hs sometimes fails with error "Permission denied" in Windows. This is
> because it tries to remove a file it has open handle to. The error
> usually repeats per-machine and file, but what file and machine it shows
> up with, is random.
>
> As a workaround, calls to removeFile can be removed, or exceptions
> catched.
>
> From a mail by Brian Smith:
> http://www.haskell.org/pipermail/cvs-ghc/2006-September/031186.html
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Glasgow-haskell-bugs mailing list
> Glasgow-haskell-bugs at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
>
More information about the Glasgow-haskell-bugs
mailing list