From a5eab3cad5bfc41478fb4f6704ad2a27b5d11cf1 Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Wed, 2 Jul 2025 15:21:44 +0200 Subject: [PATCH] build: Upgrade valgrind suppression file Use newer version of Python's .supp file. --- prof.supp | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/prof.supp b/prof.supp index 36f9ef71..c2f7f59c 100644 --- a/prof.supp +++ b/prof.supp @@ -5,7 +5,7 @@ # # This file is a combination of our own rules and # * the glib2 suppressions file that usually can be found at /usr/share/glib-2.0/valgrind/glib.supp -# * python suppressions file from http://svn.python.org/projects/python/trunk/Misc/valgrind-python.supp +# * python suppressions file from https://github.com/python/cpython/blob/main/Misc/valgrind-python.supp # { @@ -1557,6 +1557,10 @@ ... fun:xdg_mime_init } + +# Python Valgrind .supp start +# taken from https://github.com/python/cpython/blob/main/Misc/valgrind-python.supp + # # This is a valgrind suppression file that should be used when using valgrind. # @@ -1654,6 +1658,49 @@ fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING } +# +# Leaks: dlopen() called without dlclose() +# + +{ + dlopen() called without dlclose() + Memcheck:Leak + fun:malloc + fun:malloc + fun:strdup + fun:_dl_load_cache_lookup +} +{ + dlopen() called without dlclose() + Memcheck:Leak + fun:malloc + fun:malloc + fun:strdup + fun:_dl_map_object +} +{ + dlopen() called without dlclose() + Memcheck:Leak + fun:malloc + fun:* + fun:_dl_new_object +} +{ + dlopen() called without dlclose() + Memcheck:Leak + fun:calloc + fun:* + fun:_dl_new_object +} +{ + dlopen() called without dlclose() + Memcheck:Leak + fun:calloc + fun:* + fun:_dl_check_map_versions +} + + # # Non-python specific leaks # @@ -2048,6 +2095,10 @@ fun:PyUnicode_FSConverter } +# Python Valgrind .supp end + + + # Actual GTK things { GtkWidgetClass action GPtrArray