From 8373b19430d3d9e7ffc87e4266d4c6c2f1199785 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 5 Mar 2018 13:20:22 -0500 Subject: [PATCH] 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 --- tools/lsan-suppressions.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/lsan-suppressions.txt 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 -- 2.39.5