From e70438706c689ea00d60bf11a59fb0235267fa41 Mon Sep 17 00:00:00 2001 From: light7734 Date: Wed, 8 Oct 2025 09:58:51 +0330 Subject: [PATCH] ci(amd64/gcc/valgrind): add suppressions for xlib & dlopen nonsense --- tools/ci/amd64/gcc/valgrind.sh | 1 + tools/ci/amd64/gcc/valgrind_suppressions | 825 +++++++++++++++++++++++ 2 files changed, 826 insertions(+) create mode 100644 tools/ci/amd64/gcc/valgrind_suppressions diff --git a/tools/ci/amd64/gcc/valgrind.sh b/tools/ci/amd64/gcc/valgrind.sh index 22cd435..c3a9bd1 100755 --- a/tools/ci/amd64/gcc/valgrind.sh +++ b/tools/ci/amd64/gcc/valgrind.sh @@ -28,5 +28,6 @@ for test in $(find ./build -type f -name '*_tests' -executable); do --show-leak-kinds=all \ --track-origins=yes \ --verbose \ + --suppressions='./tools/ci/amd64/gcc/valgrind_suppressions' \ --error-exitcode=255 ${test} || exit 1 done diff --git a/tools/ci/amd64/gcc/valgrind_suppressions b/tools/ci/amd64/gcc/valgrind_suppressions new file mode 100644 index 0000000..158ad6d --- /dev/null +++ b/tools/ci/amd64/gcc/valgrind_suppressions @@ -0,0 +1,825 @@ +{ + + Memcheck:Param + writev(vector[0]) + fun:writev + fun:UnknownInlinedFun + fun:_xcb_conn_wait.part.0 + fun:UnknownInlinedFun + fun:_xcb_out_send + fun:UnknownInlinedFun + fun:xcb_writev + fun:_XSend + fun:UnknownInlinedFun + fun:_XFlush + fun:XFlush + fun:_ZN2lt7surface6System24create_surface_componentEjNS0_16SurfaceComponent10CreateInfoE + fun:_ZN21Fixture_SurfaceSystemC1Ev + fun:_ZN22Fixture_RendererSystemC1Ev +} +{ + + Memcheck:ReallocZero + fun:realloc + obj:/usr/lib/libnvidia-glcore.so.580.95.05 + obj:/usr/lib/libGLX_nvidia.so.580.95.05 + obj:/usr/lib/libGLX_nvidia.so.580.95.05 + obj:/usr/lib/libGLX_nvidia.so.580.95.05 + fun:_dl_init + fun:_dl_catch_exception + fun:dl_open_worker + fun:_dl_catch_exception + fun:_dl_open + fun:dlopen_doit + fun:_dl_catch_exception +} +{ + + Memcheck:BadSize + fun:posix_memalign + obj:/usr/lib/libnvidia-glcore.so.580.95.05 + obj:/usr/lib/libGLX_nvidia.so.580.95.05 + obj:/usr/lib/libGLX_nvidia.so.580.95.05 + obj:/usr/lib/libGLX_nvidia.so.580.95.05 + fun:_dl_init + fun:_dl_catch_exception + fun:dl_open_worker + fun:_dl_catch_exception + fun:_dl_open + fun:dlopen_doit + fun:_dl_catch_exception +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:dbus_threads_init + fun:UnknownInlinedFun + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_register_shutdown_func + fun:UnknownInlinedFun + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_register_shutdown_func + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:dbus_message_unref + fun:_dbus_pending_call_last_unref + fun:dbus_connection_send_with_reply_and_block + fun:dbus_bus_register + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:malloc + fun:strdup + fun:_dl_map_new_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 +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_dbus_strdup + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_dbus_strdup + fun:UnknownInlinedFun + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_dbus_strdup + fun:UnknownInlinedFun + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_dbus_platform_rmutex_new + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_counter_new + fun:UnknownInlinedFun + fun:_dbus_transport_new_for_socket + fun:_dbus_transport_new_for_domain_socket + fun:UnknownInlinedFun + fun:_dbus_transport_open_unix_socket + fun:_dbus_transport_open + fun:UnknownInlinedFun + fun:_dbus_connection_open_internal + fun:internal_bus_get + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_dbus_string_init_preallocated + fun:dbus_message_new_empty_header + fun:dbus_message_new_signal + fun:_dbus_connection_new_for_transport + fun:UnknownInlinedFun + fun:_dbus_connection_open_internal + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_dbus_string_init_preallocated + fun:dbus_message_new_empty_header + fun:_dbus_message_loader_queue_messages + fun:_dbus_transport_get_dispatch_status + fun:_dbus_transport_queue_messages + fun:do_reading + fun:socket_do_iteration + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_connection_do_iteration_unlocked + fun:UnknownInlinedFun + fun:dbus_pending_call_block + fun:dbus_connection_send_with_reply_and_block + fun:dbus_bus_register +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:_dbus_mem_pool_new + fun:alloc_link + fun:_dbus_list_prepend + fun:_dbus_list_append + fun:dbus_parse_address + fun:_dbus_connection_open_internal + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:malloc + fun:strdup + fun:_dl_load_cache_lookup + fun:_dl_map_new_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 +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:malloc + fun:_dl_new_object + fun:_dl_map_object_from_fd + fun:_dl_map_new_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 +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:_dbus_counter_new + fun:UnknownInlinedFun + fun:_dbus_transport_new_for_socket + fun:_dbus_transport_new_for_domain_socket + fun:UnknownInlinedFun + fun:_dbus_transport_open_unix_socket + fun:_dbus_transport_open + fun:UnknownInlinedFun + fun:_dbus_connection_open_internal + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: indirect + fun:realloc + fun:UnknownInlinedFun + fun:set_length + fun:open_gap + fun:UnknownInlinedFun + fun:_dbus_string_copy_len + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_message_loader_queue_messages + fun:_dbus_transport_get_dispatch_status + fun:_dbus_transport_queue_messages + fun:do_reading + fun:socket_do_iteration + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_connection_do_iteration_unlocked + fun:UnknownInlinedFun + fun:dbus_pending_call_block + fun:dbus_connection_send_with_reply_and_block +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:malloc + fun:strdup + fun:_dl_load_cache_lookup + fun:_dl_map_new_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 +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:malloc + fun:_dl_new_object + fun:_dl_map_object_from_fd + fun:_dl_map_new_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 +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_string_lengthen + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_type_writer_recurse_contained_len.lto_priv.0 + fun:_dbus_type_writer_recurse + fun:write_basic_field.lto_priv.0 + fun:_dbus_header_create.constprop.0 + fun:dbus_message_new_signal + fun:_dbus_connection_new_for_transport + fun:UnknownInlinedFun + fun:_dbus_connection_open_internal + fun:internal_bus_get + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:UnknownInlinedFun + fun:set_length + fun:open_gap + fun:UnknownInlinedFun + fun:_dbus_string_copy_len + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_message_loader_queue_messages + fun:_dbus_transport_get_dispatch_status + fun:_dbus_transport_queue_messages + fun:do_reading + fun:socket_do_iteration + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_connection_do_iteration_unlocked + fun:UnknownInlinedFun + fun:dbus_pending_call_block + fun:dbus_connection_send_with_reply_and_block +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:malloc + 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_implementation + fun:dlopen@@GLIBC_2.34 +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:dbus_message_new_empty_header + fun:dbus_message_new_signal + fun:_dbus_connection_new_for_transport + fun:UnknownInlinedFun + fun:_dbus_connection_open_internal + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:dbus_message_new_empty_header + fun:dbus_message_new_method_call + fun:dbus_bus_register + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:dbus_message_new_empty_header + fun:dbus_message_new_error + fun:UnknownInlinedFun + fun:dbus_connection_send_with_reply + fun:dbus_connection_send_with_reply_and_block + fun:dbus_bus_register + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:dbus_message_new_empty_header + fun:_dbus_message_loader_queue_messages + fun:_dbus_transport_get_dispatch_status + fun:_dbus_transport_queue_messages + fun:do_reading + fun:socket_do_iteration + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_connection_do_iteration_unlocked + fun:UnknownInlinedFun + fun:dbus_pending_call_block + fun:dbus_connection_send_with_reply_and_block + fun:dbus_bus_register + fun:internal_bus_get +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:dbus_message_new_empty_header + fun:_dbus_message_loader_queue_messages + fun:_dbus_transport_get_dispatch_status + fun:_dbus_transport_queue_messages + fun:do_reading + fun:socket_do_iteration + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_connection_do_iteration_unlocked + fun:UnknownInlinedFun + fun:dbus_pending_call_block + fun:dbus_connection_send_with_reply_and_block + fun:dbus_bus_request_name + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:UnknownInlinedFun + fun:set_length + fun:open_gap + fun:UnknownInlinedFun + fun:_dbus_string_copy_len + fun:marshal_len_followed_by_bytes.lto_priv.0 + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_type_writer_write_basic + fun:dbus_message_iter_append_basic + fun:dbus_message_new_error + fun:UnknownInlinedFun + fun:dbus_connection_send_with_reply + fun:dbus_connection_send_with_reply_and_block + fun:dbus_bus_register + fun:internal_bus_get +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:UnknownInlinedFun + fun:set_length + fun:open_gap + fun:UnknownInlinedFun + fun:_dbus_string_copy_len + fun:marshal_len_followed_by_bytes.lto_priv.0 + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_type_writer_write_basic + fun:dbus_message_iter_append_basic + fun:dbus_message_new_error + fun:UnknownInlinedFun + fun:dbus_connection_send_with_reply + fun:dbus_connection_send_with_reply_and_block + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:UnknownInlinedFun + fun:set_length + fun:open_gap + fun:UnknownInlinedFun + fun:_dbus_string_copy_len + fun:marshal_len_followed_by_bytes.lto_priv.0 + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_type_writer_write_basic + fun:dbus_message_iter_append_basic + fun:dbus_message_new_error + fun:UnknownInlinedFun + fun:dbus_connection_send_with_reply + fun:dbus_connection_send_with_reply_and_block + fun:dbus_bus_request_name + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_string_lengthen + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_type_writer_recurse_contained_len.lto_priv.0 + fun:_dbus_type_writer_recurse + fun:write_basic_field.lto_priv.0 + fun:_dbus_header_create.constprop.0 + fun:dbus_message_new_method_call + fun:dbus_bus_request_name + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_string_lengthen + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_type_writer_recurse_contained_len.lto_priv.0 + fun:_dbus_type_writer_recurse + fun:write_basic_field.lto_priv.0 + fun:_dbus_header_set_field_basic + fun:UnknownInlinedFun + fun:_dbus_message_iter_close_signature + fun:dbus_message_iter_append_basic + fun:dbus_message_append_args_valist + fun:dbus_message_append_args + fun:dbus_bus_add_match + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_string_lengthen + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_type_writer_recurse_contained_len.lto_priv.0 + fun:_dbus_type_writer_recurse + fun:write_basic_field.lto_priv.0 + fun:_dbus_header_set_field_basic + fun:UnknownInlinedFun + fun:_dbus_message_iter_close_signature + fun:dbus_message_iter_append_basic + fun:dbus_message_append_args_valist + fun:dbus_message_append_args + fun:dbus_bus_request_name + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:pthread_setspecific@@GLIBC_2.34 + obj:* + obj:* + obj:* + obj:* + obj:* + fun:_dl_init + fun:_dl_catch_exception + fun:dl_open_worker + fun:_dl_catch_exception + fun:_dl_open +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_dbus_platform_rmutex_new + fun:UnknownInlinedFun + fun:dbus_threads_init + fun:UnknownInlinedFun + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:_dbus_mem_pool_alloc + fun:alloc_link + fun:_dbus_list_prepend + fun:_dbus_list_append + fun:dbus_parse_address + fun:_dbus_connection_open_internal + fun:internal_bus_get + obj:* + obj:* + obj:* + obj:* +} +{ + + Memcheck:Leak + match-leak-kinds: indirect + fun:realloc + fun:UnknownInlinedFun + fun:set_length + fun:open_gap + fun:UnknownInlinedFun + fun:_dbus_string_copy_len + fun:UnknownInlinedFun + fun:_dbus_message_loader_queue_messages + fun:_dbus_transport_get_dispatch_status + fun:_dbus_transport_queue_messages + fun:do_reading + fun:socket_do_iteration + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_connection_do_iteration_unlocked + fun:UnknownInlinedFun + fun:dbus_pending_call_block + fun:dbus_connection_send_with_reply_and_block +} +{ + + Memcheck:Leak + match-leak-kinds: definite + fun:calloc + fun:dbus_message_new_empty_header + fun:_dbus_message_loader_queue_messages + fun:_dbus_transport_get_dispatch_status + fun:_dbus_transport_queue_messages + fun:do_reading + fun:socket_do_iteration + fun:UnknownInlinedFun + fun:UnknownInlinedFun + fun:_dbus_connection_do_iteration_unlocked + fun:UnknownInlinedFun + fun:dbus_pending_call_block + fun:dbus_connection_send_with_reply_and_block + fun:dbus_bus_register + fun:internal_bus_get +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:calloc + 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_implementation + fun:dlopen@@GLIBC_2.34 +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:calloc + fun:_dl_new_object + fun:_dl_map_object_from_fd + fun:_dl_map_new_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 +} +{ + + Memcheck:Leak + match-leak-kinds: reachable + fun:calloc + fun:calloc + fun:_dl_new_object + fun:_dl_map_object_from_fd + fun:_dl_map_new_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 +}