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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,124905131f269735 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-26 23:12:36 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.bc.home.com.POSTED!not-for-mail Message-ID: <3BB2C334.A576460A@linuxchip.demon.co.uk> From: Dr Adrian Wrigley X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gnat and heap size References: <1001442590.557811@news.drenet.dnd.ca> <3BB10E2C.8C57FFE1@linuxchip.demon.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 27 Sep 2001 06:12:35 GMT NNTP-Posting-Host: 24.78.155.97 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.bc.home.com 1001571155 24.78.155.97 (Wed, 26 Sep 2001 23:12:35 PDT) NNTP-Posting-Date: Wed, 26 Sep 2001 23:12:35 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:13425 Date: 2001-09-27T06:12:35+00:00 List-Id: Erik Johannessen wrote: ... > The fun part here is that you can stay within the bounds you've > declared for the array, but access memory outside of the area > allocated for the array. If you've got other data on the heap after > the array you'll get some interesting bugs. :) ... This seems to be the same problem I had, except I was finding unexpected "aliases" between different fields in a record. Potentially nasty, because it can happen in otherwise well tested code used with unusually large data. Be aware of and work around the various limitations. Doesn't GNAT 3.14 fix some of these? Can (any of) you confirm whether the problem occurs with GNAT on 64-bit processors (Alpha etc.)? -- Adrian Wrigley