Try valgrind.