From e89a4f6cb4bd8d377332a25935258b9bc5f5de74 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 12 Jan 2024 14:19:09 +0100 Subject: [PATCH] Suppress _nc_doalloc memory leak With the next commit, if I run docker/docker_run_tests.sh --shell-after docker/jammy-asan-clang.Dockerfile I get this in test_string.fish and test_git.fish: ================================================================= ==8339==ERROR: LeakSanitizer: detected memory leaks Direct leak of 72 byte(s) in 1 object(s) allocated from: #0 0x55a8a637eb45 in realloc /rustc/llvm/src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:85:3 #1 0x7facb841b6cc in _nc_doalloc (/lib/x86_64-linux-gnu/libtinfo.so.6+0x106cc) (BuildId: e22ba7829a55a0dec2201a0b6dac7ba236118561) SUMMARY: AddressSanitizer: 72 byte(s) leaked in 1 allocation(s). Strangely there is no tparm in the call stack. It does not seem to happen in CI. --- build_tools/lsan_suppressions.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/build_tools/lsan_suppressions.txt b/build_tools/lsan_suppressions.txt index 2ba5ddae6..0e44fe481 100644 --- a/build_tools/lsan_suppressions.txt +++ b/build_tools/lsan_suppressions.txt @@ -4,3 +4,4 @@ leak:AsanThread # ncurses leaks allocations freely as it assumes it will be running throughout. Ignore these. leak:tparm +leak:_nc_doalloc