]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Turn on heap reporting in Dir with zero debug level.
authorKern Sibbald <kern@sibbald.com>
Wed, 11 Oct 2006 16:50:41 +0000 (16:50 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 11 Oct 2006 16:50:41 +0000 (16:50 +0000)
kes  Send a message to the sys log when Bacula forces a SEG FAULT, and
     send the same message to stdout.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3546 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_status.c
bacula/src/lib/message.c
bacula/src/version.h
bacula/technotes-1.39

index 596d7426591665766f02adf0d921f80c122728ff..16b82cba5b5e462ac85deb1fb56ac864465a7cf3 100644 (file)
@@ -237,6 +237,7 @@ static void do_all_status(UAContext *ua)
 static void do_director_status(UAContext *ua)
 {
    char dt[MAX_TIME_LENGTH];
+   char b1[35], b2[35], b3[35], b4[35];
 
    bsendmsg(ua, _("%s Version: %s (%s) %s %s %s\n"), my_name, VERSION, BDATE,
             HOST_OS, DISTNAME, DISTVER);
@@ -248,14 +249,12 @@ static void do_director_status(UAContext *ua)
       bsendmsg(ua, _("Daemon started %s, %d Jobs run since started.\n"),
         dt, num_jobs_run);
    }
-   if (debug_level > 0) {
-      char b1[35], b2[35], b3[35], b4[35];
-      bsendmsg(ua, _(" Heap: bytes=%s max_bytes=%s bufs=%s max_bufs=%s\n"),
+   bsendmsg(ua, _(" Heap: bytes=%s max_bytes=%s bufs=%s max_bufs=%s\n"),
             edit_uint64_with_commas(sm_bytes, b1),
             edit_uint64_with_commas(sm_max_bytes, b2),
             edit_uint64_with_commas(sm_buffers, b3),
             edit_uint64_with_commas(sm_max_buffers, b4));
-   }
+
    /*
     * List scheduled Jobs
     */
index 03074b5487a31987a93d845781f2d11c63dbd346..15a939590e8423aab2ad89ed8ef058f9b4e88b5c 100755 (executable)
@@ -1099,6 +1099,8 @@ Jmsg(JCR *jcr, int type, time_t mtime, const char *fmt,...)
 
     if (type == M_ABORT){
        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");
        p[0] = 0;                      /* generate segmentation violation */
     }
     if (type == M_ERROR_TERM) {
index 502170bc0475911c97a035a6295fad6332df5e0a..e2a49f95fce46f04091c66fe612ba3ce9da150c3 100644 (file)
@@ -4,8 +4,8 @@
 
 #undef  VERSION
 #define VERSION "1.39.25"
-#define BDATE   "07 October 2006"
-#define LSMDATE "07Oct06"
+#define BDATE   "08 October 2006"
+#define LSMDATE "08Oct06"
 #define BYEAR "2006"       /* year for copyright messages in progs */
 
 /* Debug flags */
index 70fc1ef297671b665155605812bf4f64c5303c7c..bd4d580ac48b87c7085e52fdc0b1bfbdb707cc4f 100644 (file)
@@ -1,6 +1,10 @@
               Technical notes on version 1.39  
 
 General:
+08Oct06
+kes  Turn on heap reporting in Dir with zero debug level.
+kes  Send a message to the sys log when Bacula forces a SEG FAULT, and
+     send the same message to stdout.
 07Oct06
 kes  Begin work on new GUI "console".
 kes  Make configure look in non-standard MySQL library directory