From 2eeeee7636cb52a09740598404808def17cf750e Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 18 Oct 2022 16:33:52 +0100 Subject: Fix elf/tst-dlmopen-twice not to exhaust static TLS By default glibc only allocates enough static TLS for 4 link namespaces including the initial one. So only use 3 dlmopens in the test. Reviewed-by: Florian Weimer --- elf/tst-dlmopen-twice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'elf') diff --git a/elf/tst-dlmopen-twice.c b/elf/tst-dlmopen-twice.c index 70c71fe..a8d7e5e 100644 --- a/elf/tst-dlmopen-twice.c +++ b/elf/tst-dlmopen-twice.c @@ -46,8 +46,8 @@ do_test (void) recurse (1); /* Then with nesting. The constant needs to be less than the - internal DL_NNS namespace constant. */ - recurse (10); + glibc.rtld.nns tunable (which is 4 by default). */ + recurse (3); return 0; } -- cgit v1.1