Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* pow() bug?
@ 1997-07-22  4:00 Robert Harley
  1997-07-23  4:00 ` Joseph Huber
  1997-07-23  4:00 ` Joshua Cope
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Harley @ 1997-07-22  4:00 UTC (permalink / raw)



Any truth to the following rumour from

  http://www.infoworld.com/cgi-bin/displayNew.pl?/rcringe/rcringe.htm

???

------------------------------------------------------------------------------
Alpha waves

Elsewhere on Wall Street, a trader felt a tickle in his belly when he
noticed that the price of a particular bond was showing up differently
on two different computers, both Digital Alphas. Fearing a bug in the
most recent release of his software, he stepped through the code and
discovered that the pow() function was returning different answers on
the two machines.

Oddly enough, the machine with the newly revved motherboard was
churning out errant numbers. Test your Alpha thusly: Try pow(1.234567,
7.654321). If you don't get 5.017, call Digital tech support.
------------------------------------------------------------------------------

I haven't found any problems with Linux + gcc or Digital Unix +
gcc/cc/cc.alt even with switches for intrinsic pow() on a
beta compiler that some nice people at DEC sent me.

So does anybody know examples where the bug occurs?  Is it on NT or what?

-- Rob.
     .-.                     Robert.Harley@inria.fr                    .-.
    /   \           .-.                                 .-.           /   \
   /     \         /   \       .-.     _     .-.       /   \         /     \
  /       \       /     \     /   \   / \   /   \     /     \       /       \
 /         \     /       \   /     `-'   `-'     \   /       \     /         \
            \   /         `-'                     `-'         \   /
             `-'      Linux - 500MHz Alpha - 256MB SDRAM       `-'



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: pow() bug?
  1997-07-22  4:00 pow() bug? Robert Harley
  1997-07-23  4:00 ` Joseph Huber
@ 1997-07-23  4:00 ` Joshua Cope
  1997-07-23  4:00   ` John Hascall
  1 sibling, 1 reply; 4+ messages in thread
From: Joshua Cope @ 1997-07-23  4:00 UTC (permalink / raw)



Robert Harley wrote:
 
  Any truth to the following rumour:
 
  Elsewhere on Wall Street, a trader felt a tickle in his belly when he
  noticed that the price of a particular bond was showing up differently
  on two different computers, both Digital Alphas. Fearing a bug in the
  most recent release of his software, he stepped through the code and
  discovered that the pow() function was returning different answers on
  the two machines.
 

Well, it happened, but I'm not sure what the fault is. The trader in question
also posted his results to the RISKS mailing list (http://catless.ncl.ac.uk/Risks);
here's an extract from Volume 19, #24:

|So, I wrote a stand alone program.  Sure enough, the machine with the
|latest rev motherboard (one that was just replaced by DEC) is
|producing bad numbers.  Time to try 'dxcalc', DEX's X calculator.
|Yup. different numbers.  How about perl?  Yup, different numbers.  How
|about 'bc'?  Duh, bc doesn't take floating point powers.  Hmm... check
|libm.  Nope, they are the same.
|
|Bottom line:  DEC will be here shortly.

and in the next issue (#25):

|So, as it turns out, DEC finally made it to our site and replaced the
|motherboard.  Everything worked fine after that.  Unfortunately, I was on
|vacation at the time and missed the service call (and the opportunity to
|compare boards / chip batch numbers).  I'm kind of bummed about that, but
|alas, that's life.
|
|DEC claimed it was a bad chip on *that* board only.

I suppose the chip could have somehow made it past the standard testing done 
after fabrication, or could have failed later on. I haven't heard of anyone
reproducing the problem (yet?).

	Joshua Cope
	DIGITAL OpenVMS Engineering



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: pow() bug?
  1997-07-23  4:00 ` Joshua Cope
@ 1997-07-23  4:00   ` John Hascall
  0 siblings, 0 replies; 4+ messages in thread
From: John Hascall @ 1997-07-23  4:00 UTC (permalink / raw)



Joshua Cope  <cope@star.enet.dec.com> wrote:

}|DEC claimed it was a bad chip on *that* board only.

}I suppose the chip could have somehow made it past the standard testing done 
}after fabrication, or could have failed later on. I haven't heard of anyone
}reproducing the problem (yet?).

   Well, not exactly the same thing, but we certainly are seeing
   FP errors creeping into our DECstations as they age.  In fact,
   we run a test-program on all of them every night in an attempt
   to locate them proactively.

John
-- 
John Hascall, Software Engr.        Shut up, be happy.  The conveniences you
ISU Computation Center              demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html  <-- the usual crud



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: pow() bug?
  1997-07-22  4:00 pow() bug? Robert Harley
@ 1997-07-23  4:00 ` Joseph Huber
  1997-07-23  4:00 ` Joshua Cope
  1 sibling, 0 replies; 4+ messages in thread
From: Joseph Huber @ 1997-07-23  4:00 UTC (permalink / raw)



In Article <5r229c$3ff@news-rocq.inria.fr>
harley@pauillac.inria.fr (Robert Harley) writes:
>Any truth to the following rumour from
>
>  http://www.infoworld.com/cgi-bin/displayNew.pl?/rcringe/rcringe.htm
>------------------------------------------------------------------------------
>Alpha waves
> ... [snipped]
>
>I haven't found any problems with Linux + gcc or Digital Unix +
>gcc/cc/cc.alt even with switches for intrinsic pow() on a
>beta compiler that some nice people at DEC sent me.
>So does anybody know examples where the bug occurs?  Is it on NT or what?

Apparently it was an error in one CPU/board, and disappeared after replacement
by DEC field service.
There is no such error in Alpha CPUs in general !

==>> See comp.risks  risks digests 19.24 and 19.25 !

-- 
Joseph "Sepp" Huber, Max-Planck-Institut Physik, Muenchen, Tel. +49 89 32354344
E-mail: huber@mppmu.mpg.de   |   http://wwwvms.mppmu.mpg.de/~huber



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-07-23  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-22  4:00 pow() bug? Robert Harley
1997-07-23  4:00 ` Joseph Huber
1997-07-23  4:00 ` Joshua Cope
1997-07-23  4:00   ` John Hascall

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