develooper Front page | perl.perl5.porters | Postings from April 2019

Re: Storable and Leaky hooks which die

Thread Previous | Thread Next
From:
Tomasz Konojacki
Date:
April 17, 2019 02:00
Subject:
Re: Storable and Leaky hooks which die
Message ID:
20190417040030.D94A.5C4F47F8@xenu.pl
On Wed, 17 Apr 2019 11:18:26 +1000
Tony Cook <tony@develop-help.com> wrote:

> For some reason I'm not seeing any leaks from an ASAN build.
> 
>  ./Configure -des -Dusedevel -Accflags=-fsanitize=address -Aldflags=-fsanitize=address -DDEBUGGING -Doptimize=-O0\ -g -Dcc=/opt/gcc-8.2.0/bin/gcc
> 
> valgrind picked up a leak of the ptr table from your example which is
> fixed in 1d7b2a7e3a7a0e05c254d065923488b768eb3ce0.
> 
> Tony

To enable leak detection in ASAN you need -fsanitize=leak flag.
-fsanitize=address is just for memory errors.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About