next
index
prev
more valgrind
valgrind does not require special compilation, you simply execute like so:
valgrind --num-caller=15 progname
it will run the program progname, and intercept calls to malloc/free/new/delete
and monitors all memory uses,
valgrind is good only for x86s running some Non-ancient linux, this shouldn't
be much of a problem.
valgrind will report several types of errors:
* Illegal read / Illegal write errors.
* Use of uninitialized values.
* Illegal frees.
* Inappropriate deallocation function.
* Passing system call parameters with inadequate read/write permissions.
valgrind will when possible tell you where in your code relevant memory
blocks were allocated/freed.
valgrind is most probably not installed on the linux-box you are working
on, however installation is trivial and
fairly quick: download, unpack and then run one after another:
./configure
make
make install
valgrind manual available in SUB_DIR/docs/index.html
next
index
prev