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

  1. From: acmeyer@hpfcso.FC.HP.COM (Alan C. Meyer)
  2. Date: Fri, 24 Jul 1992 19:10:02 GMT
  3. Subject: Re: Inhibiting core dumps on HP7xx
  4. Message-ID: <7371168@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!hp-cv!hp-pcd!hpfcso!acmeyer
  7. Newsgroups: comp.sys.hp
  8. References: <1992Jul24.145006.20539@hubcap.clemson.edu>
  9. Lines: 38
  10.  
  11. In comp.sys.hp, elwin@gamma.phys.clemson.edu (Lawrence E. Brown) writes:
  12.  
  13. > I'm very tired of frequent dumps of 10-40Meg core files every
  14. > time I have a floating exception somewhere in my code (mostly
  15. > Fortran some C).  Is there any way to prevent core dumps in
  16. > HPUX8.0x on an HP700 series machine? 
  17.  
  18. Here is some information if you are using a Fortran main program.  By
  19. default, trapping for floating point exceptions are not enabled.  For
  20. example,
  21.  
  22.     X = 0.0
  23.     Y = 1 / X
  24.     PRINT *, Y
  25.  
  26. will print +INF and execution would continue.  A floating point trap
  27. can be enabled with various methods:
  28.  
  29.     * Compile your Fortran main with +T (this will enable other
  30.       traps beyond floating point exception).  If an FPE occurs,
  31.       you would see a procedure traceback, and no core file
  32.       created.  For example, the above program would produce:
  33.  
  34.         PROGRAM ABORTED :  IEEE divide by zero
  35.         PROCEDURE TRACEBACK:
  36.         ( 0)  0x00001e80   main__ + 0x70
  37.  
  38.     * Directly call HP-UX signal handling routines to enable
  39.       various signals.
  40.  
  41.     * Several other methods that will be available at "a future
  42.       release".
  43.  
  44. Alan Meyer
  45. Colorado Language Lab
  46. acmeyer@fc.hp.com
  47.  
  48. "These are my own opinions ..."
  49.