From 4c7f3cc366091dd465d2f830d73e792aeea7aadd Mon Sep 17 00:00:00 2001 From: "sergei.kovalev" Date: Mon, 20 Dec 2021 17:31:17 +0100 Subject: [PATCH] check: Fix valgrind suppression for debug function list Fix suppression to support release and debug builds. Here is the debug build call stack: ``` ==10707== by 0x48B5520: g_malloc (gmem.c:106) ==10707== by 0x48D19DC: g_slice_alloc (gslice.c:1069) ==10707== by 0x48D3947: g_slist_copy_deep (gslist.c:619) ==10707== by 0x48D38B8: g_slist_copy (gslist.c:567) ==10707== by 0x4ADC90B: gst_debug_remove_with_compare_func (gstinfo.c:1504) ``` In release build `g_slist_copy (gslist.c:567)` got inlined: ``` ==15419== by 0x48963E0: g_malloc (gmem.c:106) ==15419== by 0x48AA382: g_slice_alloc (gslice.c:1069) ==15419== by 0x48AB732: g_slist_copy_deep (gslist.c:619) ==15419== by 0x4A39B8F: gst_debug_remove_with_compare_func (gstinfo.c:1504) ``` Part-of: --- subprojects/gstreamer/tests/check/gstreamer.supp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gstreamer/tests/check/gstreamer.supp b/subprojects/gstreamer/tests/check/gstreamer.supp index 61a653f..e69c0cf 100644 --- a/subprojects/gstreamer/tests/check/gstreamer.supp +++ b/subprojects/gstreamer/tests/check/gstreamer.supp @@ -4040,7 +4040,7 @@ Memcheck:Leak fun:*alloc ... - fun:g_slist_copy_deep + fun:g_slist_copy* fun:gst_debug_add_log_function } -- 2.7.4