From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ae395e5c11de7bc9 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!x12g2000yqx.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: segfault with large-ish array with GNAT Date: Thu, 18 Mar 2010 08:36:48 -0700 (PDT) Organization: http://groups.google.com Message-ID: <47c1421f-55c8-458c-8fdd-ce4b185d7966@x12g2000yqx.googlegroups.com> References: <642ddf8b-1d45-4f74-83ad-2c755040ca33@k24g2000pro.googlegroups.com> <4ba13454$0$6720$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: 206.122.158.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1268926608 12336 127.0.0.1 (18 Mar 2010 15:36:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 18 Mar 2010 15:36:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x12g2000yqx.googlegroups.com; posting-host=206.122.158.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:10622 Date: 2010-03-18T08:36:48-07:00 List-Id: Jerry: > But it seems that I will have to allocate memory for large objects > using pointers (and thus take the memory from the heap). Is that > right? Seems so. Funnily I had a similar surprise ~12 years ago. It was with a reputable Ada 83 compiler (DEC Ada), on the university's main server, with a very reputable system (OpenVMS). I had declared: A: Matrix(m,n); somewhere, and the m's and n's were enough for 500MB. And told myself the system would be smart enough... Build, run... oh, frozen - and everybody was going out of the offices: "what happened with the mail ? what happened with... ?" G.