Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add supression file for Valgrind.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 25 Sep 2013 12:43:11 +0000 (14:43 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 25 Sep 2013 12:50:37 +0000 (14:50 +0200)
tools/CMakeLists.txt
tools/simgrid.supp [new file with mode: 0644]

index 147c734..ae1ccd2 100644 (file)
@@ -19,6 +19,7 @@ set(bin_files
 
 set(txt_files
   ${txt_files}
 
 set(txt_files
   ${txt_files}
+  ${CMAKE_CURRENT_SOURCE_DIR}/simgrid.supp
   ${CMAKE_CURRENT_SOURCE_DIR}/simgrid2vite.sed
   PARENT_SCOPE
   )
   ${CMAKE_CURRENT_SOURCE_DIR}/simgrid2vite.sed
   PARENT_SCOPE
   )
diff --git a/tools/simgrid.supp b/tools/simgrid.supp
new file mode 100644 (file)
index 0000000..d91f900
--- /dev/null
@@ -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
+}