home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / hp / 8772 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.3 KB

  1. Path: sparky!uunet!wupost!darwin.sura.net!convex!constellation!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!als
  2. From: als@bohra.cpg.oz.au (Anthony Shipman)
  3. Newsgroups: comp.sys.hp
  4. Subject: signal behaviour differs between hp9000 machines
  5. Message-ID: <1992Jul30.085325.26753@bohra.cpg.oz.au>
  6. Date: 30 Jul 92 08:53:25 GMT
  7. Organization: Computer Power Software
  8. Lines: 20
  9.  
  10. I was exploring floating point exceptions the other day and found that
  11. the HP9000/800 and HP9000/400 have a serious difference in the way signal
  12. handlers work.
  13.  
  14. The test program does a divide by 0.  The signal handler prints a message,
  15. reenables the signal handler and returns to the program.
  16.  
  17. On the /400 this works fine.  The program continues with the next instruction.
  18. On the /800 the divide instruction is restarted and another exception is
  19. raised, resulting in an infinite loop.
  20.  
  21. This can make programs that manipulate signals non-portable even within HP-UX.
  22. Is there any standard for this behaviour?
  23.  
  24.  
  25. -- 
  26. Anthony Shipman                 "You've got to be taught before it's too late,
  27. CP Software Export Pty Ltd,      Before you are six or seven or eight,
  28. 19 Cato St., East Hawthorn,      To hate all the people your relatives hate,
  29. Melbourne, Australia, 3121       You've got to be carefully taught."  R&H
  30.