malloc() debugger written by Bruce Perens for Linux and Unix. This will stop your program on the exact instruction that overruns or under-runs a malloc() buffer.
ElectricFence memory buffer-overruns buffer-underruns Bruce-Perens