valgrind: add libnl suppression
authorThomas Haller <thaller@redhat.com>
Mon, 11 May 2015 20:54:48 +0000 (22:54 +0200)
committerThomas Haller <thaller@redhat.com>
Wed, 13 May 2015 12:24:06 +0000 (14:24 +0200)
Add a comment about the upstream bug that fixes
the suppressed memleak in libnl.

Also, add a different backtrace for the same bug.
It currently doesn't hit easily, because we don't
call nl_msg_parse() often. In the future we will
though.

valgrind.suppressions

index ffc4b6e..5f89c98 100644 (file)
    ...
 }
 {
-   libnl_02
+   # fixed by https://github.com/thom311/libnl/commit/d65c32a7205e679c7fc13f0e4565b13e698ba906
+   libnl_rtnl_link_set_type_01
    Memcheck:Leak
    match-leak-kinds: definite
    fun:calloc
    ...
 }
 {
-   libnl_03
+   # fixed by https://github.com/thom311/libnl/commit/d65c32a7205e679c7fc13f0e4565b13e698ba906
+   # Same issue as libnl_rtnl_link_set_type_01, but different backtrace by calling nl_msg_parse().
+   libnl_rtnl_link_set_type_02
+   Memcheck:Leak
+   match-leak-kinds: definite
+   fun:calloc
+   fun:vlan_alloc
+   fun:rtnl_link_set_type
+   fun:link_msg_parser
+   fun:nl_cache_parse
+   fun:nl_msg_parse
+   ...
+}
+{
+   libnl_rtnl_link_alloc_cache
    Memcheck:Leak
    match-leak-kinds: definite
    fun:calloc