]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 408663 - Patch: Suppression file for musl libc
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 8 Dec 2020 14:07:29 +0000 (15:07 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 8 Dec 2020 14:07:29 +0000 (15:07 +0100)
NEWS
configure.ac
musl.supp [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index db750e081a0d8ce3affa141bd45b1bf6c5e9d65e..cf403ab24c569c0dabc4a92c0cc940b0d7049fd9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -76,6 +76,7 @@ n-i-bz  helgrind: If hg_cli__realloc fails, return NULL.
 428909  helgrind: need to intercept duplicate libc definitions for Fedora 33
 429864  s390x: C++ atomic test_and_set yields false-positive memcheck
         diagnostics
+408663  Suppression file for musl libc 
 
 Release 3.16.1 (?? June 2020)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
index b8378729187cf60ad8d6126ee32bc1702088038d..2b949ed84ede52d9d658d0dbde4d77193d7721d2 100755 (executable)
@@ -1147,7 +1147,7 @@ case "${GLIBC_VERSION}" in
      musl)
        AC_MSG_RESULT(Musl)
        AC_DEFINE([MUSL_LIBC], 1, [Define to 1 if you're using Musl libc])
-       # no DEFAULT_SUPP file yet for musl libc.
+       DEFAULT_SUPP="musl.supp ${DEFAULT_SUPP}"
        ;;
      2.0|2.1|*)
        AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
diff --git a/musl.supp b/musl.supp
new file mode 100644 (file)
index 0000000..864172a
--- /dev/null
+++ b/musl.supp
@@ -0,0 +1,46 @@
+# Suppressions for musl libc
+# See: https://www.openwall.com/lists/musl/2017/06/15/4
+
+{
+   musl-dynlink-false-positive1
+   Memcheck:Leak
+   fun:calloc
+   fun:load_direct_deps
+   fun:load_deps
+   fun:load_deps
+   fun:__dls3
+   fun:__dls2b
+   fun:__dls2
+}
+
+{
+   musl-dynlink-false-positive2
+   Memcheck:Leak
+   fun:calloc
+   fun:load_direct_deps
+   fun:load_deps
+   fun:load_deps
+   fun:__dls3
+   fun:__dls2
+}
+
+{
+   musl-dynlink-false-positive3
+   Memcheck:Leak
+   fun:calloc
+   fun:load_library
+   fun:load_preload
+   fun:__dls3
+   fun:__dls2b
+   fun:__dls2
+}
+
+{
+   musl-dynlink-false-positive4
+   Memcheck:Leak
+   fun:calloc
+   fun:load_library
+   fun:load_preload
+   fun:__dls3
+   fun:__dls2
+}