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

Neil Mitchell ndmitchell at gmail.com
Fri Aug 11 09:22:27 EDT 2006


Hi

> I'm not doubting that it's genuine -- but can anyone make a reproducible
> test case?
The test case I put in the bug report makes it 100% reproducable on
both my machines. I guess that means its a machine specific bug.

Thanks

Neil

>
> Simon
>
> | -----Original Message-----
> | From: glasgow-haskell-bugs-bounces at haskell.org
> [mailto:glasgow-haskell-bugs-
> | bounces at haskell.org] On Behalf Of Lennart Augustsson
> | Sent: 04 August 2006 13:47
> | To: Bulat Ziganshin
> | Cc: GHC; glasgow-haskell-bugs at haskell.org
> | Subject: Re: [GHC] #840: GHC on "loosing" its handles takes 100% CPU
> |
> | It happens all the time to me that GHC doesn't die properly on
> windows.
> | Every so often I have to kill a few straggling ghc processes.  They
> | all spin consuming 100% CPU when this happens.
> |
> |       -- Lennart
> |
> | On Aug 2, 2006, at 10:09 , Bulat Ziganshin wrote:
> |
> | > Hello GHC,
> | >
> | > Wednesday, August 2, 2006, 4:33:09 PM, you wrote:
> | >
> | >> #840: GHC on "loosing" its handles takes 100% CPU
> | >
> | >>  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.
> | >
> | > well, i have similar problem: there are only 256 megs on my machine
> | > and sometimes when ghc compilation uses more than 200 megs and
> starts
> | > trashing memory, i tries to stop it by hitting Ctrl-C. in this
> | > situation it's rather typical that i got back my console (and rerun
> | > ghc) but old GHC process don't killed and continue to compile
> program.
> | > i can investigate it further but don't know what to do. at least it
> | > seems that memory trashing is required to uncover this problem. i
> also
> | > should note that i run "ghc --make" from the .cmd file so there is a
> | > whole stack of processes runned. may be i just kill higher-level ghc
> | > (or even cmd) and lower-level ghc still continue to do it's job? i'm
> | > not sure..
> | >
> | > --
> | > Best regards,
> | >  Bulat                            mailto:Bulat.Ziganshin at gmail.com
> | >
> | > _______________________________________________
> | > Glasgow-haskell-bugs mailing list
> | > Glasgow-haskell-bugs at haskell.org
> | > http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
> |
> | _______________________________________________
> | Glasgow-haskell-bugs mailing list
> | Glasgow-haskell-bugs at haskell.org
> | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
> _______________________________________________
> 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