HP Fortran Programmer's Guide (March 2010)

Debugging
Handling runtime exceptions
Chapter 4 129
If you suspect that an out-of-bounds array reference is causing the segmentation violation,
you can use the +check=all option instead of the +fp_exception option. When compiled
with the +check=all option, a program that attempts to reference an array element that is
outside the declared array boundary will abort with an error message that gives the line
number of where the reference was detected.
The +check=all also performs runtime checks for out-of-bounds substrings and for integer
overflow; see “Calling a trap procedure” on page 132. The +check option is fully described
in the HP Fortran Programmer’s Reference.
Bad argument exception
This exception occurs when a bad argument (for example, an out-of-range argument) is passed
to a kernel system routine. This exception can also occur in programs that make explicit calls
to the kernel threads library, /usr/lib/libpthread.sl, and pass bad arguments.