]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Simplify FreeeBSD Helgrind suppresssions
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 3 Jul 2022 07:04:33 +0000 (09:04 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 3 Jul 2022 07:04:33 +0000 (09:04 +0200)
Also add a file for debug builds of the runtime link editor rtld.
This is not used by default.

freebsd-helgrind-dbgrtld.supp [new file with mode: 0644]
freebsd-helgrind.supp

diff --git a/freebsd-helgrind-dbgrtld.supp b/freebsd-helgrind-dbgrtld.supp
new file mode 100644 (file)
index 0000000..ed16159
--- /dev/null
@@ -0,0 +1,90 @@
+{
+   HELGRIND-LIB-RTLD2
+   Helgrind:Race
+   fun:allocate_tls
+}
+{
+   HELGRIND-LIB-RTLD3
+   Helgrind:Race
+   fun:symlook_obj
+}
+{
+   HELGRIND-LIB-RTLD4
+   Helgrind:Race
+   fun:objlist_call_fini
+}
+{
+   HELGRIND-LIB-RTLD5
+   Helgrind:Race
+   fun:_rtld_error
+}
+{
+   HELGRIND-LIB-RTLD6
+   Helgrind:Race
+   fun:errmsg_save
+}
+{
+   HELGRIND-LIB-RTLD7
+   Helgrind:Race
+   fun:rtld_vsnprintf
+}
+{
+   HELGRIND-LIB-RTLD8
+   Helgrind:Race
+   fun:snprintf_func
+}
+{
+   HELGRIND-LIB-RTLD9
+   Helgrind:Race
+   fun:strlen
+}
+{
+   HELGRIND-LIB-RTLD10
+   Helgrind:Race
+   fun:symlook_default
+}
+{
+   HELGRIND-LIB-RTLD11
+   Helgrind:Race
+   ...
+   fun:dl_iterate_phdr
+}
+{
+   HELGRIND-LIB-RTLD12
+   Helgrind:Race
+   fun:morecore
+}
+{
+   HELGRIND-LIB-RTLD13
+   Helgrind:Race
+   fun:__crt_malloc
+}
+{
+   HELGRIND-LIB-RTLD14
+   Helgrind:Race
+   fun:globallist_curr
+}
+{
+   HELGRIND-LIB-RTLD15
+   Helgrind:Race
+   fun:tls_get_addr_common
+}
+{
+   HELGRIND-LIB-RTLD16
+   Helgrind:Race
+   fun:memset
+   ...
+   fun:allocate_tls
+}
+{
+   HELGRIND-LIB-RTLD17
+   Helgrind:Race
+   fun:__crt_free
+}
+{
+   HELGRIND-LIB-RTLD18
+   Helgrind:Race
+   ...
+   fun:free_tls
+}
+
index ee6c4249573ef0e5a65061bafb10968058eeeb57..6c51bfbd0137c3bd106776f51565aae0dad6cd5a 100644 (file)
@@ -6,7 +6,7 @@
    obj:*/lib*/libthr.so.3*
 }
 {
-   HELGRIND-LIB-LDRT1
+   HELGRIND-LIB-RTLD1
    Helgrind:Race
    obj:/libexec/ld-elf*.so.1
 }
    obj:*/lib*/libthr.so.3
 }
 {
-   HELGRIND-PTHREAD-EXIT1
-   Helgrind:Race
-   fun:_pthread_exit_mask
-   fun:pthread_exit
-}
-{
-   HELGRIND-PTHREAD-EXIT2
-   Helgrind:Race
-   fun:__sys_thr_exit
-   fun:_pthread_exit_mask
-   fun:pthread_exit
-}
-{
-   HELGRIND-PTHREAD-EXIT4
+   HELGRIND-PTHREAD-JOIN
    Helgrind:Race
    fun:_thr_try_gc
    obj:*/lib*/libthr.so.3
    fun:pthread_join
 }
 {
-   HELGRIND-PTHREAD-EXIT5
-   Helgrind:Race
-   fun:__sys_thr_exit
-   obj:*/lib*/libthr.so.3*
-   fun:_pthread_exit_mask
-   fun:pthread_exit
-}
-{
-   HELGRIND-PTHREAD-EXIT6
-   Helgrind:Race
-   obj:*/lib*/libcxxrt.so.1
-   obj:*/lib*/libthr.so.3
-   obj:*/lib*/libthr.so.3
-   obj:*/lib*/libthr.so.3
-   obj:*/lib*/libgcc_s.so.1
-   fun:_Unwind_ForcedUnwind
-   obj:*/lib*/libthr.so.3
-   obj:*/lib*/libthr.so.3
-   fun:pthread_exit
-}
-{
-   HELGRIND-PTHREAD-EXIT7
+   HELGRIND-PTHREAD-EXIT
    Helgrind:Race
-   obj:*/lib*/libc.so.7
-   fun:_malloc_thread_cleanup
-   obj:*/lib*/libthr.so.3
-   obj:*/lib*/libthr.so.3
+   ...
    fun:pthread_exit
 }
-{
-   HELGRIND-PTHREAD-EXIT8
-   Helgrind:Race
-   fun:__cxa_thread_call_dtors
-   obj:*/lib*/libthr.so.3
-   fun:pthread_exit
-}
-{
-   HELGRIND-PTHREAD-EXIT9
-   Helgrind:Race
-   fun:thr_exit
-   obj:*/lib*/libthr.so.3*
-   fun:_pthread_exit_mask
-}
-{
-   HELGRIND-PTHREAD-EXIT10
-   Helgrind:Race
-   obj:*/lib*/libc.so.7
-   fun:_malloc_thread_cleanup
-   obj:*/lib*/libthr.so.3*
-   fun:_pthread_exit_mask
-   fun:_Tthr_exit
-}
-{
-   HELGRIND-PTHREAD-EXIT11
-   Helgrind:Race
-   fun:__cxa_thread_call_dtors
-   fun:_pthread_exit_mask
-   fun:_Tthr_exit
-}
 {
    HELGRIND-PTHREAD-BARRIER2
    Helgrind:Race
    obj:*/lib*/libthr.so.3
    fun:pthread_create
 }
-# same as previous, but with debug build of libthr
-{
-   HELGRIND-PTHREAD-CREATE3
-   Helgrind:Race
-   fun:memset
-   fun:_thr_alloc
-   fun:pthread_create
-}
-# another for debug build of libthr
-{
-   HELGRIND-PTHREAD-CREATE4
-   Helgrind:Race
-   fun:thr_new
-   fun:pthread_create
-}
 # PJF again a pthread_self() hazard
 {
    HELGRIND-PTHREAD-SELF1
    fun:memset
    obj:*/lib*/libthr.so.3
 }
-{
-   HELGRIND-MUTEX-LOCK2
-   Helgrind:Race
-   fun:memset
-   fun:__crt_calloc
-   fun:__thr_calloc
-   fun:mutex_init
-}
 {
    HELGRIND-LIBOMP
    Helgrind:Race