mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
284540 Memcheck shouldn't count suppressions matching still-reachable allocations 307465 --show-possibly-lost=no should bring down the error count / exit code Using the options --show-leak-kinds=kind1,kind2,.. and --errors-for-leak-kinds=kind1,kind2,.., each leak kind (definite, indirect, possible, reachable) can now be individually reported and/or counted as an error. In a leak suppression entry, an optional line 'match-leak-kinds:' controls which leak kinds are suppressed by this entry. This is a.o. useful to avoid definite leaks being "catched" by a suppression entry aimed at suppressing possibly lost blocks. Default behaviour is the same as 3.8.1 Old args (--show-reachable and --show-possibly-lost) are still accepted. Addition of a new test (memcheck/tests/lks) testing the new args and the new suppression line. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13170
62 lines
2.3 KiB
Plaintext
62 lines
2.3 KiB
Plaintext
|
|
All heap blocks were freed -- no leaks are possible
|
|
|
|
LEAK SUMMARY:
|
|
definitely lost: 48 bytes in 3 blocks
|
|
indirectly lost: 32 bytes in 2 blocks
|
|
possibly lost: 0 bytes in 0 blocks
|
|
still reachable: 64 bytes in 4 blocks
|
|
suppressed: 96 bytes in 6 blocks
|
|
Rerun with --leak-check=full to see details of leaked memory
|
|
|
|
leaked: 80 bytes in 5 blocks
|
|
dubious: 0 bytes in 0 blocks
|
|
reachable: 64 bytes in 4 blocks
|
|
suppressed: 96 bytes in 6 blocks
|
|
|
|
HEAP SUMMARY:
|
|
in use at exit: 240 bytes in 15 blocks
|
|
total heap usage: 15 allocs, 0 frees, 240 bytes allocated
|
|
|
|
16 bytes in 1 blocks are indirectly lost in loss record ... of ...
|
|
at 0x........: malloc (vg_replace_malloc.c:...)
|
|
by 0x........: mk (leak-cases.c:52)
|
|
by 0x........: f (leak-cases.c:76)
|
|
by 0x........: main (leak-cases.c:107)
|
|
|
|
16 bytes in 1 blocks are indirectly lost in loss record ... of ...
|
|
at 0x........: malloc (vg_replace_malloc.c:...)
|
|
by 0x........: mk (leak-cases.c:52)
|
|
by 0x........: f (leak-cases.c:91)
|
|
by 0x........: main (leak-cases.c:107)
|
|
|
|
16 bytes in 1 blocks are definitely lost in loss record ... of ...
|
|
at 0x........: malloc (vg_replace_malloc.c:...)
|
|
by 0x........: mk (leak-cases.c:52)
|
|
by 0x........: f (leak-cases.c:74)
|
|
by 0x........: main (leak-cases.c:107)
|
|
|
|
32 (16 direct, 16 indirect) bytes in 1 blocks are definitely lost in loss record ... of ...
|
|
at 0x........: malloc (vg_replace_malloc.c:...)
|
|
by 0x........: mk (leak-cases.c:52)
|
|
by 0x........: f (leak-cases.c:76)
|
|
by 0x........: main (leak-cases.c:107)
|
|
|
|
32 (16 direct, 16 indirect) bytes in 1 blocks are definitely lost in loss record ... of ...
|
|
at 0x........: malloc (vg_replace_malloc.c:...)
|
|
by 0x........: mk (leak-cases.c:52)
|
|
by 0x........: f (leak-cases.c:91)
|
|
by 0x........: main (leak-cases.c:107)
|
|
|
|
LEAK SUMMARY:
|
|
definitely lost: 48 bytes in 3 blocks
|
|
indirectly lost: 32 bytes in 2 blocks
|
|
possibly lost: 0 bytes in 0 blocks
|
|
still reachable: 64 bytes in 4 blocks
|
|
suppressed: 96 bytes in 6 blocks
|
|
Reachable blocks (those to which a pointer was found) are not shown.
|
|
To see them, rerun with: --leak-check=full --show-leak-kinds=all
|
|
|
|
For counts of detected and suppressed errors, rerun with: -v
|
|
ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
|