HP Guardian Errors Manual page 273

Procedure errors and messages manual
Table of Contents

Advertisement

Effect For trap 1, process control passes to the Debug or Inspect debugger or to the trap handler
designated by a call to the ARMTRAP procedure, or else the process is abended. See
Handling" (page 271)
For the signal SIGILL, the default or specified signal handling occurs. See
(page 272)
for further information.
Recovery Check your application program.
SIGFPE, Trap 2
Cause Overflow trapping is enabled, and an arithmetic overflow occurred. In the TNS environment,
overflow traps are enabled when the T bit (ENV.<8>) is set to 1. In TNS/R native mode, overflow
checking is controlled statically at compile time. Arithmetic overflow occurs for one of the following
reasons:
The result of a signed arithmetic operation could not be represented with the number of bits
available for the particular data type.
A division operation with a divisor of zero was attempted, or unsigned integer division resulted
in a quotient that exceeded the word size.
The control variable of a CASE expression, or a CASE statement with no OTHERWISE label,
did not match any of the defined cases.
Effect For trap 2, process control passes to the Debug or Inspect debugger or to the trap handler
designated by a call to the ARMTRAP procedure, or else the process is abended. See
Handling" (page 271)
For the signal SIGFPE, the default or specified signal handling occurs. See
(page 272)
for further information.
Recovery If the overflow occurred because of an erroneous computation, correct the program.
If overflow is legitimate at this point, either use unsigned arithmetic (for 16-bit values) or disable
overflow traps during the computation. One example of when overflow is sometimes legitimate is
an address computation.
For trap 2, the program can use a trap handler to detect the overflow and recover. The recovery
action can be either to resume the computation or to transfer control to a recovery point. However,
resuming the computation at the point of the trap is not an option if the trap occurred in an
operating-system procedure.
Note that before returning to the program at the trap point or elsewhere, the trap handler must
clear the V bit (bit 10) in the trap handler's copy of the ENV register at L[- 1 ]. Otherwise, the process
will abend.
A signal handler cannot resume the process at the site of the overflow.
SIGSTK, Trap 3
for further information.
Arithmetic overflow
for further information.
Stack overflow
"Trap
"Signal Handling"
"Trap
"Signal Handling"
Signals and Trap Numbers 273

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Guardian

Table of Contents