libqmsg is a library that implements parts of the messaging functionality found in commonly used realtime microkernel operating systems using Linux shared memory and POSIX messaging queues. The implementation does not aim to reach the speed of original implementations, but rather to simplify the software porting process and act as a basis for more sophisticated solutions.
Leaky can help you track down memory leaks and some kinds of memory corruption. It also has entry pointers for logging addref / release calls. The key thing that leaky does is this: it logs all calls to malloc / free / realloc / new / delete into a log file. The logging data includes information about size and address, as well as the call stack of the operation. The leaky program then can translate the call stack data from addresses into symbols and then dump the data out.