Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: wilson@dbit.com (John Wilson)
Subject: Re: Division by zero crashes on DEC should be avoidable!
Date: 1998/03/06	[thread overview]
Message-ID: <35002837.0@news.wizvax.net> (raw)
In-Reply-To: xzpd8g03t8k.fsf@grjottunagard.ifi.uio.no

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 978 bytes --]


In article <xzpd8g03t8k.fsf@grjottunagard.ifi.uio.no>,
Dag-Erling Coidan Sm�rgrav <dag-erli@ifi.uio.no> wrote:
>Honestly, you're complaining that your program is crashing when you're
>doing something illegal?
>
>The OS is *doing you a favor* by sending your program a SIGFPE, which
>causes it to abort and produce a coredump, which you can then use for
>debugging.  If the division by zero were silently ignored, you'd never
>know there had been an error, and you might actuallly rely on the
>(incorrect) result the program would produce.

Well, this depends on how you look at it.  IEEE math goes to a whole lot of
trouble to handle this kind of thing in a semi-useful way (the error isn't
silently ignored, it gets propogated precisely so that you *don't* end up
with random results the way you would on older proprietary FP systems),
it seems silly to let the C RTS defeat that since otherwise IEEE math is no
better than the chaos that preceeded it.

John Wilson
D Bit



  parent reply	other threads:[~1998-03-06  5:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-06  5:00 Division by zero crashes on DEC should be avoidable! Andrew Ellerton
1998-03-06  5:00 ` Dag-Erling Coidan Sm�rgrav
1998-03-06  5:00   ` Michael C. Grant
1998-03-06  5:00     ` Jeffrey J. Potoff
1998-03-09  5:00     ` Dan A. Mercer
1998-03-06  5:00   ` John Wilson [this message]
1998-03-06  5:00 ` mathog
1998-03-06  5:00   ` Michael C. Grant
1998-03-06  5:00     ` Pierre Asselin
1998-03-08  5:00       ` Michael C. Grant
1998-03-06  5:00 ` Daniel S. Riley
1998-03-06  5:00 ` Ron Natalie
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