From 28e913a76e13a9556d5c574c83b64cacf540b89c Mon Sep 17 00:00:00 2001 From: Kris Jacque Date: Tue, 2 Jun 2026 17:59:53 +0000 Subject: [PATCH 1/3] DAOS-19035 test: Genericize Cgo suppressions - Update Cgo suppressions with wildcards for the hashes, which can change. Signed-off-by: Kris Jacque --- src/cart/utils/memcheck-cart.supp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/cart/utils/memcheck-cart.supp b/src/cart/utils/memcheck-cart.supp index 2cb7347ed55..908e317848d 100644 --- a/src/cart/utils/memcheck-cart.supp +++ b/src/cart/utils/memcheck-cart.supp @@ -558,11 +558,11 @@ fun:syscall.Syscall.abi0 } { - DAOS-14680-1 + Racecall cgo malloc Memcheck:Leak match-leak-kinds: reachable fun:malloc - fun:_cgo_0edd79296193_Cfunc__Cmalloc + fun:_cgo_*_Cfunc__Cmalloc fun:runtime.asmcgocall.abi0 ... fun:racecall @@ -593,16 +593,6 @@ Memcheck:Addr1 fun:racecallatomic } -{ - Go runtime cgo malloc - Memcheck:Leak - match-leak-kinds: reachable - fun:malloc - fun:_cgo_b68ed06c1ed7_Cfunc__Cmalloc - fun:runtime.asmcgocall.abi0 - ... - fun:racecall -} { __tsan_go_atomic64_load Memcheck:Addr8 @@ -625,11 +615,11 @@ fun:racecall } { - DAOS-16052 + Persistentalloc cgo malloc Memcheck:Leak match-leak-kinds: reachable fun:malloc - fun:_cgo_b68ed06c1ed7_Cfunc__Cmalloc + fun:_cgo_*_Cfunc__Cmalloc fun:runtime.asmcgocall.abi0 ... fun:runtime.persistentalloc From 9e4a2ff5af2128f6ea62e15a4c70608200c8aec4 Mon Sep 17 00:00:00 2001 From: Kris Jacque Date: Tue, 2 Jun 2026 20:00:23 +0000 Subject: [PATCH 2/3] Add another type of malloc suppression Signed-off-by: Kris Jacque --- src/cart/utils/memcheck-cart.supp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/cart/utils/memcheck-cart.supp b/src/cart/utils/memcheck-cart.supp index 908e317848d..f79813604ed 100644 --- a/src/cart/utils/memcheck-cart.supp +++ b/src/cart/utils/memcheck-cart.supp @@ -624,6 +624,16 @@ ... fun:runtime.persistentalloc } +{ + Newproc cgo malloc + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + fun:_cgo_*_Cfunc__Cmalloc + fun:runtime.asmcgocall.abi0 + ... + fun:runtime.newproc.abi0 +} { __tsan_write_pc Memcheck:Value8 From 4e0b93ebeb9e4ba67a889248ce92d2e017575d28 Mon Sep 17 00:00:00 2001 From: Kris Jacque Date: Wed, 3 Jun 2026 18:57:22 +0000 Subject: [PATCH 3/3] Genericize cgo malloc in unit test suppression file Signed-off-by: Kris Jacque --- utils/test_memcheck.supp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/test_memcheck.supp b/utils/test_memcheck.supp index d8a6695dfac..2f83a412f34 100644 --- a/utils/test_memcheck.supp +++ b/utils/test_memcheck.supp @@ -434,7 +434,7 @@ Memcheck:Leak match-leak-kinds: reachable fun:malloc - fun:_cgo_b68ed06c1ed7_Cfunc__Cmalloc + fun:_cgo_*_Cfunc__Cmalloc fun:runtime.asmcgocall.abi0 ... fun:runtime.persistentalloc