]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
valgrind: wildcard glibc version for dlopen() leak suppression
authorCasey Bodley <cbodley@redhat.com>
Sat, 7 Jun 2025 01:43:33 +0000 (21:43 -0400)
committerCasey Bodley <cbodley@redhat.com>
Sat, 7 Jun 2025 01:50:06 +0000 (21:50 -0400)
the original suppression for "dlopen@@GLIBC_2.2.5" is very similar to
several later suppressions for "dlopen@@GLIBC_2.34". add a wildcard to
the original suppression so the rest can be removed

this also helps suppress a new leak, seen with gcc-13:
{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: reachable
   fun:malloc
   fun:UnknownInlinedFun
   fun:decompose_rpath
   fun:_dl_map_object
   fun:dl_open_worker_begin
   fun:_dl_catch_exception
   fun:dl_open_worker
   fun:_dl_catch_exception
   fun:_dl_open
   fun:dlopen_doit
   fun:_dl_catch_exception
   fun:_dl_catch_error
   fun:_dlerror_run
   fun:dlopen@@GLIBC_2.34
   fun:_sub_I_65535_0.0
   fun:call_init
   fun:call_init
   fun:_dl_init
   obj:/usr/lib64/ld-linux-x86-64.so.2
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
}

Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/valgrind.supp

index 0ed12dac8570236f30ee76cf29114937862efbb0..00eaf47627998892834ab731fa427bb6d1de4952 100644 (file)
         fun:__libc_start_main@@GLIBC_2.34
         fun:(below main)
 }
-{
-        malloc centos 9 leak 1
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:malloc
-        fun:malloc
-        fun:strdup
-        fun:_dl_load_cache_lookup
-        fun:_dl_map_object
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
-{
-        malloc centos 9 leak 2
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:malloc
-        fun:UnknownInlinedFun
-        fun:_dl_new_object
-        fun:_dl_map_object_from_fd
-        fun:_dl_map_object
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
 {
         static_initialization_and_destruction centos 9 leak 2
         Memcheck:Leak
         fun:__libc_start_main@@GLIBC_2.34
         fun:(below main)
 }
-{
-        malloc centos 9 leak 3
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:malloc
-        fun:malloc
-        fun:strdup
-        fun:_dl_load_cache_lookup
-        fun:_dl_map_object
-        fun:openaux
-        fun:_dl_catch_exception
-        fun:_dl_map_object_deps
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
-{
-        malloc centos 9 leak 4
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:malloc
-        fun:UnknownInlinedFun
-        fun:_dl_new_object
-        fun:_dl_map_object_from_fd
-        fun:_dl_map_object
-        fun:openaux
-        fun:_dl_catch_exception
-        fun:_dl_map_object_deps
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
 {
         HashtableHash_node rocksdb centos 9 leak
         Memcheck:Leak
         fun:__libc_start_main@@GLIBC_2.34
         fun:(below main)
 }
-{
-        rockdb malloc centos 9 leak 5
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:malloc
-        fun:UnknownInlinedFun
-        fun:add_dependency
-        fun:_dl_lookup_symbol_x
-        fun:elf_machine_rela
-        fun:elf_dynamic_do_Rela
-        fun:_dl_relocate_object
-        fun:_dl_open_relocate_one_object
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
-{
-        rocksdb malloc centos 9 leak 6
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:malloc
-        fun:UnknownInlinedFun
-        fun:add_to_global_resize
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
-{
-        rocksdb malloc centos 9 leak 7
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:calloc
-        fun:UnknownInlinedFun
-        fun:_dl_check_map_versions
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
-{
-        rocksdb malloc centos 9 leak 8
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:calloc
-        fun:UnknownInlinedFun
-        fun:_dl_new_object
-        fun:_dl_map_object_from_fd
-        fun:_dl_map_object
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
-{
-        rocksdb calloc centos 9 leak
-        Memcheck:Leak
-        match-leak-kinds: reachable
-        fun:calloc
-        fun:UnknownInlinedFun
-        fun:_dl_new_object
-        fun:_dl_map_object_from_fd
-        fun:_dl_map_object
-        fun:openaux
-        fun:_dl_catch_exception
-        fun:_dl_map_object_deps
-        fun:dl_open_worker_begin
-        fun:_dl_catch_exception
-        fun:dl_open_worker
-        fun:_dl_catch_exception
-        fun:_dl_open
-        fun:dlopen_doit
-        fun:_dl_catch_exception
-        fun:_dl_catch_error
-        fun:_dlerror_run
-        fun:dlopen@@GLIBC_2.34
-        fun:_sub_I_65535_0.0
-        fun:call_init
-        fun:call_init
-        fun:_dl_init
-        obj:/usr/lib64/ld-linux-x86-64.so.2
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-        obj:*
-}
 {
        libstdc++ leak on xenial
        Memcheck:Leak
   fun:*alloc
   ...
   fun:_dlerror_run
-  fun:dlopen@@GLIBC_2.2.5
+  fun:dlopen@@GLIBC_2*
 }
 
 {