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