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