| delorie.com/archives/browse.cgi | search |
| 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:reply-to:subject:to:references:from:message-id | |
| :date:mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; q=dns; s=default; b=nlDwsyE3UZA1ESKj | |
| LaEV+LeN8zba5WEIjFYRwuCFdf9JQg/flR++Qh4BgO2C1qr2iQa/Z1lOdCfTtqbo | |
| 4DrSccRfj5OXKPij5eAWVRmPFyrxhLMDdL4uCLm14OqFSHZyLgfLYtyBkwMaHv/J | |
| Fg2LPWE3cj8DdLa1pX8L5s72pXw= | |
| 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:reply-to:subject:to:references:from:message-id | |
| :date:mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; s=default; bh=lu4ZG/XlmGCUMmRqh68iva | |
| YuX0o=; b=uI+ez/vgy/qpDjCyYWxbXVFGmoRS9HV8Yq2XtRXK8SoUpR18IAteew | |
| 0iXMmZWayR02NXSMyIr313RTEv9cAnNn6Hxs7cS83UszuVaGSptXmYJtmppfBw/e | |
| wnYq4ouXxT7UDtU38Vu+VTjVpXN3144O74uqSCnYVo84a2N4a3vFE= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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: | 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 |
| Reply-To: | moss AT cs DOT umass DOT edu |
| Subject: | Re: My C arrays are too large |
| To: | cygwin AT cygwin DOT com |
| References: | <CY4PR1101MB21339312E8F5656D8C887BFE81B30 AT CY4PR1101MB2133 DOT namprd11 DOT prod DOT outlook DOT com> <87ftl0jb1i DOT fsf AT Rainer DOT invalid> |
| From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
| Message-ID: | <f6756d22-2fd6-28b2-28ec-568141ab14b4@cs.umass.edu> |
| Date: | Fri, 13 Sep 2019 14:44:33 -0400 |
| 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> |
| X-IsSubscribed: | yes |
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<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
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |