diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-06-19 10:30:08 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-06-19 10:35:31 +0300 |
commit | da01eb98c131020cb3de5c208d2e76a06ae67049 (patch) | |
tree | 20d055d32bf63dd0f22acdb0cd54ceaec6572a2a /scripts | |
parent | ac8a0175beb365a0b421ae7f1cf6852fba9827c6 (diff) | |
download | librpm-tizen-da01eb98c131020cb3de5c208d2e76a06ae67049.tar.gz librpm-tizen-da01eb98c131020cb3de5c208d2e76a06ae67049.tar.bz2 librpm-tizen-da01eb98c131020cb3de5c208d2e76a06ae67049.zip |
Add valgrind suppression file
- 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)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 4 | ||||
-rw-r--r-- | scripts/rpm.supp | 34 |
2 files changed, 36 insertions, 2 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index a080991f0..10b1de748 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -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 index 000000000..d9ab1fe3c --- /dev/null +++ b/scripts/rpm.supp @@ -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 +} |