Skip to content

Commit bac2aa4

Browse files
committed
8352946: SEGV_BND signal code of SIGSEGV missing from our signal-code table
Reviewed-by: mdoerr, dholmes
1 parent cfc648b commit bac2aa4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hotspot/os/posix/signals_posix.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949

5050
#include <signal.h>
5151

52+
#if !defined(SEGV_BNDERR)
53+
#define SEGV_BNDERR 3
54+
#endif
5255

5356
static const char* get_signal_name(int sig, char* out, size_t outlen);
5457

@@ -969,6 +972,9 @@ static bool get_signal_code_description(const siginfo_t* si, enum_sigcode_desc_t
969972
{ SIGFPE, FPE_FLTSUB, "FPE_FLTSUB", "Subscript out of range." },
970973
{ SIGSEGV, SEGV_MAPERR, "SEGV_MAPERR", "Address not mapped to object." },
971974
{ SIGSEGV, SEGV_ACCERR, "SEGV_ACCERR", "Invalid permissions for mapped object." },
975+
#if defined(LINUX)
976+
{ SIGSEGV, SEGV_BNDERR, "SEGV_BNDERR", "Failed address bound checks." },
977+
#endif
972978
#if defined(AIX)
973979
// no explanation found what keyerr would be
974980
{ SIGSEGV, SEGV_KEYERR, "SEGV_KEYERR", "key error" },

0 commit comments

Comments
 (0)