From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10313 invoked by alias); 13 Sep 2019 18:39:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 10306 invoked by uid 89); 13 Sep 2019 18:39:32 -0000 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 Received: from mx009.vodafonemail.xion.oxcs.net (HELO mx009.vodafonemail.xion.oxcs.net) (153.92.174.39) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Sep 2019 18:39:30 +0000 Received: from vsmx002.vodafonemail.xion.oxcs.net (unknown [192.168.75.192]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTP id 0325D60B4D7 for ; Fri, 13 Sep 2019 18:39:28 +0000 (UTC) Received: from Gertrud (unknown [84.160.192.162]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTPA id BAEE160B4C8 for ; Fri, 13 Sep 2019 18:39:25 +0000 (UTC) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: My C arrays are too large References: Date: Fri, 13 Sep 2019 18:44:00 -0000 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 X-SW-Source: 2019-09/txt/msg00161.txt.bz2 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