🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1407

Re: Division by 0 crashes OS2/2.0

#1407
From: Dov Bai-MSI Visitor
Date: Fri, 04 Sep 1992 17:21
33 lines
1687 bytes
In article <GHENNIGA.92Sep4094517@ampere.ampere> ghenniga@NMSU.Edu writes:
>
>I tried a simple program to test this out:
>
>	PROGRAM TEST
>	X1 = 10.0
>	X2 = 2.0
>	Y1 = X1-5.0*X2
>	X3 = X1/Y1
>	STOP
>	END
>I ran it and it gave me the following on the command line:
>
>	run-time error M6103: MATH
>- floating-point error: divide by 0
>
>This is with MS Fortran 5.1 on a 486/33...So it appears that the problem is
>either specific to your hardware or MS Fortran 5.0. Again, this was with the
>protected mode libraries for OS/2 1.3 running under OS/2 2.0.

Thanks for trying it. I tried the same program and it crashed 2.0
but 1.3 survives - so it seems to be specific to my hardware. I think
I will report it to IBM. It seems weird that a simple program crashes
2.0 but not DOS.

>
>Gary Hennigan
>+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=++=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
>+= PhD Student, Computational Electromagnetics  | Member: Utilitarian  +=
>+= New Mexico State University                  | .signature club      +=
>+= email: ghenniga@NMSU.Edu                                            +=
>
>
Technical Details
Message-ID: <1992Sep4.172138.12818@tc.cornell.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!batcomputer!msiadmin.cit.cornell.edu!bai
References: <92Sep03.032755.21494@acs.ucalgary.ca> <1992Sep3.131306.13751@tc.cornell.edu> <GHENNIGA.92Sep4094517@ampere.ampere>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!batcomputer!msiadmin.cit.cornell.edu!bai
From: bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor)
Subject: Re: Division by 0 crashes OS2/2.0
Message-ID: <1992Sep4.172138.12818@tc.cornell.edu>
Sender: news@tc.cornell.edu
Nntp-Posting-Host: msiadmin.cit.cornell.edu
Organization: /usr/local/lib/news/organization
References: <92Sep03.032755.21494@acs.ucalgary.ca> <1992Sep3.131306.13751@tc.cornell.edu> <GHENNIGA.92Sep4094517@ampere.ampere>
Date: Fri, 4 Sep 1992 17:21:38 GMT
Lines: 35