tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: valgrind



Am Tue, Mar 22, 2022 at 09:01:19PM +0000 schrieb RVP:
> On Tue, 22 Mar 2022, Joerg Sonnenberger wrote:
> 
> > Am Mon, Mar 21, 2022 at 11:09:41PM +0000 schrieb RVP:
> > > Sanitizers are OK, but, they don't seem to work in some cases:
> > 
> > Neither case is a memory leak. They are both reachable memory
> > allocations.
> > 
> 
> Yah: Reachable is what valgrind reports too, but, it still flags
> it as "lost". My point being that I'm glad we have sanitizers, but,
> you still need valgrind for some common use-cases.

Yeah and it regulary results in "bug reports" from the majority of
people that don't understand the difference. That said, I think
draconian mode of gperftools's heap cheaper can provide the check you
want here. Just be aware that it is pure noise most of the time.

Joerg


Home | Main Index | Thread Index | Old Index