[pacman-dev] [PATCH] Suppress valgrind error in fakechroot

Rikard Falkeborn rikard.falkeborn at gmail.com
Mon Jan 2 12:51:11 UTC 2017


This was spotted on Arch Linux, most likely it was introduced
when fakechroot was updated to 2.19-1.

Valgrind suggests to add the following suppression, which can be
tweaked to fit an already existing one.

  {
     <insert_a_suppression_name_here>
     Memcheck:Leak
     match-leak-kinds: reachable
     fun:calloc
     obj:/usr/lib/libdl-2.24.so
     fun:dlsym
     obj:/usr/lib/libfakeroot/fakechroot/libfakechroot.so
     fun:bindtextdomain
     obj:/usr/lib/libgpg-error.so.0.20.0
     fun:call_init.part.0
     fun:_dl_init
     obj:/usr/lib/ld-2.24.so
     obj:*
     obj:*
     obj:*
  }

Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>
---
 valgrind.supp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/valgrind.supp b/valgrind.supp
index 0691e808..69265dff 100644
--- a/valgrind.supp
+++ b/valgrind.supp
@@ -160,8 +160,10 @@
    fakechroot-call-init
    Memcheck:Leak
    match-leak-kinds: reachable
-   fun:malloc
+   fun:?alloc
+   ...
    obj:/usr/lib/libfakeroot/fakechroot/libfakechroot.so
+   ...
    fun:call_init.part.0
    fun:_dl_init
    obj:/usr/lib/ld-*.so
-- 
2.11.0


More information about the pacman-dev mailing list