Re: [Valgrind-users] No used_suppression in verbose memcheck output

2021-06-29 Thread Philippe Waroquiers
If you use xml output, the used suppressions are only output when
you give the option --show-error-list=yes.

With xml, increasing the verbosity will not show the used suppressions.
Likewise, when xml output is selected, no ERROR SUMMARY is output
(and probably some other textual output is similarly not produced in xml).

The idea is that xml output is used by front end applications that will
use the relevant options (such as --show-error-list=yes) to select
what to show.

Of course, other choices of when to output what would be possible.
The current state is like it is partially based on history.

For more details of what is output for errors, summary and used suppressions,
you can look at the function VG_(show_all_errors) in file m_errormgr.c

Philippe



On Tue, 2021-06-29 at 16:20 +, Mallove, EthanX A wrote:
> Hello,
>  
> I’ve intentionally created a memory leak in my application by adding a 
> malloc() without a corresponding free(), but it seems to be suppressed by 
> this block of my .supp file:
>  
> {
> libc-2
> Memcheck:Leak
> ...
> obj:*/libc-2.17.so
> }
>  
> When I remove the above from my suppression file, I see the  leak in 
> the output XML.
>  
> But when the libc suppression is active, why isn’t there a “used_suppression” 
> line in the -v output?
>  
> Thank you,
> Ethan
> ___
> Valgrind-users mailing list
> Valgrind-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/valgrind-users



___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


[Valgrind-users] No used_suppression in verbose memcheck output

2021-06-29 Thread Mallove, EthanX A
Hello,

I've intentionally created a memory leak in my application by adding a malloc() 
without a corresponding free(), but it seems to be suppressed by this block of 
my .supp file:

{
libc-2
Memcheck:Leak
...
obj:*/libc-2.17.so
}

When I remove the above from my suppression file, I see the  leak in the 
output XML.

But when the libc suppression is active, why isn't there a "used_suppression" 
line in the -v output?

Thank you,
Ethan
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users