|
From: Florian K. <br...@ac...> - 2011-09-11 14:30:49
|
On 09/11/2011 07:15 AM, Bart Van Assche wrote: > On Sat, Sep 10, 2011 at 11:47 PM, Florian Krohm <br...@ac...> wrote: >> ERROR SUMMARY: 4 errors from 1 contexts (suppressed: 193 from 8) >> >> but only one error is actually shown. I found that a bit confusing >> because I expected 4 errors in the output. Is this by design? > > That's on purpose and should have been documented in the manual. The > above output means that a certain error occurred four times. Valgrind > only reports the first occurrence of each error though. > But shouldn't those errors that are not shown be counted as suppressed? Currently, they are not. Case in point is a valgrind report like this: ERROR SUMMARY: 9 errors from 3 contexts (suppressed: 0 from 0) with 3 errors actually shown. (I'm not making up this example for sake of argument.) If "suppressed" refers to only those errors not shown because of a suppression pattern then we ought to either change the total number of errors to the number actually shown or show the duplicates. ERROR SUMMARY: 9 errors from 3 contexts (suppressed: 0 from 0, duplicate: 6 from 3) But this might not be worth the effort. I really think the error summary should correctly some up what is shown in the report. Because that is what most people would expect. Florian |