From eaee55c7930797c6758dd07827a9702b1b6bdcb9 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 25 Sep 2013 14:43:11 +0200 Subject: [PATCH 1/1] Add supression file for Valgrind. --- tools/CMakeLists.txt | 1 + tools/simgrid.supp | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tools/simgrid.supp diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 147c734879..ae1ccd244a 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -19,6 +19,7 @@ set(bin_files set(txt_files ${txt_files} + ${CMAKE_CURRENT_SOURCE_DIR}/simgrid.supp ${CMAKE_CURRENT_SOURCE_DIR}/simgrid2vite.sed PARENT_SCOPE ) diff --git a/tools/simgrid.supp b/tools/simgrid.supp new file mode 100644 index 0000000000..d91f90050f --- /dev/null +++ b/tools/simgrid.supp @@ -0,0 +1,26 @@ +# Valgrind suppressions for stuff that we cannot control + +# Memory leak in dash +# dash is actually used when checking the "mkfile" command in tesh +{ + Memory leak in /bin/dash + Memcheck:Leak + ... + obj:/bin/dash +} + +# There's a constant leak of 56 bytes in the depths of libc which +# manifests, for example, when unsing backtrace() +{ + Memory leak in libc/dlopen with -pthread + Memcheck:Leak + fun:malloc + fun:_dl_map_object_deps + fun:dl_open_worker + fun:_dl_catch_error + fun:_dl_open + fun:do_dlopen + fun:_dl_catch_error + fun:dlerror_run + fun:__libc_dlopen_mode +} -- 2.20.1