Bug in DOS Windows

E. G. Bauman bauman at shell.com
Wed Jul 18 07:41:48 AEST 1990


I found a serious bug in DOS Windows on a SPARCstation.  Compile the
following FORTRAN program with Microsoft FORTRAN version 5.0.

	do 10 i=-5,5
	   x = 10.0 ** i
	   write(6,*)i,x
10	continue
	end

Then run it under DOS Windows 1.0:

H:\>exp
         -5   1#NAN........
run-time error M6111: MATH
- floating-point error: stack underflow


H:\> 

This program runs just fine on a PS/2 model 80 without the need for
recompilation.  Moral of the story - beware when doing floating point math
under DOS Windows on a SPARCstation.

	Evan G. Bauman
	Shell Development Company - Westhollow Research Center
	PO Box 1380; Houston, TX 77251-1380
	bauman at shell.com   or for the uucp types: {sun,bcm}!shell!bauman



More information about the Comp.sys.sun mailing list