From: stetzer@csd4.csd.uwm.edu (Frank Stetzer)
Subject: Alpha OSF/1 Fortran Problem
Date: 10 Dec 1993 21:19:36 GMT [thread overview]
Message-ID: <2eap58INN2st@uwm.edu> (raw)
We are having trouble with fortran -generated executables not
detecting underflow (subnormal) values during execution. This
seems to affect double precision reals. Once a variable is
assigned a subnormal value, the program dumps core the first
time the variable is accessed. The two programs below
illustrate the problem. It does not seem to be affected by
optimization, debugger, or other compiler options.
This is a DEC 3000 running OSF/1 V1.3A (Rev 112); f77 V3.3.
We would appreciate any leads to solving this problem.
==========================================================================
Frank Stetzer stetzer@csd4.csd.uwm.edu
Statistical Software Coordinator P.O. Box 413
Computing Services Division Milwaukee, WI 53201
University of Wisconsin - Milwaukee (414)229-4571
c subnormal value assigned by a read
character*10 data
real*8 x
data='-2.20d-308'
read(data,'(d10.3)') x
print *,'OK so far=',x
print *,'program dies here x+1=',x+1.0d0
end
c subnormal value assigned by subroutine call
real*8 x
call f(x)
print *,'x=',x
print *,'program dies here x+1=',x+1.0d0
end
subroutine f(a)
real a
a=1.0
end
next reply other threads:[~1993-12-10 21:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-12-10 21:19 Frank Stetzer [this message]
1993-12-13 15:08 ` Alpha OSF/1 Fortran Problem Steve Lionel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox