LMDBG is a collection of small tools for collecting and analyzing the logs of malloc/realloc/memalign/free function calls. Unlike many others, LMDBG does not provide any way to detect overruns of the boundaries of malloc() memory allocations, as this is not the goal. Like most other malloc debuggers, LMDBG allows detecting memory leaks and double frees. However, unlike others, LMDBG generates full stacktraces and separates the logging process from analysis, thus allowing you to analyze an application on a per-module basis.
| Tags | Software Development Debuggers |
|---|---|
| Licenses | MIT/X |
| Operating Systems | POSIX BSD NetBSD FreeBSD Linux Solaris |
| Implementation | C Awk Unix Shell mk-configure NetBSD make |
| Translations | English |
Recent releases


Release Notes: This release adds a lot of improvements and fixes in manual pages, new capabilities in lmdbg, lmdbg-run, and lmdbg-sym, and minor fixes to lmdbg-stat. lmdbg is now a meta tool which is able to do many more things, not just find memory leaks.


Release Notes: Logging of calloc(3) invocations is disabled on glibc-based systems (Linux, GNU/kFreeBSD, and maybe others) because lmdbg-run fails on them. Minor clean-ups, fixes, and improvements. mk-configure >= 0.20 is required for building.


Release Notes: New tools lmdbg-strip and lmdbg-modules. lmdbg-sort has a new "num" sorting field. Minor fixes and improvements. lmdbg-grep has new variables to check: "op", "op_type", and "bytes"; and a new field to grep: "module". Minor improvements and fixes for lmdbg-stat, lmdbg, lmdbg-run, and internal tools lmdbg-m2s and lmdbg-s2m. Fixes for warning messages produced by gcc. More regression tests.


Release Notes: New tools: lmdbg-stat, lmdbg-grep, and lmdbg-sort for collecting and analyzing statistical information about memory allocations. lmdbg-run has the new options -S and -M for generating shortened stack traces. lmdbg-sym has a new option -p for obtaining the program name from lmdbg-run's output. 'mkcmake test' removes its temporary files.


Release Notes: 'make install' should no longer install test utilities from the tests/ subdirectory. lmdbg-sym: the exit status of gdb(1) is checked. The LMDBG_GDB environment variable sets the path to the gdb(1) program, overriding the build-time default. lmdbg-multi2single and lmdbg-single2multi are reimplemented in C for better efficiency. The build-time AWK variable sets an AWK interpreter for awk scripts.