<div dir="ltr"><div class="gmail_extra">+kazu, +Simon M</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 15, 2014 at 7:18 PM, Ben Bangert <span dir="ltr"><<a href="mailto:ben@groovie.org" target="_blank">ben@groovie.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":ys" class="" style="overflow:hidden">I have created a very simple TCP based echo client/server here: <a href="https://github.com/bbangert/echo" target="_blank">https://github.com/bbangert/echo</a></div>
</blockquote></div><br>Ben, could you please tell us what sort of machine you are running this on? Is it Mac, Linux, or Windows?</div><div class="gmail_extra"><br></div><div class="gmail_extra">I took your test case and hacked it down to eliminate some possible sources of error (I was suspicious of Handle for a while, also of an old space leak bug in "forever" which I think is fixed now):</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">    <a href="https://github.com/gregorycollins/ghc-echo-leak-bug">https://github.com/gregorycollins/ghc-echo-leak-bug</a></div><div class="gmail_extra"><br></div>
<div class="gmail_extra">The revised echoserver is fine on my machine (stable at 22MB resident) but <b>the echo client leaks</b>. Happens with/without -O2 on GHC 7.8.3 for OSX.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Kazu, I think there's a good chance this is a bug in the multicore IO manager, the test code is doing little more than write + read + threadDelay.<br><br clear="all"><div>G</div>-- <br>Gregory Collins <<a href="mailto:greg@gregorycollins.net" target="_blank">greg@gregorycollins.net</a>>
</div></div>