From patchwork Thu Sep 27 09:16:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 29561 Received: (qmail 66939 invoked by alias); 27 Sep 2018 09:16:48 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 66827 invoked by uid 89); 27 Sep 2018 09:16:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1002 X-HELO: mx1.suse.de From: Andreas Schwab To: Carlos O'Donell Cc: Florian Weimer , GNU C Library , "H.J. Lu" Subject: Re: [PATCH] Fix tst-setcontext9 for optimized small stacks. References: <87zhw3yjxh.fsf@oldenburg.str.redhat.com> <321d3408-dfec-50f9-fdc6-7962b184d8b8@redhat.com> X-Yow: Bo Derek ruined my life! Date: Thu, 27 Sep 2018 11:16:33 +0200 In-Reply-To: <321d3408-dfec-50f9-fdc6-7962b184d8b8@redhat.com> (Carlos O'Donell's message of "Wed, 26 Sep 2018 20:10:37 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 On Sep 26 2018, Carlos O'Donell wrote: > Does it run out of stack? Definitely. Andreas. [BZ #23717] * stdlib/tst-setcontext9.c (f1a): Make st2 static. (do_test): Make st1 static. --- stdlib/tst-setcontext9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/tst-setcontext9.c b/stdlib/tst-setcontext9.c index db8355766c..009928235d 100644 --- a/stdlib/tst-setcontext9.c +++ b/stdlib/tst-setcontext9.c @@ -58,7 +58,7 @@ f1b (void) static void f1a (void) { - char st2[32768]; + static char st2[32768]; puts ("start f1a"); if (getcontext (&ctx[2]) != 0) { @@ -93,7 +93,7 @@ f1a (void) static int do_test (void) { - char st1[32768]; + static char st1[32768]; puts ("making contexts"); if (getcontext (&ctx[0]) != 0) {