Question on Valgrind Flag

Posted by Gatz on Sun 21 Aug 2005 04:10 AM — 3 posts, 15,639 views.

#0
So I have been trying to get the hang of Valgrind for awhile and been bugged by the fact that when I do shutdown my MUD the spam of "reachable" information totally fills up the screen and removes all my "lost" data information. So I turned off the reachable flag and now I can see the lost stuff easier however my question is this: is it truly helpful to see what is still reachable? I've seen it recommended to put it on there. So, I figure it must be good to use but I can't figure out why exactly you'd need what is still good. It seems almost like the opposite of what you want to know.
USA #1
It's considered somewhat good form to cleanly remote all your memory. It increases program modularity. And in general it's good to clean thing up, in case somebody comes along and e.g. adds something to your program; if the previous program didn't clean itself up it could be introducing memory leaks.

So yes, I would recommend keeping the reachable stuff visible, and work on completely freeing all memory before quitting.
USA #2
To which the following will help immensely:

http://forums.smaugfuss.org/index.php?a=topic&t=125

[EDIT - 11 March 2008] - The Smaug FUSS site is now http://www.smaugmuds.org/