From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116192 invoked by alias); 13 Sep 2019 18:50:12 -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 116184 invoked by uid 89); 13 Sep 2019 18:50:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=jos=e9, jos, blow, H*c:alternative?= X-HELO: EUR03-AM5-obe.outbound.protection.outlook.com Received: from mail-oln040092070106.outbound.protection.outlook.com (HELO EUR03-AM5-obe.outbound.protection.outlook.com) (40.92.70.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Sep 2019 18:50:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QB15MY9Yq7dcKM7E9Dw0mfMZdfQdWdzZyLJGCOf8kEPWWhEBW/0q6SxkQBaYMq1O7RkikyJGRlwDSfHYEiSL/sQk9CZC1Dja3bWtKuACfrQrx1vOSHFzjPFPfrs3LSuBNMSxPWNbsdVgHJ/d9ryegf3tBSCBmth1zQadtNFJc2cgGUZyXg/oBx5lWUlTHvRDal4IibUPy4QwPNP2hJOgOJgcqSS3rn7xXJrDjmIussL5PmZwnfyJCcoZ3qmdSrOso0sHLaHljn+ZUVdvwBgqxBjIK++jCmEsbTb9ytyJ2HZnvJtUCCidU5FSVzfHBiepPfLHYFuJ9G8c8SVAICQ1/w== 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-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4v71fLWiXdm/CDTEXDCh/lP3RTCyonEW5pBkaQe4TPs=; b=Ko0hr5MEeFzYhYLxazd1bq3kCcKje7dZS50iaXqTkfINWoih60aKBdjb1FfWCxh6hUJzUSZxGWJ9Bu7LPYAioag/TFJ7KoME2Ldo2XrFPJZM1v5PjTKnrNZUGRCP6PTa+zXO8xkv/C4SsIsAsYbj1eKE4BLjHJgbtbMKpEdnonsabHzO9ACiJ0awm+rPeGodWamoskZhDlBnY0dgCNlaaCrpRck2AwAlR6+fDSV/8pV0nkFXtpV3dPwsKRZaFlBPQy98fSiFrwtqvGppERRdHqjuZGg8ooXHNCX6PDcvD6HgwBC2Vk4HZeQPmnzTJ2GAOHhwvMu5F35jRAHEHmPuOQ== Received: from AM5EUR03FT048.eop-EUR03.prod.protection.outlook.com (10.152.16.59) by AM5EUR03HT207.eop-EUR03.prod.protection.outlook.com (10.152.17.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2263.14; Fri, 13 Sep 2019 18:50:08 +0000 Received: from VI1PR01MB4413.eurprd01.prod.exchangelabs.com (10.152.16.55) by AM5EUR03FT048.mail.protection.outlook.com (10.152.17.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2263.14 via Frontend Transport; Fri, 13 Sep 2019 18:50:08 +0000 Received: from VI1PR01MB4413.eurprd01.prod.exchangelabs.com ([fe80::d95e:8ded:3762:2a43]) by VI1PR01MB4413.eurprd01.prod.exchangelabs.com ([fe80::d95e:8ded:3762:2a43%5]) with mapi id 15.20.2241.022; Fri, 13 Sep 2019 18:50:07 +0000 From: Jose Isaias Cabrera To: Achim Gratz , "cygwin@cygwin.com" Subject: Re: My C arrays are too large Date: Fri, 13 Sep 2019 19:01:00 -0000 Message-ID: References: ,<87ftl0jb1i.fsf@Rainer.invalid> In-Reply-To: <87ftl0jb1i.fsf@Rainer.invalid> x-ms-exchange-transport-forked: True MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00163.txt.bz2 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 cyg= win. > > > > 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 This is great! Thanks. But, let's talk about this a bit... Shouldn't the compiler provide some war= ning, and also, it should never blow up with a "Segmentation fault". I bel= ieve 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 cen= ts ($1 =3D $51 Dominican). :-) jos=E9 -- 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