Skip to content

Commit a49d1a0

Browse files
committed
8352946: SEGV_BND signal code of SIGSEGV missing from our signal-code table
Backport-of: bac2aa44454982684e06854add1dbbb806fba363
1 parent 2db3100 commit a49d1a0

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
@@ -50,6 +50,9 @@
5050

5151
#include <signal.h>
5252

53+
#if !defined(SEGV_BNDERR)
54+
#define SEGV_BNDERR 3
55+
#endif
5356

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

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

0 commit comments

Comments
 (0)