comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr. Adrian Wrigley" <amtw@linuxchip.demon.co.uk.uk.uk>
Subject: Re: Memory limits in Ada where Fortran has none
Date: Wed, 16 Mar 2005 23:47:50 GMT
Date: 2005-03-16T23:47:50+00:00	[thread overview]
Message-ID: <pan.2005.03.16.23.49.40.445262@linuxchip.demon.co.uk.uk.uk> (raw)
In-Reply-To: wccwts7s729.fsf@shell01.TheWorld.com

On Wed, 16 Mar 2005 14:51:26 -0500, Robert A Duff wrote:

> "Dr. Adrian Wrigley" <amtw@linuxchip.demon.co.uk.uk.uk> writes:
> 
>> I am very wary of a test like this because GNAT sometimes
>> silently accesses the wrong element of very large data, if I
>> remember correctly.
...
>>... A correctly written program can (and did!)
>> thus fail catastrophically.  Large records in particular are
>> suspect (on GNAT 3.15p, x86). (I have no test case to hand
>> at the moment).  I don't know if it is affected by -gnato
>> and default absence of overflow checking.
> 
> I guess you should send them a bug report.

it wasn't convenient at the time (I had to find a fix!)
maybe I will if I have time to make a test case
on a current compiler.

>> A more comforting test would place a *different* value at
>> each location, and check they are all correct!
> 
> OK, the above example does that (but it's an array,
> not a record).

Sorry I raised this without giving a tangible example.
It was to do with locations of elements, and 'Address,
once the 256MB limit is breached.  I wanted to mmap a
large data set, but various things kept breaking.
The solution I found keeps the record under 256M, and avoids
using 'Address on giant arrays.  Works well now...
except I've hit the 2GB limit on the machine's mmap :(

I don't think hardware or OS issues had anything to do with
the issue, since I fixed it with the help of some C code.
The machine also has ECC, and the fault was repeatable.
-- 
Adrian




      reply	other threads:[~2005-03-16 23:47 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-06  0:54 Memory limits in Ada where Fortran has none braver
2005-03-06  1:09 ` Jeff C
2005-03-06  6:18   ` braver
2005-03-06  9:26     ` Martin Krischik
2005-03-06 16:14       ` braver
2005-03-06 16:28         ` Jeff C
2005-03-06 23:09         ` Craig Carey
2005-03-07  0:36           ` braver
2005-03-07  5:55           ` braver
2005-03-08  5:35             ` braver
2005-03-06 14:09     ` Stephen Leake
2005-03-06  9:33 ` Martin Krischik
2005-03-06 22:13 ` Gerald
2005-03-06 23:01 ` Dr. Adrian Wrigley
2005-03-07  0:31   ` braver
2005-03-07 12:47     ` Dr. Adrian Wrigley
2005-03-07  9:41   ` Martin Krischik
2005-03-07 11:59     ` Dr. Adrian Wrigley
2005-03-07 12:26       ` Martin Krischik
2005-03-07  0:05 ` Robert A Duff
2005-03-07 18:04   ` braver
2005-03-16 19:41     ` Robert A Duff
2005-03-17 18:49       ` Martin Krischik
2005-03-08 11:24   ` Dr. Adrian Wrigley
2005-03-09  3:39     ` Craig Carey
2005-03-16 17:39       ` Craig Carey
2005-03-16 19:51     ` Robert A Duff
2005-03-16 23:47       ` Dr. Adrian Wrigley [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox