[gclist] Re: [m-dev.] memory leaks & Boehm collector

Nick Barnes Nick.Barnes at pobox.com
Tue Oct 5 19:00:51 AEST 1999


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
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list