Trying to debug valgrind