memory problem with libumem
By ejannett on janv. 24, 2013
Debuggers like dbx are quite powerful to diagnose memory problems (try help rtc inside dbx).
The "problems" with debuggers is that they are not always available on the host you are working on.
Plus when you have to diagnose a problem in a shared library , using a debugger may become a little bit heavy.
A nice alternative is the libumem on Solaris. You can get debugging information
about memory usage just by using a LD_PRELOAD statement.
here are pictures describing basic usage. For more information go to the
man page libumem(3LIB). The first example demonstrate a leak and the second
one a wrong access