From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2df135d26c58a1ca,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-12-11 03:59:58 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!csd4.csd.uwm.edu!stetzer From: stetzer@csd4.csd.uwm.edu (Frank Stetzer) Newsgroups: comp.sys.dec Subject: Alpha OSF/1 Fortran Problem Date: 10 Dec 1993 21:19:36 GMT Organization: Computing Services Division, University of Wisconsin - Milwaukee Distribution: world Message-ID: <2eap58INN2st@uwm.edu> NNTP-Posting-Host: 129.89.7.4 Originator: stetzer@csd4.csd.uwm.edu 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