From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59248 invoked by alias); 18 Sep 2019 20:35:44 -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 59240 invoked by uid 89); 18 Sep 2019 20:35:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=ASBESTOS_BODY,AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 spammy=III, suit, charles, bg X-HELO: EUR02-AM5-obe.outbound.protection.outlook.com Received: from mail-oln040092067047.outbound.protection.outlook.com (HELO EUR02-AM5-obe.outbound.protection.outlook.com) (40.92.67.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Sep 2019 20:35:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VNRzvg14HSaCJXkSTrfliyYFPeQ/p84W69yZeqMYZ4Zair/467SBm6rDTvaQwqKUVnbB5PlPrdr4gvoMLt6rDRR9fKYHC6VazGsf3V7NMqt8jFCvF8eAIqk5l/RIcfXw6wRU+2x0GLPpAI/RXFzAfgZYLSPm7pE7JU5HVhteDKX1EVhZV+mlarXkx2KEeFSdooD1NJSF4PnbQX0IC0X/7chabo4iJS5E1Q8RWjiIkSXOhLQAISV6LtYEVVtET90WBNskjNRj9ZcuXCwo/QMt5ucn2n/+gCGObQNuJM6t6PLpPynP/8JBOstdBMt4BQsUy2imcuiTfOA77crUt0u2ow== 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=Xu14iQ4BhJu/yKLcGFp0qiHN+2FM6o5/tpl5GWYe7gY=; b=RDj9cnyOYq++0g3pJwzvaupZ9vis/onxVQ/L4gEkXZYocJFVNBnuEfqaSMmcqMw6/IpEv1P1TLLMCA9mpqBaQDklrVuuMlUVPXdEsOnCKwplEK3i+yBwqoG8LM6y4NCmlvSDXKT9/773HyRuZZ0oiypxyjzJ7SaJHbZU2+IDKHT+2WLyhilFosJRhQenQ7exnHfs4BnPywhCWGGh1q+HG7cBkD+tYAi8Ouz+c180zYF20VAaY0c199Pu+M9ccdHdj6vxrENAMEvlvD3huB2LjCrxSRsNQwRhHtxssADsmXn4XG4LpE0dZSAqM/HLkOAABbKsdQjzHIlv4ZlM/W1yBA== 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=Xu14iQ4BhJu/yKLcGFp0qiHN+2FM6o5/tpl5GWYe7gY=; b=iY3LrXfsUp/HV4tK/CWXKDx5MXujWfGP1B7mjL4ezdXSEEb/GyoW6cOrR80byrtcRURBei0LVdzTXehYlHxl/SXGOBZONctXfjm3+It5+q4AkUpt1R0WOjTLEhN1B2tRV4eRQjxXonDr84AGh0WbkMExFnkCvRAbRm3pWePFYcpNql6B2z0PYRuBZDZPLX+jNTJVCqh5pI1y337AJFLrB8TioVM364S8jDekgbOb6dlzPQSH/zZEZ2czzCyjIc+P0biEtemVMXoUR652dMUk8mOemLSqHF9rVr/G8+MArpifCkrb/Jav6uZ5A6IEsMwpk7m3fMqZUV6452JQygQURg== Received: from VE1EUR02FT036.eop-EUR02.prod.protection.outlook.com (10.152.12.59) by VE1EUR02HT220.eop-EUR02.prod.protection.outlook.com (10.152.13.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2263.21; Wed, 18 Sep 2019 20:35:39 +0000 Received: from VI1P195MB0765.EURP195.PROD.OUTLOOK.COM (10.152.12.51) by VE1EUR02FT036.mail.protection.outlook.com (10.152.13.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2284.20 via Frontend Transport; Wed, 18 Sep 2019 20:35:39 +0000 Received: from VI1P195MB0765.EURP195.PROD.OUTLOOK.COM ([fe80::11cd:dfa9:2378:a69a]) by VI1P195MB0765.EURP195.PROD.OUTLOOK.COM ([fe80::11cd:dfa9:2378:a69a%3]) with mapi id 15.20.2263.023; Wed, 18 Sep 2019 20:35:39 +0000 From: Jose Isaias Cabrera To: Joel Rees , "cygwin@cygwin.com" Subject: Re: My C arrays are too large Date: Wed, 18 Sep 2019 20:40:00 -0000 Message-ID: References: <87ftl0jb1i.fsf@Rainer.invalid> , In-Reply-To: x-ms-exchange-transport-forked: True MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00197.txt.bz2 Joel Rees, on Wednesday, September 18, 2019 02:38 PM, wrote... > > 2019=1B$BG/=1B(B9=1B$B7n=1B(B14=1B$BF|=1B(B(=1B$BEZ=1B(B) 3:50 Jose Isaia= s Cabrera, on > > > > > 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 fau= lt". > > > > > > You are creating an automatic variable that's larger than the default > > > stack. You need to enlarge the stack, either during link time or lat= er > > > 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 Dominic= an > > cents ($1 =3D $51 Dominican). :-) > > > > Well, the behavior of the compiler itself is better discussed on the > compiler's forums, although you may need your asbestos suit when you do s= o. > > That said, why do you want this variable to be automatic? Why do you want > it allocated on the stack? I did not say automatically. I said that the compiler should provide some = warning about the allocation being larger than the default stack. And, it = should not result in a segmentation fault, but instead, the program should = error out with out of memory, or, at least, "memory allocation is larger th= an default stack." Not just blow up. -- 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