]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
musl: updates to suppressions and drd pthread detection script
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 17 Feb 2024 17:24:36 +0000 (18:24 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 17 Feb 2024 17:24:36 +0000 (18:24 +0100)
Mostly for DRD.

drd/tests/std_thread2.supp
drd/tests/supported_libpthread
musl.supp

index 69b210c469a01b7763c85904ade37f8522b45077..4f30560cb924fb425a54a18c921ce68418659747 100644 (file)
    obj:/libexec/ld-elf*.so.1
 }
 
+{
+   drd-musl1
+   drd:ConflictingAccess
+   fun:pthread_exit
+}
+
+{
+   drd-musl2
+   drd:ConflictingAccess
+   fun:__wake
+   fun:__tl_unlock
+   fun:__tl_unlock
+   fun:pthread_create
+}
+
+{
+   drd-musl3
+   drd:ConflictingAccess
+   fun:a_store
+   fun:__tl_unlock
+   fun:pthread_create
+}
+
+{
+   drd-musl4
+   drd:ConflictingAccess
+   fun:__wait
+}
+
+{
+   drd-musl5
+   drd:ConflictingAccess
+   fun:a_cas
+   fun:__tl_lock
+}
+
+{
+   drd-musl6
+   drd:ConflictingAccess
+   fun:__tl_lock
+}
+
index d42ea1a398239a367a1b742554de6758511c071e..80bf8deb41f072167d45bbf250c3eb91e99a8609 100755 (executable)
@@ -16,6 +16,10 @@ if [ "$(uname)" = "Linux" ]; then
     # NPTL
     exit 0
   fi
+  if [ -x /lib/ld-musl-*.so.1 ] ; then
+    # musl
+    exit 0
+  fi
   # configuration string is empty or does start with "linuxthreads".
   exit 1
 fi
index 864172a2426c1cbb47fc7189504b3974736eb6ae..d510acbb76a53c112cb4e3b2e007c7c704f101f3 100644 (file)
--- a/musl.supp
+++ b/musl.supp
@@ -2,7 +2,7 @@
 # See: https://www.openwall.com/lists/musl/2017/06/15/4
 
 {
-   musl-dynlink-false-positive1
+   musl-dynlink1
    Memcheck:Leak
    fun:calloc
    fun:load_direct_deps
@@ -14,7 +14,7 @@
 }
 
 {
-   musl-dynlink-false-positive2
+   musl-dynlink2
    Memcheck:Leak
    fun:calloc
    fun:load_direct_deps
@@ -25,7 +25,7 @@
 }
 
 {
-   musl-dynlink-false-positive3
+   musl-dynlink3
    Memcheck:Leak
    fun:calloc
    fun:load_library
@@ -36,7 +36,7 @@
 }
 
 {
-   musl-dynlink-false-positive4
+   musl-dynlink4
    Memcheck:Leak
    fun:calloc
    fun:load_library
    fun:__dls3
    fun:__dls2
 }
+
+{
+   musl-helgrind-pthread_exit
+   Helgrind:Race
+   ...
+   fun:pthread_exit
+}
+
+{
+   musl-helgrind-pthread_create
+   Helgrind:Race
+   ...
+   fun:pthread_create
+}
+
+{
+   musl-drd-pthread_exit
+   drd:ConflictingAccess
+   ...
+   fun:pthread_exit
+}
+
+{
+   musl-drd-pthread_create
+   drd:ConflictingAccess
+   ...
+   fun:pthread_create
+}
+
+{
+   musl-drd-setlocale
+   drd:ConflictingAccess
+   ...
+   fun:setlocale
+}
+
+{
+   musl-drd-__tl_lock
+   drd:ConflictingAccess
+   fun:__wait
+   fun:__tl_lock
+}
+
+{
+   musl-drd-printf_core
+   drd:ConflictingAccess
+   fun:__fwritex
+   fun:out
+   fun:printf_core
+}
+
+{
+   musl-drd-__ofl_lock
+   drd:ConflictingAccess
+   fun:__ofl_lock
+}
+
+{
+   musl-drd-__funcs_on_exit
+   drd:ConflictingAccess
+   fun:__funcs_on_exit
+}
+
+{
+   musl-drd-fwrite1
+   drd:ConflictingAccess
+   fun:__stdio_write
+   fun:fwrite
+}
+
+{
+   musl-drd-fwrite2
+   drd:ConflictingAccess
+   fun:__fwritex
+   fun:fwrite
+}
+
+{
+   musl-drd-freeaddrinfo
+   drd:ConflictingAccess
+   fun:__lock
+   fun:freeaddrinfo
+}
+
+{
+   musl-drd-exit
+   drd:ConflictingAccess
+   fun:__lock
+   fun:__funcs_on_exit
+   fun:exit
+}