From: Kern Sibbald Date: Mon, 11 Jan 2016 06:26:37 +0000 (+0100) Subject: More debug info when aborting X-Git-Tag: Release-7.4.0~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de24ab4370acd2d341052d535232511f0cd512fa;p=bacula%2Fbacula More debug info when aborting --- 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) {