X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/8df47dca3671434f40108b0eef16086c7cee70bc..0564a75af310b6fe44bd56f181bc2542fbccc326:/src/src/exim.c 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); }