comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Odd overflow exception being raised in one-line program
Date: Wed, 30 Jan 2013 17:37:16 -0600
Date: 2013-01-30T17:37:16-06:00	[thread overview]
Message-ID: <kecare$uni$1@munin.nbi.dk> (raw)
In-Reply-To: 8259d65f-4b81-49d2-b1a0-613072c6b0fe@googlegroups.com

"Jerry" <lanceboyle@qwest.net> wrote in message 
news:8259d65f-4b81-49d2-b1a0-613072c6b0fe@googlegroups.com...
...
>This runs fine on my OS X 10.7.5 running GPL 2011 (20110419). The Ada
>binding in its present form has compiled on presumably numerous other 
>systems,
>including those of other developers, without this problem. The PLplot user 
>also
>reports several other overflow exceptions, all in a code base that has 
>never had
>such problems before.

I wonder if his hardware (you didn't say what processor/OS the person with 
the problem is running on) is either setting some bit incorrectly, or the 
bit is being interpreted wrong. I saw something like this when we 
implemented hardware conversions in Janus/Ada, as some weird bits were 
getting set that we misinterpreted as an error. It's possible to set up the 
Intel hardware to trap, and that could happen for underflow and other 
loss-of-precision cases, and such a trap would probably get reported as an 
overflow error.

It even possible that his OS has left some goofy setup in the floating point 
unit which causes bogus traps (bad device driver?). Did he try rebooting 
and/or running a "clean" system?

                                           Randy.





  parent reply	other threads:[~2013-01-30 23:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30  3:49 Odd overflow exception being raised in one-line program Jerry
2013-01-30 10:15 ` Simon Wright
2013-01-30 23:37 ` Randy Brukardt [this message]
2013-01-31  7:37 ` Jerry
2013-01-31 20:44   ` Simon Wright
2013-02-01  3:25   ` Jerry
replies disabled

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