From a179b02f5d48225db539149dd090efe439d85b48 Mon Sep 17 00:00:00 2001 From: "jabber.developer2" Date: Wed, 24 Dec 2025 19:23:05 +0300 Subject: [PATCH] fix(valgrind): add valgrid suppressions for pthread TLS and expect/tcl library allocations --- prof.supp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/prof.supp b/prof.supp index c2f7f59c..403f8ef6 100644 --- a/prof.supp +++ b/prof.supp @@ -2703,3 +2703,42 @@ fun:calloc fun:_dl_allocate_tls } + +# pthread TLS allocation in stabber server threads +{ + pthread_create_tls_stabber + Memcheck:Leak + match-leak-kinds: possible + fun:calloc + ... + fun:allocate_dtv + fun:_dl_allocate_tls + fun:allocate_stack + fun:pthread_create* + fun:server_run +} + +# expect/tcl library allocations +{ + tcl_alloc_expect + Memcheck:Leak + match-leak-kinds: possible + fun:malloc + ... + fun:TclpAlloc + fun:Tcl_Alloc + ... + fun:exp_expectl +} + +{ + exp_printify + Memcheck:Leak + match-leak-kinds: possible + fun:malloc + ... + fun:exp_printify + ... + fun:exp_expectl +} +