🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: vmsnet.alpha
Article #3

problems with SIGFPE signal handling

#3
From: Craig Chamberlain
Date: Mon, 21 Dec 1992 21:57
38 lines
1951 bytes
If anybody can explain some problems I'm having with integer and
floating point signal handling on the Alpha, I would really appreciate
it.


 1. I can't get integer division by zero handling to work at all
    on the Alpha.

    integer division by zero results
    DECstation: sig is 5 (SIGTRAP), code is 7
           VAX: sig is 8 (SIGFPE), code is 2 (FPE_INTDIV_TRAP)
         Alpha: the signal isn't handled, and the program fatals with
                SYSTEM-F-INTDIV, arithmetic trap, integer divide by zero


 2. Floating point division by zero is signaled as an overflow trap.

    floating division by zero results
    DECstation: sig is 8 (SIGFPE), code is 0 (unknown)
           VAX: sig is 8 (SIGFPE), code is 9 (FPE_FLTDIV_FAULT)
         Alpha: sig is 8 (SIGFPE), code is 3 (FPE_FLTOVF_TRAP)


 3. Floating point overflow is signaled as an underflow trap.

    floating overflow results
    DECstation: sig is 8 (SIGFPE), code is 0 (unknown)
           VAX: sig is 8 (SIGFPE), code is 8 (FPE_FLTOVF_FAULT)
         Alpha: sig is 8 (SIGFPE), code is 5 (FPE_FLTUND_TRAP)


I am using signal.h and the signal function, /standard=vaxc, and
/float=ieee_float (floating point mode doesn't seem to make any
difference).
-- 
(My opinions do not necessarily represent those of my employer.)
Craig Chamberlain, Software Engineer, Applicon Schlumberger
Ann Arbor, Michigan  chamber@ann-arbor.applicon.slb.com  (313) 995-6310
Technical Details
Message-ID: <1992Dec21.215737.13814@ann-arbor.applicon.slb.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!geraldo.cc.utexas.edu!slcs.slb.com!aa.cad.slb.com!chamber

Show Full Headers
Complete Article Headers
Newsgroups: vmsnet.alpha
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!geraldo.cc.utexas.edu!slcs.slb.com!aa.cad.slb.com!chamber
From: chamber@mailhost.aa.cad.slb.com (Craig Chamberlain)
Subject: problems with SIGFPE signal handling
Message-ID: <1992Dec21.215737.13814@ann-arbor.applicon.slb.com>
Sender: usenet@ann-arbor.applicon.slb.com (Usenet Administrator)
Organization: Schlumberger CAD/CAM at Ann Arbor, MI
Date: Mon, 21 Dec 1992 21:57:37 GMT
Lines: 38