Add valgrind suppression file
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 19 Jun 2012 07:30:08 +0000 (10:30 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 19 Jun 2012 07:35:31 +0000 (10:35 +0300)
- valgrind is not happy about us now processing /proc/self/auxv on Linux,
  this can be used to suppress the false positives when running
  rpm under valgrind. At least until a better solution is found or
  valgrind is taught to treat /proc/self/auxv specially (see
  https://bugs.kde.org/show_bug.cgi?id=253519)

scripts/Makefile.am
scripts/rpm.supp [new file with mode: 0644]

index a080991..10b1de7 100644 (file)
@@ -12,7 +12,7 @@ EXTRA_DIST = \
        check-buildroot check-rpaths check-rpaths-worker \
        find-debuginfo.sh find-lang.sh \
        perldeps.pl perl.prov perl.req pythondeps.sh osgideps.pl \
-       rpmdb_loadcvt rpm.daily rpm.log rpm2cpio.sh \
+       rpmdb_loadcvt rpm.daily rpm.log rpm.supp rpm2cpio.sh \
        tcl.req tgpg vpkg-provides.sh \
        find-requires.php find-provides.php \
        find-php-provides find-php-requires \
@@ -37,6 +37,6 @@ rpmconfig_SCRIPTS = \
        rpmdb_loadcvt rpm2cpio.sh tcl.req tgpg 
 
 rpmconfig_DATA = \
-       rpm.daily rpm.log \
+       rpm.daily rpm.log rpm.supp \
        macros.perl macros.php macros.python
 
diff --git a/scripts/rpm.supp b/scripts/rpm.supp
new file mode 100644 (file)
index 0000000..d9ab1fe
--- /dev/null
@@ -0,0 +1,34 @@
+# This is a valgrind suppression file for rpm.
+# Rpm now processes /proc/self/auxv on Linux, but valgrind does not
+# like that (see https://bugs.kde.org/show_bug.cgi?id=253519). To
+# avoid the related false positives from valgrind, use this with
+# 'valgrind --suppressions=rpm.supp [...]' when using it on rpm.
+
+{
+   defaultMachine_strdup
+   Memcheck:Addr1
+   fun:__GI_strlen
+   fun:strdup
+   fun:defaultMachine
+}
+
+{
+   defaultMachine_memcpy1
+   Memcheck:Addr1
+   fun:__GI_memcpy
+   fun:defaultMachine
+}
+
+{
+   defaultMachine_memcpy2
+   Memcheck:Addr2
+   fun:__GI_memcpy
+   fun:defaultMachine
+}
+
+{
+   defaultMachine_memcpy4
+   Memcheck:Addr4
+   fun:__GI_memcpy
+   fun:defaultMachine
+}