gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-developers] [patch] compiling with dmalloc memory checker


From: Glenn McGrath
Subject: [GNUnet-developers] [patch] compiling with dmalloc memory checker
Date: Sun, 16 Jun 2002 00:29:00 +1000

This patch allows GNUnet to be configured --with-dmalloc which links
GNUnet to libdmalloc if it exists, if --with-dmalloc=yes is specified and
the library isnt found the configure fails, if --with-dmalloc isnt
specified or set to =no then it isnt used.

Dmalloc is a memory debugger see http://dmalloc.com/ it does all sorts of
memory checks.

To use it compile GNUnet with dmalloc support then specify an environmet
variable, i normally do "export
DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile" then run the
binary and look the generated "logfile" in the current directory.

A quick test running it on ./gnunet-insert (generated from CVS) find 26KB
of unfree'ed memory from 158 pointers. I find it quite comforting to have
dmalloc looking over my shoulder, it picks up/helps track down so many
things i overlook.

If you want to give it a try and have trouble let me know, i use it a fair
bit and maintain its debian package.


Glenn

Attachment: dmalloc.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]