Date: Mon, 8 Aug 2005 23:23:16 -0700 From: Jose M. Gonzalez Subject: New LeakTracer Patch Hi, Erwin. I enclose a patch for LT that mixes multiple stack levels with malloc/free support. It also includes the following mods: - leak-analyze - a new option, "-s", that reports the leaks in descending size order (it's cool to know which leaks must be checked first) - better support for multiple stack levels - reduce gdb's complaint level to 0 (in RHEL WS 4, a 1000 complaint level returns lots of inexistent errors) - some typos on the comments - LeakTracer.cc - some bug fixes - when LT couldn't itself malloc/realloc, it died w/o any further message. Now it produces a normal report - diachronic leak reporting. If you need to produce a leak report w/o exiting the program you're running, call malloc with the size 0xffffffff. It will produce a report in /tmp/leaktracer.tmpdump - when no allocations are requested in the program, LT spits a warning (it sounds really weird to be using LT to debug a program that doesn't use the heap) - some typos on the comments - test.cc - slightly enhanced Hope it helps. Regards. -Chema