Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8259539: JDK-8255711 broke trap messages
Reviewed-by: lfoltan, dholmes
  • Loading branch information
tstuefe committed Jan 12, 2021
1 parent 4697cfa commit ac2dee567b6737000a3590c0b7ef69f5c351fa84
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
@@ -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) {
@@ -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

@@ -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) {

0 comments on commit ac2dee5

Please sign in to comment.