ahvalgrind
build program with -g and optionally -O0
run myprog as
valgrind --leak-check=yes myprog arg1 arg2
(arg1 arg2 are arguments passed to myprog)
Some programs have spurious errors which can be suppressed. Try
valgrind --tool=memcheck --suppressions=../valgrind-python.supp myprog
where ../valgrind-python.supp is an error suppress file. See
http://svn.python.org/projects/python/trunk/Misc/valgrind-python.supp
~/valgrind/valgrind-python.supp
Note: try
wg (zbv): /u/acorn/valgrind/valgrind-python.supp
acorn@shell2.rawbw.com:public_html/valgrind/valgrind-python.supp
wget http://www.rawbw.com/~acorn/valgrind/valgrind-python.supp
OPTIONS
--log-file=/tmp/vout log to this file