memtroll uses LD_PRELOAD to load a modified version of malloc' before launch a program. It runs the program different times forcing malloc to fail after a specified number of calls.