GHC on "loosing" its handles takes 100% CPU
On Windows, GHC 6.4.2, the following program:
import System.Process main = runInteractiveCommand "ghc"
When run terminates immediately, as expected, but leaves an instance of ghc running. The ghc process takes up 100% of the CPU time, and seemingly does nothing.
If "ghci" is used as the argument instead of "ghc", then both ghc and ghci are left running, with ghc on 100% CPU time.
In contrast, if hugs or Yhc or edit (or pretty much any program on my system) is run in exactly the same way, they terminate as soon as the main program is finished.
I have replicated this bug on two separate machines, with the following similarities/differences.
Both Windows XP One logged in as admin, one logged in as a restricted user One AMD 750Mhz, one Pentium 4 HT Both GHC 6.4.2
Simon Peyton-Jones is unable to replicate this using a Windows laptop.
(Additional reports of success/failure on this issue would be appreciated)
Trac metadata
Trac field | Value |
---|---|
Version | 6.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | ndmitchell@gmail.com |
Operating system | |
Architecture |