Armin Groesslinger wrote:
> I think I have found a memory leak in GHC/FFI. [...]
I think it's problem with stable pointers. You can start the following
program several times and get several funny results, ranging from a
sudden but silent death at different values of count with return
value 1 to
Hello,
I think I have found a memory leak in GHC/FFI. I tested this with GHC
4.04 patchlevel 0 and 1. By the way, I'm using GHC on Linux 2.2.12
with gcc 2.7.2.3 on a Pentium Pro.
Here's my example program:
import Addr
foreign export ccall dynamic
mkFn :: (Int -> IO Int) -> IO Addr
f