X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type; q=dns; s=default; b=M7zyw
	caPzYZ0V7walsRAe/ymig1oQhAscX5kYv9xmCMEwf3YpXhz87i0FXpA96P/574h6
	1jENa0U9AxDGKpQZOIIm0pGR5INSv1UFwqrb/hG71h1NMSyclR5I6DD7WnejAA7r
	F+smNJHgF3hiKZLxbGINRvRnfgif7vZrJUIssw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:references:date:in-reply-to
	:message-id:mime-version:content-type; s=default; bh=KwxUu2ZvR7Z
	Lg98qveHeZxyvSSo=; b=W22ecCXiQFvMBTFtN7j0ajAYle/t7W/4uO4m/OTNHTs
	cp5sLunvN/rY5H4yOz8DXXM6V7CXNOWaL6xQ5HWjeZ+FWbSVm9J27hjUrExg5Dm8
	GLjJBHRaFSCfRcIkKIpmXuByyK9+i+ovIyh7/7H4vxxFf2LpqHQ4nKrzuoR8jTtY
	=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:ESMTPA
X-HELO: mx009.vodafonemail.xion.oxcs.net
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin@cygwin.com
Subject: Re: My C arrays are too large
References: <CY4PR1101MB21339312E8F5656D8C887BFE81B30@CY4PR1101MB2133.namprd11.prod.outlook.com>
Date: Fri, 13 Sep 2019 20:39:21 +0200
In-Reply-To: <CY4PR1101MB21339312E8F5656D8C887BFE81B30@CY4PR1101MB2133.namprd11.prod.outlook.com>	(Charles E. Blair, III's message of "Fri, 13 Sep 2019 12:10:47 +0000")
Message-ID: <87ftl0jb1i.fsf@Rainer.invalid>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain

Blair, Charles E III writes:
> My apologies for failing to reply on-list.  I don't know how :(
>
> My machine is 64 bit, and I hope I installed the correct version of cygwin.
>
> This program:
>
> #include<stdio.h>
> int main(){char *a[50][8192];
> return 0;}
>
> compiles with gcc  (no special options) but gives "Segmentation fault".

You are creating an automatic variable that's larger than the default
stack.  You need to enlarge the stack, either during link time or later
e.g. via

peflags -x0x800000 a.out


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

