From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20130 invoked by alias); 13 Sep 2019 18:44:37 -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 20123 invoked by uid 89); 13 Sep 2019 18:44:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mailsrv.cs.umass.edu Received: from mailsrv.cs.umass.edu (HELO mailsrv.cs.umass.edu) (128.119.240.136) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Sep 2019 18:44:35 +0000 Received: from [192.168.24.248] (eduroamgw.cs.umass.edu [128.119.40.194]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 4E887401CE27; Fri, 13 Sep 2019 14:44:34 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: My C arrays are too large To: cygwin@cygwin.com References: <87ftl0jb1i.fsf@Rainer.invalid> From: Eliot Moss Message-ID: Date: Fri, 13 Sep 2019 18:50:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <87ftl0jb1i.fsf@Rainer.invalid> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00162.txt.bz2 On 9/13/2019 2:39 PM, Achim Gratz wrote: > 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 Works for me (but how obscure!). Eliot -- 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