GHCi Memory Leak in Windows Vista

Hi all! Environment: Windows Vista + SP1, GHC 6.10.1. Description: If use ghci.exe and run separate ghc.exe compiler process, memory leak in ghci occurred. After exhausting available memory Vista has no responding. Steps for reproduce: 1) After run GHCi, process list has 2 processes: ghci.exe (a), ghc.exe (b), 2) Then I run separated compilation process 20 times: Command Line: for /L %i in (1,1,20) do ghc -fforce-recomp -O --make "problem.hs" -o "problem.exe" Sample Haskell Program listing (problem.hs): main :: IO () main = do print $ [x | x <- [1..]] putStrLn "Hello, world!" 3) In process list (taskmgr.exe) I can see some processor activity and increasing value of "Memory (Private Working Set)" for process (b). 4) After run "Memory (Private Working Set)" increased about 100Mb. Best regards.

Same here: Vista, GHC 6.8.3 Tested a bit changed scenario: instead of 20 separate compilations it is worthwhile to run single, longer build, e.g. ghc --make of same package. Seems like GHCi does not run garbage collection when machine is busy. And then it accumulates memory. This renders Vista totally unresponsive and even can lead to automatic reboot (happened once to me). :) -- Gracjan

On Tue, 2009-01-20 at 10:22 +0000, Gracjan Polak wrote:
Same here:
Vista, GHC 6.8.3
Tested a bit changed scenario: instead of 20 separate compilations it is worthwhile to run single, longer build, e.g. ghc --make of same package.
Seems like GHCi does not run garbage collection when machine is busy. And then it accumulates memory. This renders Vista totally unresponsive and even can lead to automatic reboot (happened once to me).
Did either of you file a ghc ticket about this issue? Does the same happen with 6.10 ? Duncan

2009/1/23 Duncan Coutts
Did either of you file a ghc ticket about this issue?
As result after reproducing by other users I create new ghc bug: http://hackage.haskell.org/trac/ghc/ticket/2992
participants (5)
-
Alexandr N. Zamaraev
-
Andir
-
Duncan Coutts
-
Gracjan Polak
-
spam.andir@gmail.com