This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: My C arrays are too large
- From: Jose Isaias Cabrera <jicman at outlook dot com>
- To: Achim Gratz <Stromeko at nexgo dot de>, "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 13 Sep 2019 18:50:07 +0000
- Subject: Re: My C arrays are too large
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4v71fLWiXdm/CDTEXDCh/lP3RTCyonEW5pBkaQe4TPs=; b=Ad8cJKTkEL44KMZi3xuaBPe7Sr0mKtCntG90wmKMv94oNh7iMWDLUZG0DNFZd6j385ihh59Uwq+FvlWzkG8ide+wRfAfgRQXWQdn9BQ5uDegNkZJvneqPokJ0sdDVHXdBBwgxkFhWJmMi5UrdL3/5nUtJdyuDsOG2TgImSFxG9PSqY6+2+lm+yyyX7BX3Z9eCJ3Qk0W9W+sgKiNo+k5WHvfkuRgPus5LF7G8PDRKp3bd/BL8+AM3jNkqSCoj+CznrrYZZMNjihLysE2e2xLWH9gAXZYnxIPd8HKCP0nh+6YQ4eEA0wVsM4QiPmnEpvPigzr4cjVnCAyQQcsiauQbLA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QB15MY9Yq7dcKM7E9Dw0mfMZdfQdWdzZyLJGCOf8kEPWWhEBW/0q6SxkQBaYMq1O7RkikyJGRlwDSfHYEiSL/sQk9CZC1Dja3bWtKuACfrQrx1vOSHFzjPFPfrs3LSuBNMSxPWNbsdVgHJ/d9ryegf3tBSCBmth1zQadtNFJc2cgGUZyXg/oBx5lWUlTHvRDal4IibUPy4QwPNP2hJOgOJgcqSS3rn7xXJrDjmIussL5PmZwnfyJCcoZ3qmdSrOso0sHLaHljn+ZUVdvwBgqxBjIK++jCmEsbTb9ytyJ2HZnvJtUCCidU5FSVzfHBiepPfLHYFuJ9G8c8SVAICQ1/w==
- References: <CY4PR1101MB21339312E8F5656D8C887BFE81B30@CY4PR1101MB2133.namprd11.prod.outlook.com>,<87ftl0jb1i.fsf@Rainer.invalid>
Achim Gratz, on Friday, September 13, 2019 02:39 PM, 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<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
This is great! Thanks.
But, let's talk about this a bit... Shouldn't the compiler provide some warning, and also, it should never blow up with a "Segmentation fault". I believe there should be some type of Out Of Memory error, or something like it. But now just blow up. Anyone thinks like me? Just my 102 Dominican cents ($1 = $51 Dominican). :-)
josé
--
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