home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5733 < prev    next >
Encoding:
Text File  |  1992-09-15  |  2.1 KB  |  45 lines

  1. Newsgroups: comp.unix.bsd
  2. 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
  3. From: terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert)
  4. Subject: Re: Program dies with FP Exception
  5. Message-ID: <BuMMFx.Isq@Novell.COM>
  6. Sender: usenet@Novell.COM (Usenet News)
  7. Nntp-Posting-Host: thisbe.eng.sandy.novell.com
  8. Organization: Novell NPD -- Sandy, UT
  9. References: <STARK.92Sep13002650@sbstark.cs.sunysb.edu> <1992Sep13.083846.6134@fcom.cc.utah.edu> <1992Sep14.151555.12300@cs.few.eur.nl>
  10. Date: Tue, 15 Sep 1992 15:45:32 GMT
  11. Lines: 32
  12.  
  13. In article <1992Sep14.151555.12300@cs.few.eur.nl> pk@cs.eur.nl writes:
  14. >In <1992Sep13.083846.6134@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
  15. >
  16. >>In article <STARK.92Sep13002650@sbstark.cs.sunysb.edu> stark@cs.sunysb.edu (Gene Stark) writes:
  17. >>>Here's a tough one I've been trying to track down -- maybe somebody out there
  18. >>>who knows more can guess what is going on.
  19. >>>
  20. >[...]
  21. >>First of all, like all other signals, the SIGFPE gets delivered to a process
  22. >>as a result of the sigtrampoline code.  The *only* way you get a signal is
  23. >>on return from a system call.  The problem is that there appears to be no
  24. >
  25. >.. or you get your signal immediately, provided you have a handler set, or
  26. >you get it on return from the interrupt (trap), provided the AST (Async.
  27. >System Trap) stuff is implemented which is then invoked from `signotify()'.
  28.  
  29. This is, of course, correct.  However, very few programs that trap SIGFPE
  30. will fail as a reult of getting one.  Instead, the handler will be called,
  31. and the program will continue executing.  The other two delivery mechanisms
  32. depend on having a handler registered.
  33.  
  34. So register a handler and dump core in the handler to make it act "correctly"
  35. -- or fix the exception and make it act as expected.
  36.  
  37.  
  38.                     Terry Lambert
  39.                     terry_lambert@gateway.novell.com
  40.                     terry@icarus.weber.edu
  41.  
  42. ---
  43. Disclaimer:  Any opinions in this posting are my own and not those of
  44. my present or previous employers.
  45.