Allow make test with ASan / --address-sanitizer

Andrew Bartlett abartlet at
Thu May 3 05:01:05 UTC 2018

On Thu, 2018-05-03 at 16:35 +1200, Andrew Bartlett via samba-technical
> I needed to get AddressSanitizer working to fix the LSA use-after-free
> bug and the attached make it all work again.
> Recent versions of GCC require that the library be in LD_PRELOAD before
> anything that is linked with libasan.  I use a horrible ldd hack to
> find the right library path (sorry, not sorry). 
> Once we get a more modern sn-devel I'll enable this by default in
> autobuild. 
> Please review and push!

Douglas has reviewed it and this is in autoubuild.


Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team
Samba Development and Support, Catalyst IT

More information about the samba-technical mailing list