I use valgrind to detect memory leaks. valgrind output is generated by the command
valgrind -v --leak-check=full ../spython test.py 2>/tmp/log
in fact, my program is a very simplified python interpreter (ToT homework), since you can infer from the name spython test.py
what bothers me is the exit below
==24269== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 3 from 3)
--24269--
--24269-- used_suppression: 3 dl-hack3-cond-1
what does it mean? I look up, and there is no dl-hack3-cond-1valgrind suppression file there default.supp. I want to eliminate this annoying suppressed error (which means the PASS test valgrind, not "suppression suppression").
here is the contents of / tmp / log:
==24269== Memcheck, a memory error detector
==24269== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==24269== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==24269== Command: ../spython test.py
==24269==
==24269== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-24269-by-tim-on-???
==24269== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-24269-by-tim-on-???
==24269== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-24269-by-tim-on-???
==24269==
==24269== TO CONTROL THIS PROCESS USING vgdb (which you probably
==24269== don't want to do, unless you know exactly what you're doing,
==24269== or are doing some strange experiment):
==24269== /usr/lib/valgrind/../../bin/vgdb
==24269==
==24269== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==24269== /path/to/gdb ../spython
==24269== and then give GDB the following command
==24269== target remote | /usr/lib/valgrind/../../bin/vgdb
==24269==
==24269==
==24269==
==24269== HEAP SUMMARY:
==24269== in use at exit: 0 bytes in 0 blocks
==24269== total heap usage: 39,501 allocs, 39,501 frees, 973,647 bytes allocated
==24269==
==24269== All heap blocks were freed
==24269==
==24269== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 3 from 3)
==24269==
==24269== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 3 from 3)
source
share