threadDelay space leak under win32

Sigbjorn Finne sof at galois.com
Mon Nov 8 14:00:20 EST 2004


Fixed now on the STABLE branch, but 6.2.2 and, at least,
all previous 6.x releases suffer from this embarrassing mem
leak. Thanks for reporting the problem.

--sigbjorn

----- Original Message ----- 
From: "Simon Marlow" <simonmar at microsoft.com>
To: "Philippa Cowderoy" <flippa at flippac.org>; 
<glasgow-haskell-bugs at haskell.org>
Cc: <sof at galois.com>
Sent: Monday, November 08, 2004 07:54
Subject: RE: threadDelay space leak under win32


> On 07 November 2004 22:47, Philippa Cowderoy wrote:
>
>> Using the binary distros of GHC 6.2.1 and 6.2.2 under Win2K, this
>> leaks 12K of memory per second on my machine (as do larger programs
>> using threadDelay in the idle event of a wxHaskell app):
>>
>> module Main where
>> import Control.Concurrent
>> main = (threadDelay 1000) >> main
>>
>> I've no idea if it also happens on *nix platforms, or with a
>> win32/cygwin build.
>
> Yes, that looks like a memory leak somewhere in the Async IO subsystem
> on Windows.  The leak goes away using the threaded RTS on the latest CVS
> version of GHC, because there we're using plain sleep() calls to
> implement threadDelay and bypassing AsyncIO.
>
> Sigbjorn: you're the owner of the Windows AsyncIO implementation, care
> to look into this leak?
>
> Cheers,
> Simon 




More information about the Glasgow-haskell-bugs mailing list