Fortran User's Guide

Signal Handler Error Messages

Before beginning execution of a program, the Fortran library sets up a signal handler (sigdie) for signals that can cause termination of the program. sigdie prints a message that describes the signal, flushes any pending output, and generates a core image and a traceback.

Presently, the only arithmetic exception that produces an error message is the INTEGER*2 division with a denominator of zero. All other arithmetic exceptions are ignored.

A signal handler error example follows, where the subroutine SUB tries to access parameters that are not passed to it:


	CALL SUB() 
	END 
	SUBROUTINE SUB(I,J,K) 
	I=J+K 
	RETURN 
	END

The following error message results:


*** Segmentation violation
Illegal instruction (core dumped)