From de24ab4370acd2d341052d535232511f0cd512fa Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 11 Jan 2016 07:26:37 +0100 Subject: [PATCH] More debug info when aborting --- bacula/src/lib/message.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 07a75b3563..ead4ca0fd9 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -1327,6 +1327,7 @@ e_msg(const char *file, int line, int type, int level, const char *fmt,...) dispatch_message(NULL, type, 0, buf); if (type == M_ABORT) { + assert_msg = bstrdup(buf); char *p = 0; p[0] = 0; /* generate segmentation violation */ } @@ -1446,6 +1447,7 @@ Jmsg(JCR *jcr, int type, utime_t mtime, const char *fmt,...) char *p = 0; printf("Bacula forced SEG FAULT to obtain traceback.\n"); syslog(LOG_DAEMON|LOG_ERR, "Bacula forced SEG FAULT to obtain traceback.\n"); + assert_msg = bstrdup(rbuf); p[0] = 0; /* generate segmentation violation */ } if (type == M_ERROR_TERM) { -- 2.39.5