Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8259539: JDK-8255711 broke trap messages
Browse files Browse the repository at this point in the history
Reviewed-by: lfoltan, dholmes
  • Loading branch information
tstuefe committed Jan 12, 2021
1 parent 4697cfa commit ac2dee5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/hotspot/os_cpu/aix_ppc/os_aix_ppc.cpp
Expand Up @@ -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) {
Expand Down
9 changes: 8 additions & 1 deletion src/hotspot/os_cpu/linux_aarch64/os_linux_aarch64.cpp
Expand Up @@ -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

Expand Down
9 changes: 8 additions & 1 deletion src/hotspot/os_cpu/linux_ppc/os_linux_ppc.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit ac2dee5

Please sign in to comment.