8259539: JDK-8255711 broke trap messages

Reviewed-by: lfoltan, dholmes
This commit is contained in:
Thomas Stuefe 2021-01-12 11:41:29 +00:00
parent 4697cfa4b0
commit ac2dee567b
3 changed files with 23 additions and 3 deletions

View File

@ -314,7 +314,13 @@ bool PosixSignals::pd_hotspot_signal_handler(int sig, siginfo_t* info,
tty->print_cr("trap: %s: %s (SIGTRAP, stop type %d)", msg, detail_msg, stop_type);
}
return false; // Fatal error
// End life with a fatal error, message and detail message and the context.
// Note: no need to do any post-processing here (e.g. signal chaining)
va_list va_dummy;
VMError::report_and_die(thread, uc, NULL, 0, msg, detail_msg, va_dummy);
va_end(va_dummy);
ShouldNotReachHere();
}
else if (sig == SIGBUS) {

View File

@ -240,7 +240,14 @@ bool PosixSignals::pd_hotspot_signal_handler(int sig, siginfo_t* info,
tty->print_cr("trap: %s: (SIGILL)", msg);
}
return false; // Fatal error
// End life with a fatal error, message and detail message and the context.
// Note: no need to do any post-processing here (e.g. signal chaining)
va_list va_dummy;
VMError::report_and_die(thread, uc, NULL, 0, msg, detail_msg, va_dummy);
va_end(va_dummy);
ShouldNotReachHere();
}
else

View File

@ -330,7 +330,14 @@ bool PosixSignals::pd_hotspot_signal_handler(int sig, siginfo_t* info,
tty->print_cr("trap: %s: %s (SIGTRAP, stop type %d)", msg, detail_msg, stop_type);
}
return false; // Fatal error
// End life with a fatal error, message and detail message and the context.
// Note: no need to do any post-processing here (e.g. signal chaining)
va_list va_dummy;
VMError::report_and_die(thread, uc, NULL, 0, msg, detail_msg, va_dummy);
va_end(va_dummy);
ShouldNotReachHere();
}
else if (sig == SIGBUS) {