🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #26

division by zero

#26
From: utzoohenry
Date: Mon, 17 May 1982 18:53
15 lines
1215 bytes
We recently switched from software-simulated floating point (in the
kernel rather than the user program, but that's a detail) to real live
hardware floating point.  The conversion uncovered some very interesting
things.  The fpsim package is not smart enough to spot division by zero,
which the hardware croaks on every time.  To quote somebody from Bell
(Mike Lesk?) out of context:  "it's amazing how many programs divide by
zero".  If you are contemplating a similar conversion, get your users
to clean up their programs *now*.

The single biggest problem we encountered was little thrown-together
data-analysis programs which used fopen() and fscanf() and never bothered
to check the return codes to see if these succeeded.  Global data is
of course initialized to zero, and newly-grown stack is all zeros, and
the result is a high probability of divide-by-zero when hastily-written
programs don't get exactly the input they expect.
Technical Details
Message-ID: <bnews.utzoo.2054>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!henry
Newsgroups: net.bugs
Title: division by zero 
Article-I.D.: utzoo.2054
Posted: Mon May 17 18:53:35 1982
Received: Mon May 17 18:53:35 1982
Subject: division by zero
Date: Mon, 17 May 1982 18:53:35 +0000
Message-ID: <bnews.utzoo.2054>