From: Quentin Young Date: Mon, 5 Mar 2018 18:20:22 +0000 (-0500) Subject: tools: add LeakSanitizer suppressions list X-Git-Tag: frr-5.0-dev~183^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a9d0a90fe8835c8a0c085d2e605bfd673fd6a2f3;p=matthieu%2Ffrr.git 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 --- diff --git a/tools/lsan-suppressions.txt b/tools/lsan-suppressions.txt new file mode 100644 index 0000000000..dd5577bd24 --- /dev/null +++ b/tools/lsan-suppressions.txt @@ -0,0 +1 @@ +leak:clippy