[GHC] #840: GHC on "loosing" its handles takes 100% CPU

GHC trac at galois.com
Wed Aug 2 08:33:09 EDT 2006


#840: GHC on "loosing" its handles takes 100% CPU
-------------------------+--------------------------------------------------
    Reporter:  guest     |        Owner:         
        Type:  bug       |       Status:  new    
    Priority:  normal    |    Milestone:         
   Component:  Compiler  |      Version:  6.4.2  
    Severity:  normal    |     Keywords:         
          Os:  Windows   |   Difficulty:  Unknown
Architecture:  x86       |  
-------------------------+--------------------------------------------------
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)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/840>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list