[PATCH] tests: elf: Fix flakiness of the tst-decorate-maps test

Yury Khrustalev yury.khrustalev@arm.com
Mon Nov 23 15:02:46 GMT 2026


Add glibc.malloc.hugetlb=0 tunable to avoid effect of hugepages
on the memory layout that causes this test to be flaky due to
occasional lack of the '[anon: glibc: malloc]' mapping.
---
 elf/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/elf/Makefile b/elf/Makefile
index d267317a81..7d91c7f171 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -3564,7 +3564,11 @@ $(objpfx)tst-dlclose-lazy.out: \
 $(objpfx)tst-decorate-maps: $(shared-thread-library)
 
 tst-decorate-maps-TUNABLES += \
-  glibc.malloc.arena_max=8:glibc.malloc.mmap_threshold=1024:glibc.mem.decorate_maps=1
+  glibc.malloc.arena_max=8 \
+  glibc.malloc.hugetlb=0 \
+  glibc.malloc.mmap_threshold=1024 \
+  glibc.mem.decorate_maps=1 \
+  # tst-decorate-maps-TUNABLES
 tst-decorate-maps-ARGS = 8
 
 LDFLAGS-tst-non-directory-mod.so = -Wl,-soname,tst-non-directory-mod.so

base-commit: 96dd8afdfa5bae1f22d75277f002bbdfaa8cb7ec
-- 
2.47.3



More information about the Libc-alpha mailing list