[Haskell-cafe] Difficult memory leak in array processing
igloo at earth.li
Sat Nov 25 09:45:25 EST 2006
On Thu, Nov 23, 2006 at 12:11:43PM +0200, Niko Korhonen wrote:
> I have the following code whose purpose is to add dither (noise) to a given
> array. The code looks very straightforward but apparently it has a memory
> leak somewhere. Here I try to run the algorithm for an array of 10,000,000
> integers. Ten million unboxed strict integers should equal to 40MB which
> should pose no problems to any modern system. However, the program fails
> with a stack overflow error. I'm using GHC 6.6 on Windows with 1 GB of RAM.
I'm also unable to reproduce this. Can you tell us exactly what
commandline you are using to compile and run the program please?
More information about the Haskell-Cafe