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:date:message-id:references :in-reply-to:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=ClW/n88OGyYYBmak 5DjaGWVzaaWN4nfrLJFTrKHfA04c9KXsHzVeTnmbWb0C+QrMSNQrP8ICqLcfxhwG UBui98g0PA+z6pFL+zG4M6GCujz9b1faLQnQ/KuFc85hK/luhg2ulfK4SYedvFZ0 wL5W7MtHEOdpJs094yW9quWsa0M= 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:date:message-id:references :in-reply-to:mime-version:content-type :content-transfer-encoding; s=default; bh=/w/NmBMADApOea32RoatBF mwsEA=; b=l6G4OL274miZ2TOqfQcBe1btXDiBgWMSosQ9ER3mVzB8gNt29VuYvr 1fmK+nD30vmx0DBFjEm7FWrea8OCf9d37I2J7cr77AJeLLTaqgCxZyA1Co1ezrsf +ET2zjgju5tJk638x0Zw2UjY6b6qDAWSC0mB44IzaMfXZu9+IQ3+Q= 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: =?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 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== From: Jose Isaias Cabrera To: Achim Gratz , "cygwin AT cygwin DOT com" Subject: Re: My C arrays are too large Date: Fri, 13 Sep 2019 18:50:07 +0000 Message-ID: References: ,<87ftl0jb1i DOT fsf AT Rainer DOT 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" X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x8DIol4m012278 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 > > 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