valgrind --suppressions=lyskomd.supp --num-callers=40 --leak-check=yes --logfile-fd=21 --show-reachable=yes ./test-l2g ==31636== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==31636== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==31636== Using valgrind-20030725, a program supervision framework for x86-linux. ==31636== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==31636== Estimated CPU clock rate is 605 MHz ==31636== For more details, rerun with: -v ==31636== ==31636== Invalid read of size 4 ==31636== at 0x804BE3F: l2gi_prev (local-to-global.c:1466) ==31636== by 0x80492F2: main (test-l2g.c:257) ==31636== by 0x4028FFB3: __libc_start_main (../sysdeps/generic/libc-start.c:144) ==31636== by 0x8048A80: (within /home/ceder/rcvs/xenofarm/client/lyskom-server/moria/buildtmp/dist/lyskom-server-2.0.7/src/server/testsuite/test-l2g) ==31636== Address 0x417B12F8 is not stack'd, malloc'd or free'd ==31636== ==31636== ERROR SUMMARY: 5 errors from 1 contexts (suppressed: 0 from 0) ==31636== malloc/free: in use at exit: 0 bytes in 0 blocks. ==31636== malloc/free: 25 allocs, 25 frees, 1200 bytes allocated. ==31636== For counts of detected errors, rerun with: -v ==31636== No malloc'd blocks -- no leaks are possible.