[GHC] #2815: On windows, hGetLine stdin leaks like an inside trader

GHC trac at galois.com
Tue Nov 25 14:09:58 EST 2008


#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


More information about the Glasgow-haskell-bugs mailing list