From 2f0711f74a175f6c932fdc4079ce74cf350fbafa Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Thu, 13 Oct 2022 09:38:07 +0000 Subject: add suppression and make safer - add new valgrind suppression variant for leaked thread stack cache - hold lock while editing list of threads - use jthread for join in destructor --- valgrind-suppressions.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'valgrind-suppressions.txt') diff --git a/valgrind-suppressions.txt b/valgrind-suppressions.txt index 63fd7857e76..241c7ef32f7 100644 --- a/valgrind-suppressions.txt +++ b/valgrind-suppressions.txt @@ -14,6 +14,16 @@ fun:_dl_allocate_tls fun:pthread_create@@GLIBC_2.2.5 } +{ + NPTL keeps a cache of thread stacks, and metadata for thread local storage is not freed for threads in that cache + Memcheck:Leak + fun:calloc + fun:UnknownInlinedFun + fun:allocate_dtv + fun:_dl_allocate_tls + fun:allocate_stack + fun:pthread_create@@GLIBC_2.2.5 +} { NPTL keeps a cache of thread stacks, and metadata for thread local storage is not freed for threads in that cache Memcheck:Leak -- cgit v1.2.3