]> git.puffer.fish Git - mirror/frr.git/commitdiff
tools: Add some more data to ignore for valgrind 8472/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 14 Apr 2021 14:56:34 +0000 (10:56 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 5 May 2021 14:52:51 +0000 (10:52 -0400)
When running valgrind there are some possible memory leaks.
These memory leaks we have absolutely no control over, mark
them as not worthy of being reported.

Finally move the valgrind suppressions file from bgpd/ to tools/
this is because this suppressions file can be used beyond bgpd

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/valgrind.supp [deleted file]
tools/valgrind.supp [new file with mode: 0644]

diff --git a/bgpd/valgrind.supp b/bgpd/valgrind.supp
deleted file mode 100644 (file)
index 31f2477..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-{
-   <zlog_keep_working_at_exit>
-   Memcheck:Leak
-   match-leak-kinds: reachable
-   fun:calloc
-   fun:qcalloc
-   fun:zlog_target_clone
-}
-{
-   <libyang1_1.0.184>
-   Memcheck:Leak
-   match-leak-kinds: reachable
-   fun:calloc
-   fun:_dlerror_run
-   fun:dlopen@@GLIBC_2.2.5
-   obj:/usr/lib/x86_64-linux-gnu/libyang.so.1.9.2
-   fun:ly_load_plugins
-}
diff --git a/tools/valgrind.supp b/tools/valgrind.supp
new file mode 100644 (file)
index 0000000..fbfb640
--- /dev/null
@@ -0,0 +1,32 @@
+{
+   <zlog_keep_working_at_exit>
+   Memcheck:Leak
+   match-leak-kinds: reachable
+   fun:calloc
+   fun:qcalloc
+   fun:zlog_target_clone
+}
+{
+   <libyang1_1.0.184>
+   Memcheck:Leak
+   match-leak-kinds: reachable
+   fun:calloc
+   fun:_dlerror_run
+   fun:dlopen@@GLIBC_2.2.5
+   obj:/usr/lib/x86_64-linux-gnu/libyang.so.1.9.2
+   fun:ly_load_plugins
+}
+{
+   <zprivs_init leak in a function we do not control>
+   Memcheck:Leak
+   fun:calloc
+   fun:cap_init
+   fun:zprivs_caps_init
+}
+{
+   <sqlite3 leak in a function we do not control>
+   Memcheck:Leak
+   fun:malloc
+   ...
+   fun:sqlite3_step
+}