home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!spool.mu.edu!caen!hellgate.utah.edu!fcom.cc.utah.edu!park.uvcc.edu!ns.novell.com!thisbe.Eng.Sandy.Novell.COM!terry
- From: terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert)
- Subject: Re: Program dies with FP Exception
- Message-ID: <BuMMFx.Isq@Novell.COM>
- Sender: usenet@Novell.COM (Usenet News)
- Nntp-Posting-Host: thisbe.eng.sandy.novell.com
- Organization: Novell NPD -- Sandy, UT
- References: <STARK.92Sep13002650@sbstark.cs.sunysb.edu> <1992Sep13.083846.6134@fcom.cc.utah.edu> <1992Sep14.151555.12300@cs.few.eur.nl>
- Date: Tue, 15 Sep 1992 15:45:32 GMT
- Lines: 32
-
- In article <1992Sep14.151555.12300@cs.few.eur.nl> pk@cs.eur.nl writes:
- >In <1992Sep13.083846.6134@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
- >
- >>In article <STARK.92Sep13002650@sbstark.cs.sunysb.edu> stark@cs.sunysb.edu (Gene Stark) writes:
- >>>Here's a tough one I've been trying to track down -- maybe somebody out there
- >>>who knows more can guess what is going on.
- >>>
- >[...]
- >>First of all, like all other signals, the SIGFPE gets delivered to a process
- >>as a result of the sigtrampoline code. The *only* way you get a signal is
- >>on return from a system call. The problem is that there appears to be no
- >
- >.. or you get your signal immediately, provided you have a handler set, or
- >you get it on return from the interrupt (trap), provided the AST (Async.
- >System Trap) stuff is implemented which is then invoked from `signotify()'.
-
- This is, of course, correct. However, very few programs that trap SIGFPE
- will fail as a reult of getting one. Instead, the handler will be called,
- and the program will continue executing. The other two delivery mechanisms
- depend on having a handler registered.
-
- So register a handler and dump core in the handler to make it act "correctly"
- -- or fix the exception and make it act as expected.
-
-
- Terry Lambert
- terry_lambert@gateway.novell.com
- terry@icarus.weber.edu
-
- ---
- Disclaimer: Any opinions in this posting are my own and not those of
- my present or previous employers.
-