Re: [BUG] rather significant memory leaks in 3.1

From: Thomas Arp (t_arp@stofanet.dk)
Date: 01/14/03


From: "DJMC" <dacain@netvisao.pt>
> I have recently started to use gdb and was wondering what program can i
> use for finding the memory leaks.?
> Thanks in advance for any info on the subjet, as the mud i work on is
> on for a month at the time and in the end things start to lag. I supect
> a memory leak of somekind but dont know any tools to check it further.

The tool I use is a (self)modified version of zmalloc which can be found at

http://www.lne.com/ericm/zmalloc

The zmalloc tools were created by Eric Murray.

If you decide to use it, be sure to give him credit. Also, be sure to run
your mud with a smaller database/world. Adding the zmalloc calls slows
things
down considerably, to a point where I - on the development mud, TBA - can't
even
log on, due to time out because memory allocation/freeing takes so much
longer.

The tools, while simple, gives you info about unfreed, multiply freed and
multiply
allocated memory, and also informs about buffer overruns/underruns in
malloc'ed memory.

My own alterations are primarily adding support for strdup()
and making sure the checker algorithm is used only when I want it.

Welcor

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT