#2992: GHCi Memory Leak in Windows Vista
-----------------------+----------------------------------------------------
    Reporter:  Andir   |        Owner:         
        Type:  bug     |       Status:  new    
    Priority:  high    |    Milestone:  6.10.2 
   Component:  GHCi    |      Version:  6.10.1 
    Severity:  normal  |   Resolution:         
    Keywords:          |   Difficulty:  Unknown
    Testcase:          |           Os:  Windows
Architecture:  x86     |  
-----------------------+----------------------------------------------------
Changes (by igloo):

  * priority:  normal => high
  * difficulty:  => Unknown
  * milestone:  => 6.10.2

Old description:

> 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.

New description:

 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:
  * Run GHCi: process list has 2 processes: ghci.exe (a), ghc.exe (b),
  * 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!"
 }}}
  * In process list (taskmgr.exe) you can see processor activity and
 increased value of "Memory (Private Working Set)" for process (b).
  * As run result "Memory (Private Working Set)" increased about 100Mb.

Comment:

 Thanks for the report

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2992#comment:3>
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

Reply via email to