#2992: GHCi Memory Leak in Windows Vista
--------------------+-------------------------------------------------------
Reporter: Andir | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Windows | Architecture: x86
--------------------+-------------------------------------------------------
If use ghci.exe and separating compiling via ghc.exe, memory leak in ghci
occurred. After exhausting available memory Vista has no any respond.
Steps for reproduce:
1) Run GHCi: process list has 2 processes: ghci.exe (a), ghc.exe (b),
2) 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) you can see processor activity and
increased value of "Memory (Private Working Set)" for process (b).
4) As run result "Memory (Private Working Set)" increased about
100Mb.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2992>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs