From 28084aaff9b927c753d10516a700d2289bc6b32b Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 10 Mar 2009 21:40:46 +0000 Subject: [PATCH] Tweak the Memcheck manual, fixing bug #157154 in the process. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9341 --- memcheck/docs/mc-manual.xml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/memcheck/docs/mc-manual.xml b/memcheck/docs/mc-manual.xml index be4a761363..5a4fef7061 100644 --- a/memcheck/docs/mc-manual.xml +++ b/memcheck/docs/mc-manual.xml @@ -739,10 +739,14 @@ LEAK SUMMARY: If --leak-check=full is specified, Memcheck will give details for each definitely lost or possibly lost block, -including where it was allocated. It cannot tell you when or how or why the -pointer to a leaked block was lost; you have to work that out for yourself. -In general, you should attempt to ensure your programs do not have any -definitely lost or possibly lost blocks at exit. +including where it was allocated. (Actually, it merges results for all +blocks that have the same category and sufficiently similar stack traces +into a single "loss record". The +--leak-resolution lets you control the +meaning of "sufficiently similar".) It cannot tell you when or how or why +the pointer to a leaked block was lost; you have to work that out for +yourself. In general, you should attempt to ensure your programs do not +have any definitely lost or possibly lost blocks at exit. For example: The first message describes a simple case of a single 8 byte block that has been definitely lost. The second case mentions another 8 byte block that has been definitely lost; the difference is that a further 80 -bytes in other blocks are indirectly lost because of this lost block. +bytes in other blocks are indirectly lost because of this lost block. +The loss records are not presented in any notable order, so the loss record +numbers aren't particularly meaningful. If you specify --show-reachable=yes, reachable and indirectly lost blocks will also be shown, as the following -- 2.47.3