#2815: On windows, hGetLine stdin leaks like an inside trader
--------------------+-------------------------------------------------------
Reporter:  sclv     |          Owner:                  
    Type:  bug      |         Status:  new             
Priority:  normal   |      Component:  Runtime System  
 Version:  6.10.1   |       Severity:  normal          
Keywords:           |       Testcase:                  
      Os:  Windows  |   Architecture:  Unknown/Multiple
--------------------+-------------------------------------------------------
 1) Compile the following code, in GHC 6.10.1 or 6.8.3 on Windows XP.

 2) Don't type anything, just bring up the task manager and wait.

 3) Watch as the memory usage climbs, slowly, and then with increasing
 vigor.

 4) If you start typing things, the memory usage will cease climbing.

 {{{
 main = do
  forever $ do
          x <- hGetLine stdin
          putStrLn x
 }}}

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