X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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 To: cygwin AT cygwin DOT com Subject: Re: My C arrays are too large References: Date: Fri, 13 Sep 2019 20:39:21 +0200 In-Reply-To: (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 > 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