8352946: SEGV_BND signal code of SIGSEGV missing from our signal-code table

Backport-of: bac2aa4445
This commit is contained in:
Matthias Baesken
2025-06-02 11:20:30 +00:00
committed by Vitaly Provodin
parent 5c62766ae0
commit 4b3786c031

View File

@@ -48,6 +48,9 @@
#include <signal.h>
#if !defined(SEGV_BNDERR)
#define SEGV_BNDERR 3
#endif
static const char* get_signal_name(int sig, char* out, size_t outlen);
@@ -987,6 +990,9 @@ static bool get_signal_code_description(const siginfo_t* si, enum_sigcode_desc_t
{ SIGFPE, FPE_FLTSUB, "FPE_FLTSUB", "Subscript out of range." },
{ SIGSEGV, SEGV_MAPERR, "SEGV_MAPERR", "Address not mapped to object." },
{ SIGSEGV, SEGV_ACCERR, "SEGV_ACCERR", "Invalid permissions for mapped object." },
#if defined(LINUX)
{ SIGSEGV, SEGV_BNDERR, "SEGV_BNDERR", "Failed address bound checks." },
#endif
#if defined(AIX)
// no explanation found what keyerr would be
{ SIGSEGV, SEGV_KEYERR, "SEGV_KEYERR", "key error" },