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