From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 92F2B3858425; Fri, 28 Oct 2022 17:44:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92F2B3858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666979052; bh=Os9wIfn+GjfLHcP6hL0gGZW9A1R2KkrXQ+wJopVk9Jc=; h=From:To:Subject:Date:From; b=Wmen5Kws3PCkQJghQ/IEGD+wLoKApDHQeJddIGxthULdDFINMcaRHpduFsHL7wrTT oRSOAJGOmMILLLlxpcAbWVvkzPKcsDTL4+TOko9pLLpbEKD5Wesh7pyXwZBLYKq/ar T+Zmt4tn0u7sdm9gpLPdEXW3PfT0ivNAEqp3neZA= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc] Fix elf/tst-dlmopen-twice not to exhaust static TLS X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/master X-Git-Oldrev: f9deea6f81cd5266ffb3d27e2584d609fef9b8d2 X-Git-Newrev: 2eeeee7636cb52a09740598404808def17cf750e Message-Id: <20221028174412.92F2B3858425@sourceware.org> Date: Fri, 28 Oct 2022 17:44:12 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2eeeee7636cb52a09740598404808def17cf750e commit 2eeeee7636cb52a09740598404808def17cf750e Author: Szabolcs Nagy 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 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; }