[gclist] Re: [m-dev.] memory leaks & Boehm collector
Nick Barnes
Nick.Barnes@pobox.com
Tue, 05 Oct 1999 10:00:51 +0100
At 1999-10-04 21:52:06+0000, Fergus Henderson writes:
> In fact the problem turned out to be one of those blindingly simple
> stupid mistakes... in the above-mentioned code to zero out the Mercury
> stacks, I had put the arguments to memset() in the wrong order :-(
> Instead of setting a lot of bytes to zero, I set zero bytes.
> Thus the Mercury stacks weren't being cleared at all, which
> explained the leak.
Run, don't walk, to your Makefile and turn on some compiler warnings.
Don't forget -Werror.
Nick B