MemoryInspector Build this code as library and then just run your app with LD_PRELOAD. After that just make file /tmp/flag for activate inspector