From 116a618ea0ef260ee6c0f34afb8bd86c7d7500e5 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 24 Jul 2008 15:02:06 +0000 Subject: [PATCH] Set MALLOC_CHECK_=0 in environment before starting Bacula to turn off glibc checks that prevent getting good dumps. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7430 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/platforms/redhat/bacula-dir.in | 6 ++++++ bacula/platforms/redhat/bacula-fd.in | 6 ++++++ bacula/platforms/redhat/bacula-sd.in | 6 ++++++ bacula/platforms/ubuntu/bacula-dir.in | 6 ++++++ bacula/platforms/ubuntu/bacula-fd.in | 6 ++++++ bacula/platforms/ubuntu/bacula-sd.in | 6 ++++++ bacula/scripts/bacula.in | 5 +++++ bacula/technotes-2.5 | 2 ++ 8 files changed, 43 insertions(+) diff --git a/bacula/platforms/redhat/bacula-dir.in b/bacula/platforms/redhat/bacula-dir.in index 8d2e1f2f8a..43e5111689 100755 --- a/bacula/platforms/redhat/bacula-dir.in +++ b/bacula/platforms/redhat/bacula-dir.in @@ -25,6 +25,12 @@ fi # pull in any user defined DIR_DIR_OPTIONS, DIR_USER, or DIR_GROUP [ -f /etc/sysconfig/bacula ] && . /etc/sysconfig/bacula +# +# Disable Glibc malloc checks, it doesn't help and it keeps from getting +# good dumps +MALLOC_CHECK_=0 +export MALLOC_CHECK_ + RETVAL=0 case "$1" in start) diff --git a/bacula/platforms/redhat/bacula-fd.in b/bacula/platforms/redhat/bacula-fd.in index 4919337f8b..3f1b55c1c6 100755 --- a/bacula/platforms/redhat/bacula-fd.in +++ b/bacula/platforms/redhat/bacula-fd.in @@ -25,6 +25,12 @@ fi # pull in any user defined FD_OPTIONS, FD_USER, FD_GROUP [ -f /etc/sysconfig/bacula ] && . /etc/sysconfig/bacula +# +# Disable Glibc malloc checks, it doesn't help and it keeps from getting +# good dumps +MALLOC_CHECK_=0 +export MALLOC_CHECK_ + RETVAL=0 case "$1" in start) diff --git a/bacula/platforms/redhat/bacula-sd.in b/bacula/platforms/redhat/bacula-sd.in index 25edb43e2a..bf434887a9 100755 --- a/bacula/platforms/redhat/bacula-sd.in +++ b/bacula/platforms/redhat/bacula-sd.in @@ -25,6 +25,12 @@ fi # pull in any user defined SD_OPTIONS, SD_USER, or SD_GROUP [ -f /etc/sysconfig/bacula ] && . /etc/sysconfig/bacula +# +# Disable Glibc malloc checks, it doesn't help and it keeps from getting +# good dumps +MALLOC_CHECK_=0 +export MALLOC_CHECK_ + RETVAL=0 case "$1" in start) diff --git a/bacula/platforms/ubuntu/bacula-dir.in b/bacula/platforms/ubuntu/bacula-dir.in index 19a342ddef..d1ce5a1fc9 100644 --- a/bacula/platforms/ubuntu/bacula-dir.in +++ b/bacula/platforms/ubuntu/bacula-dir.in @@ -21,6 +21,12 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin test -f $DAEMON || exit 0 +# +# Disable Glibc malloc checks, it doesn't help and it keeps from getting +# good dumps +MALLOC_CHECK_=0 +export MALLOC_CHECK_ + if [ -n "`getent services ${NAME}`" ]; then BPORT=`getent services ${NAME} | awk '{ gsub("/tcp","",$2); print $2; }'` fi diff --git a/bacula/platforms/ubuntu/bacula-fd.in b/bacula/platforms/ubuntu/bacula-fd.in index a0bc014538..3e83c56e44 100644 --- a/bacula/platforms/ubuntu/bacula-fd.in +++ b/bacula/platforms/ubuntu/bacula-fd.in @@ -21,6 +21,12 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin test -f $DAEMON || exit 0 +# +# Disable Glibc malloc checks, it doesn't help and it keeps from getting +# good dumps +MALLOC_CHECK_=0 +export MALLOC_CHECK_ + if [ -n "`getent services ${NAME}`" ]; then BPORT=`getent services ${NAME} | awk '{ gsub("/tcp","",$2); print $2; }'` fi diff --git a/bacula/platforms/ubuntu/bacula-sd.in b/bacula/platforms/ubuntu/bacula-sd.in index 6b68ce1219..1f54405a88 100644 --- a/bacula/platforms/ubuntu/bacula-sd.in +++ b/bacula/platforms/ubuntu/bacula-sd.in @@ -21,6 +21,12 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin test -f $DAEMON || exit 0 +# +# Disable Glibc malloc checks, it doesn't help and it keeps from getting +# good dumps +MALLOC_CHECK_=0 +export MALLOC_CHECK_ + if [ -n "`getent services ${NAME}`" ]; then BPORT=`getent services ${NAME} | awk '{ gsub("/tcp","",$2); print $2; }'` fi diff --git a/bacula/scripts/bacula.in b/bacula/scripts/bacula.in index 8a4f91eb4c..324171d779 100755 --- a/bacula/scripts/bacula.in +++ b/bacula/scripts/bacula.in @@ -14,6 +14,11 @@ # environment where they are different. # SCRIPTDIR=@scriptdir@ +# +# Disable Glibc malloc checks, it doesn't help and it keeps from getting +# good dumps +MALLOC_CHECK_=0 +export MALLOC_CHECK_ case "$1" in start) diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 556c585fa2..b7c40cef4f 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -33,6 +33,8 @@ separator in console (!$%&'()*+,-/:;<>?[]^`{|}~) General: 24Jul08 +kes Set MALLOC_CHECK_=0 in environment before starting Bacula to + turn off glibc checks that prevent getting good dumps. kes Implement console 'wait mount' command. Doesn't yet work. kes Implement timeout=nn on console 'wait mount timeout=nn' command. kes Break the do_swapping into do_unload, do_swapping, and -- 2.39.5