IBM Open XL Fortran runtime exceptions

This section explains operations that cause runtime exceptions in the form of SIGTRAP signals and SIGFPE signals.

The following operations cause runtime exceptions in the form of SIGTRAP signals, which typically result in a Trace/BPT trap message:
  • Fixed-point division by zero.
  • Character substring expression or array subscript out of bounds after you specified the -C option at compile time.
  • Lengths of character pointer and target do not match after you specified the -C option at compile time.
  • The flow of control in the program reaches a location for which a semantic error with severity of S was issued when the program was compiled.
  • Floating-point exceptions occur after you specify the appropriate -qflttrap suboptions at compile time.
  • Calls to the TRAP hardware-specific intrinsic procedure.
The following operations cause runtime exceptions in the form of SIGFPE signals:
  • Floating-point exceptions provided you specify the appropriate -qflttrap suboptions at compile time.

If you install one of the predefined IBM® Open XL Fortran exception handlers before the exception occurs, a diagnostic message and a traceback showing the offset within each routine called that led to the exception are written to standard error after the exception occurs. The file buffers are also flushed before the program ends. If you compile the program with the -g option, the traceback shows source line numbers in addition to the address offsets.

You can use a symbolic debugger to determine the cause of the exception.

Related information:
Also see the following topics: