TRAPNO(2) — Series 500 Only
NAME
trapno − hardware trap numbers
HP-UX COMPATIBILITY
Level: HP-UX/NON-STANDARD
Origin: HP
Remarks: The following description of hardware trap numbers is valid for the Series 500 only.
DESCRIPTION
The following trap numbers refer to hardware traps occurring on the HP 9000 Series 500 computers. Trapno values are reported by the err(1) command, and are passed to signal handlers (see signal(2)) when hardware traps cause signals to be sent to the current process.
The trapno value, trap name, and description are listed below for each possible trap condition. By convention, trap numbers are shown in octal.
VALUE NAME: DESCRIPTION
01 Bounds Violation: An address is outside the limits for the program, stack, or global data segments. [2]
02 Check Trap: A user value is outside a prescribed range. [1]
03 Breakpoint Trap: Debugging trap. [1]
04 Machine Instruction Trap: Used by the operating system.
05 String Trap: Illegal string operation or data. [2]
06 Unused.
07 Unused.
010 Reset: Used by the operating system.
011 Page Table Violation: The page table entry referenced is beyond the current length of the page table. [2]
012 Inconsistent Registers: An attempt was made to set up an inconsistent set of registers describing the global data segment, stack segment, or program segment. [2]
013 External Data Segment Bounds Violation: An address is outside the limits of an external data segment. [2]
014 System Error: Used by the operating system.
015 External Data Segment Pointer Violation: Illegal data segment pointer; probably a pointer between 0 and 524287 decimal. [2]
016 Pointer Conversion Violation: An attempt was made to form a data segment pointer with an offset which is too large for the type of pointer being used. [2]
017 External Program Pointer Violation: Illegal procedure pointer. [2]
020 Unimplemented Instruction: Attempt to execute an undefined instruction. [1]
021 STT Violation: Illegal procedure pointer. [2]
022 CST Violation: Illegal procedure pointer. [2]
023 DST Violation: Illegal segment number in an external data segment pointer. [2]
024 Stack Overflow: The operating system normally handles this trap by extending the stack segment.
025 Stack Underflow: An attempt to pop a word from the local stack when the local stack is empty. [2]
026 Privileged Mode Violation: An attempt to execute a privileged instruction or return to a privileged procedure while in unprivileged mode. [2]
027 Privileged Mode Data Violation: An attempt to reference a privileged data segment while in unprivileged mode. [2]
030 Unexpected Pointer Type: An instruction has encountered a pointer type which it cannot handle. [2]
031 User Traps: Integer divide by zero. [1]
032 Illegal Decimal Number: A decimal math instruction has been supplied an illegal operand. [2]
033 Exponent Size Trap: Exponent too large during a number conversion instruction. [2]
034 Floating Point Operand Trap: Attempt to operate on illegal numbers, divide by zero, or convert a 64-bit number to a 32-bit number which cannot accommodate the exponent. [1]
035 Floating Point Result Trap: Floating point overflow; also caused by an explicit request to trap on an inexact result. [1]
036 Unexpected External Data Segment Type: A paged external data segment was encountered when an unpaged segment was expected, or vice versa. [2]
037 Absent Code Segment: Handled by the operating system.
040 Absent Page: Handled by the operating system.
041 Uncallable Procedure: Attempt to call an uncallable privileged procedure while in unprivileged mode. [2]
042 Absent Data Segment: Handled by the operating system.
043 Absent Page Table: Handled by the operating system.
044 Start-of-Line: Debugging trap. [1]
045 Variable Trace: Debugging trap. [1]
046 Start-of-Procedure: Debugging trap. [1]
047 End-of-Procedure: Debugging trap. [1]
050 Start-of-Subroutine: Debugging trap. [1]
051 End-of-Subroutine: Debugging trap. [1]
052 Code Segment Violation: Attempt to modify a code segment. [2]
053 Branch Violation: Illegal branch instruction. [2]
054 Message Trap: Used internally by the operating system.
055 Instruction Sequencing Bounds Violation: Program destination is out of bounds; probably a stack marker has been incorrectly modified.
056 Start-of-Line-Check Trap: Debugging trap. [1]
057 Data Segment Write Violation: Attempt to modify a write-protected data segment. [2]
060 System semaphore trap on up; relative pointer. [1]
061 System semaphore trap on up; absolute pointer. [1]
062 System semaphore trap on down; relative pointer. [1]
063 System semaphore trap on down; absolute pointer. [1]
064 Invalid internal math transformation. [1]
The footnotes are as follows:
[1]: If the program returns from the trap (signal) handler, execution will resume with the next instruction.
[2]: If the program returns from the trap (signal) handler, execution will resume at the current instruction.
SEE ALSO
WARNING
Trapno is intended for diagnostic purposes only. Values and meanings may change in future releases of HP-UX.
Hewlett-Packard — last mod. May 11, 2021