public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Fix elf/tst-dlmopen-twice not to exhaust static TLS
@ 2022-10-28 17:44 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2022-10-28 17:44 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2eeeee7636cb52a09740598404808def17cf750e

commit 2eeeee7636cb52a09740598404808def17cf750e
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Tue Oct 18 16:33:52 2022 +0100

    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 <fweimer@redhat.com>

Diff:
---
 elf/tst-dlmopen-twice.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/elf/tst-dlmopen-twice.c b/elf/tst-dlmopen-twice.c
index 70c71fe19c..a8d7e5e081 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;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-28 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 17:44 [glibc] Fix elf/tst-dlmopen-twice not to exhaust static TLS Szabolcs Nagy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).