]> git.puffer.fish Git - mirror/frr.git/commit
tools: add LeakSanitizer suppressions list 1848/head
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 5 Mar 2018 18:20:22 +0000 (13:20 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 7 Mar 2018 23:28:15 +0000 (18:28 -0500)
commit8373b19430d3d9e7ffc87e4266d4c6c2f1199785
tree76b9a21cc40ecfdcf5a5f0b8a20a262d2e391228
parent5a2bd1583f5688ebfb3e7927401d673ac2725aab
tools: add LeakSanitizer suppressions list

Building FRR with AddressSanitizer is kind of annoying since
libpython3.5 leaks memory, clippy links libpython3.5 and clippy runs as
part of the build process. LeakSanitizer has a way to suppress leaks at
runtime by setting the LSAN_OPTIONS environment variable to contain a
file path to a suppression list:

LSAN_OPTIONS=suppressions=path/to/suppr.txt

This commit provides the file. Setting this environment variable to

LSAN_OPTIONS=suppressions=../tools/lsan-suppressions.txt

before building should allow a clean build with ASAN enabled. The
relative path is there because LeakSanitizer looks at paths relative to
the binary it is sanitizing; clippy is in lib/ so the path is set
relative to lib/.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
tools/lsan-suppressions.txt [new file with mode: 0644]