diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2022-02-07 20:43:52 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2022-02-07 20:43:52 +0000 |
commit | 0564a75af310b6fe44bd56f181bc2542fbccc326 (patch) | |
tree | 70306639d57d3a11bea24fbc084fc29495100ba8 /src | |
parent | 8df47dca3671434f40108b0eef16086c7cee70bc (diff) |
log process_info on SEGV
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/src/exim.c b/src/src/exim.c index 8fff9f6a3..b9b1c9a7d 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -279,6 +279,8 @@ if (US info->si_addr < US 4096) log_write(0, LOG_MAIN|LOG_PANIC, "SIGSEGV (null pointer indirection)"); else log_write(0, LOG_MAIN|LOG_PANIC, "SIGSEGV (maybe attempt to write to immutable memory)"); +if (process_info_len > 0) + log_write(0, LOG_MAIN|LOG_PANIC, "SIGSEGV (%.*s)", process_info_len, process_info); signal(SIGSEGV, SIG_DFL); kill(getpid(), sig); } @@ -287,6 +289,8 @@ kill(getpid(), sig); segv_handler(int sig) { log_write(0, LOG_MAIN|LOG_PANIC, "SIGSEGV (maybe attempt to write to immutable memory)"); +if (process_info_len > 0) + log_write(0, LOG_MAIN|LOG_PANIC, "SIGSEGV (%.*s)", process_info_len, process_info); signal(SIGSEGV, SIG_DFL); kill(getpid(), sig); } |