
+kazu, +Simon M
On Tue, Jul 15, 2014 at 7:18 PM, Ben Bangert
I have created a very simple TCP based echo client/server here: https://github.com/bbangert/echo
Ben, could you please tell us what sort of machine you are running this on?
Is it Mac, Linux, or Windows?
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):
https://github.com/gregorycollins/ghc-echo-leak-bug
The revised echoserver is fine on my machine (stable at 22MB resident) but *the
echo client leaks*. Happens with/without -O2 on GHC 7.8.3 for OSX.
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.
G
--
Gregory Collins