72 ,
struct sigcontext *sc
84 static struct sigaction old_SIGEMT_action;
98 fprintf(stderr,
">>WARNING: Could not reset SIGBUS handler.\n");
102 if( 0 != sigaction(SIGEMT,&old_SIGEMT_action,NULL) )
104 fprintf(stderr,
">>WARNING: Could not reset SIGEMT handler.\n");
109 fprintf(stderr,
">>WARNING: Could not reset SIGFPE handler.\n");
113 fprintf(stderr,
">>WARNING: Could not reset SIGILL handler.\n");
117 fprintf(stderr,
">>WARNING: Could not reset SIGINT handler.\n");
121 fprintf(stderr,
">>WARNING: Could not reset SIGABRT handler.\n");
125 fprintf(stderr,
">>WARNING: Could not reset SIGSEGV handler.\n");
127 #if defined (SIGTRAP) 130 fprintf(stderr,
">>WARNING: Could not reset SIGTRAP handler.\n");
137 #if (defined (unix) || defined (_AIX)) && !defined(__MINGW32__) 141 fprintf(stderr,
">>WARNING: Could not set SIGBUS handler.\n");
147 fprintf(stderr,
">>WARNING: could not set SIGEMT handler.\n");
152 fprintf(stderr,
">>WARNING: could not set SIGFPE handler.\n");
156 fprintf(stderr,
">>WARNING: could not set SIGILL handler.\n");
160 fprintf(stderr,
">>WARNING: could not set SIGINT handler.\n");
164 fprintf(stderr,
">>WARNING: could not set SIGABRT handler.\n");
168 fprintf(stderr,
">>WARNING: could not set SIGSEGV handler.\n");
170 #if defined (SIGTRAP) 173 fprintf(stderr,
">>WARNING: could not set SIGTRAP handler.\n");
187 ,
struct sigcontext *sc
196 xl__sigdump(sig,code,sc);
203 fprintf(stderr,
">>FATAL ERROR: Bus error occurred.\n");
209 fprintf(stderr,
">>FATAL ERROR: EMT occurred.\n");
214 fprintf(stderr,
">>FATAL ERROR: Floating point execption occurred.\n");
218 fprintf(stderr,
">>FATAL ERROR: Illegal instruction occurred.\n");
222 fprintf(stderr,
">>FATAL ERROR: Interrupt occurred.\n");
226 fprintf(stderr,
">>FATAL ERROR: Abort occurred.\n");
230 fprintf(stderr,
">>FATAL ERROR: Segment violation occurred.\n");
232 #if defined (SIGTRAP) 235 fprintf(stderr,
">>FATAL ERROR: Trace trap occurred.\n");
240 fprintf(stderr,
">>FATAL ERROR: Unknown signal %d occurred.\n" 267 fprintf(stderr,
">>WARNING: sigemptyset failed in CMISSInitFatalHandler.\n");
274 sigaction(SIGEMT,NULL,&old_SIGEMT_action);
281 #if defined (SIGTRAP) static struct sigaction old_SIGILL_action
static struct sigaction old_SIGSEGV_action
static struct sigaction old_SIGTRAP_action
static struct sigaction old_SIGABRT_action
static struct sigaction old_SIGBUS_action
void cmfe_ResetFatalHandler(void)
void cmfe_InitFatalHandler(void)
static void cmfe_FatalHandler(int sig, int code)
void cmfe_SetFatalHandler(void)
static struct sigaction old_SIGFPE_action
static struct sigaction old_SIGINT_action
static struct sigaction fatal_sigaction