From: Szabolcs Nagy Date: Tue, 18 Oct 2022 15:33:52 +0000 (+0100) Subject: Fix elf/tst-dlmopen-twice not to exhaust static TLS X-Git-Tag: glibc-2.37~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eeeee7636cb52a09740598404808def17cf750e;p=thirdparty%2Fglibc.git 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 --- diff --git a/elf/tst-dlmopen-twice.c b/elf/tst-dlmopen-twice.c index 70c71fe19c7..a8d7e5e0818 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; }