Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2009 11:16:19 +0100
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Bind 9 (Was: bsdstats) - fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((&manager->lock))) == 0)
Message-ID:  <20090728101619.GA4035@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <200907271937.26660.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
References:  <20090727211751.GA76851@mech-cluster241.men.bris.ac.uk> <200907271407.45243.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <45184C2B17C02813336AB862@ganymede.hub.org> <200907271937.26660.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 27, 2009 at 07:37:26PM -0800, Mel Flynn wrote:
> On Monday 27 July 2009 18:35:17 Marc G. Fournier wrote:
> > --On Monday, July 27, 2009 14:07:44 -0800 Mel Flynn
> >
> > <mel.flynn+fbsd.questions@mailing.thruhere.net> wrote:
> > > On Monday 27 July 2009 13:17:51 Anton Shterenlikht wrote:
> > >> On ia64 8.0-beta1 SMP, running bsdstats-5.4_2,
> > >> I get this error:
> > >>
> > >> # /usr/local/etc/periodic/monthly/300.statistics
> > >> /usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/task.c:1023: fatal
> > >> error: RUNTIME_CHECK(((pthread_mutex_destroy(((&manager->lock))) == 0) ?
> > >> 0
> > >>
> > >> : 34) == 0) failed
> > >
> > > That error from bind,
> > >
> > >> [:        1: unexpected operator
> > >
> > > Is not handled gracefully in the bsdstats script.
> >
> > Is there something I can do to improve the script to handle it better?
> 
> Well, if OP can provide sh -x /usr/local/etc/periodic/monthly/300.statistics 
> output, it's easier to see which variable is empty as a result of a resolver 
> error. Then fix the test expression and either exit or use a retry_x_times 
> mechanism.

# script zzz sh -x /usr/local/etc/periodic/monthly/300.statistics -nodelay

Script started on Tue Jul 28 11:14:53 2009
+ [ -r /etc/defaults/periodic.conf ]
+ . /etc/defaults/periodic.conf
+ periodic_conf_files='/etc/periodic.conf /etc/periodic.conf.local'
+ local_periodic=/usr/local/etc/periodic
+ daily_output=root
+ daily_show_success=YES
+ daily_show_info=YES
+ daily_show_badconfig=NO
+ daily_clean_disks_enable=NO
+ daily_clean_disks_files='[#,]* .#* a.out *.core *.CKP .emacs_[0-9]*'
+ daily_clean_disks_days=3
+ daily_clean_disks_verbose=YES
+ daily_clean_tmps_enable=NO
+ daily_clean_tmps_dirs=/tmp
+ daily_clean_tmps_days=3
+ daily_clean_tmps_ignore='.X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix'
+ daily_clean_tmps_ignore='.X*-lock .X11-unix .ICE-unix .font-unix .XIM-unix quota.user quota.group'
+ daily_clean_tmps_verbose=YES
+ daily_clean_preserve_enable=YES
+ daily_clean_preserve_days=7
+ daily_clean_preserve_verbose=YES
+ daily_clean_msgs_enable=YES
+ daily_clean_msgs_days=''
+ daily_clean_rwho_enable=YES
+ daily_clean_rwho_days=7
+ daily_clean_rwho_verbose=YES
+ daily_clean_hoststat_enable=YES
+ daily_backup_passwd_enable=YES
+ daily_backup_aliases_enable=YES
+ daily_calendar_enable=NO
+ daily_accounting_enable=YES
+ daily_accounting_compress=NO
+ daily_accounting_flags=-q
+ daily_accounting_save=3
+ daily_news_expire_enable=YES
+ daily_status_disks_enable=YES
+ daily_status_disks_df_flags='-l -h'
+ daily_status_zfs_enable=NO
+ daily_status_ata_raid_enable=NO
+ daily_status_gmirror_enable=NO
+ daily_status_graid3_enable=NO
+ daily_status_gstripe_enable=NO
+ daily_status_gconcat_enable=NO
+ daily_status_network_enable=YES
+ daily_status_network_usedns=YES
+ daily_status_rwho_enable=YES
+ daily_status_mailq_enable=YES
+ daily_status_mailq_shorten=NO
+ daily_status_include_submit_mailq=YES
+ daily_status_security_enable=YES
+ daily_status_mail_rejects_enable=YES
+ daily_status_mail_rejects_logs=3
+ daily_status_mail_rejects_shorten=NO
+ daily_status_named_enable=YES
+ daily_status_named_usedns=YES
+ daily_status_ntpd_enable=NO
+ daily_queuerun_enable=YES
+ daily_submit_queuerun=YES
+ daily_local=/etc/daily.local
+ daily_status_security_inline=NO
+ daily_status_security_output=root
+ daily_status_security_noamd=NO
+ daily_status_security_logdir=/var/log
+ daily_status_security_diff_flags='-b -u'
+ daily_status_security_chksetuid_enable=YES
+ daily_status_security_chkmounts_enable=YES
+ daily_status_security_chkuid0_enable=YES
+ daily_status_security_passwdless_enable=YES
+ daily_status_security_logincheck_enable=YES
+ daily_status_security_ipfwdenied_enable=YES
+ daily_status_security_ipfdenied_enable=YES
+ daily_status_security_pfdenied_enable=YES
+ daily_status_security_ipfwlimit_enable=YES
+ daily_status_security_ipf6denied_enable=YES
+ daily_status_security_kernelmsg_enable=YES
+ daily_status_security_loginfail_enable=YES
+ daily_status_security_tcpwrap_enable=YES
+ weekly_output=root
+ weekly_show_success=YES
+ weekly_show_info=YES
+ weekly_show_badconfig=NO
+ weekly_locate_enable=YES
+ weekly_whatis_enable=YES
+ weekly_catman_enable=NO
+ weekly_noid_enable=NO
+ weekly_noid_dirs=/
+ weekly_status_pkg_enable=NO
+ pkg_version=pkg_version
+ pkg_version_index=/usr/ports/INDEX-8
+ weekly_local=/etc/weekly.local
+ monthly_output=root
+ monthly_show_success=YES
+ monthly_show_info=YES
+ monthly_show_badconfig=NO
+ monthly_accounting_enable=YES
+ monthly_local=/etc/monthly.local
+ [ -z '' ]
+ source_periodic_confs_defined=yes
+ source_periodic_confs
+ local i sourced_files
+ sourced_files=:/etc/periodic.conf:
+ [ -r /etc/periodic.conf ]
+ . /etc/periodic.conf
+ monthly_statistics_enable=YES
+ monthly_statistics_report_devices=YES
+ monthly_statistics_report_ports=YES
+ sourced_files=:/etc/periodic.conf::/etc/periodic.conf.local:
+ [ -r /etc/periodic.conf.local ]
+ periodic_conf=/etc/periodic.conf
+ umask
+ oldmask=0022
+ umask 066
+ version=5.4
+ checkin_server=rpt.bsdstats.org
+ bsdstats_log=/var/log/bsdstats
+ id_token_file=/var/db/bsdstats
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
+ export PATH
+ unset HTTP_USER_AGENT
+ IFS='
'
+ check_dns
+ dig+ grep UP
 bsdstats.org txt
+ grep TXT
+ wc -l
/usr/src/lib/bind/isc/../../../contrib/bind9/lib/isc/timer.c:906: fatal error: RUNTIME_CHECK(((pthread_mutex_destroy(((&manager->lock))) == 0) ? 0 : 34) == 0) failed
+ [ '       1' 'Abort trap (core dumped)' = 0 ]
[:        1: unexpected operator
+ /usr/bin/uname -r
+ REL=8.0-BETA1
+ /usr/bin/uname -m
+ ARCH=ia64
+ /usr/bin/uname -s
+ OS=FreeBSD
+ get_id_token
+ [ -f /var/db/bsdstats ]
+ wc -l
+ [ '       3' -lt 3 ]
+ [ ! -f /var/db/bsdstats -o ! -s /var/db/bsdstats ]
+ . /var/db/bsdstats
+ KEY=c30c1b0240631fecb044ed2e15e68780
+ TOKEN=WZEW6M7lnx6ZDNVbzJr/kbehj9O4JKERLTRFKPXpjWY=
+ VERSION=5.4
+ uri_escape c30c1b0240631fecb044ed2e15e68780
+ echo c30c1b0240631fecb044ed2e15e68780
+ sed -e '
        s/%/%25/g
        s/;/%3b/g
        s,/,%2f,g
        s/?/%3f/g
        s/:/%3a/g
        s/@/%40/g
        s/&/%26/g
        s/=/%3d/g
        s/+/%2b/g
        s/\$/%24/g
        s/,/%2c/g
        s/ /%20/g
        '
+ KEY=c30c1b0240631fecb044ed2e15e68780
+ uri_escape WZEW6M7lnx6ZDNVbzJr/kbehj9O4JKERLTRFKPXpjWY=
+ echo WZEW6M7lnx6ZDNVbzJr/kbehj9O4JKERLTRFKPXpjWY=
+ sed -e '
        s/%/%25/g
        s/;/%3b/g
        s,/,%2f,g
        s/?/%3f/g
        s/:/%3a/g
        s/@/%40/g
        s/&/%26/g
        s/=/%3d/g
        s/+/%2b/g
        s/\$/%24/g
        s/,/%2c/g
        s/ /%20/g
        '
+ TOKEN=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPXpjWY%3d
+ test X-nodelay = X-nodelay
+ enable_token
+ do_fetch 'enable_token.php?key=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPXpjWY%3d&token=c30c1b0240631fecb044ed2e15e68780'
+ url='http://rpt.bsdstats.org/scripts/enable_token.php?key=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPXpjWY%3d&token=c30c1b0240631fecb044ed2e15e68780'
+ uname
+ local IFS
+ IFS='=
'
+ read var val
+ /usr/bin/fetch -q -o - 'http://rpt.bsdstats.org/scripts/enable_token.php?key=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPXpjWY%3d&token=c30c1b0240631fecb044ed2e15e68780'
+ date
+ echo '[Tue 28 Jul 2009 11:14:53 BST] Error with fetch to server'
+ exit
+ report_system
+ do_fetch 'report_system.php?token=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPXpjWY%3d&key=c30c1b0240631fecb044e+ d2e15e68780&rel=8.0-BETA1&arch=ia64&opsys=FreeBSD'
local+  IFSurl='http://rpt.bsdstats.org/scripts/report_system.php?token=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFK
PXpjWY%3d&key=c30c1b0240631fecb044ed2e15e68780&rel=8.0-BETA1&arch=ia64&opsys=FreeBSD'
+ + IFS='=
'
uname+ 
read var val
+ /usr/bin/fetch -q -o - 'http://rpt.bsdstats.org/scripts/report_system.php?token=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPXpjWY%3d&key=c30c1b0240631fecb044ed2e15e68780&rel=8.0-BETA1&arch=ia64&opsys=FreeBSD'
+ [ FAIL = OK ]
+ date
+ echo '[Tue 28 Jul 2009 11:14:53 BST] System report failed, exiting'
+ exit
+ echo 'Posting monthly OS statistics to rpt.bsdstats.org'
Posting monthly OS statistics to rpt.bsdstats.org
+ [ X-nodelay != X-nodelay ]
+ disable_token
+ do_fetch+  'disable_token.php?key=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPXpjWY%3d&token=c30c1b0240631fecb044elocald2e15e68780'
 IFS+ 
url='http://rpt.bsdstats.org/scripts/disable_token.php?key=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPX+ pjWY%3d&token=c30c1b0240631fecb044ed2e15e68780'
IFS='=
'
+ + unameread
 var val
+ /usr/bin/fetch -q -o - 'http://rpt.bsdstats.org/scripts/disable_token.php?key=WZEW6M7lnx6ZDNVbzJr%2fkbehj9O4JKERLTRFKPXpjWY%3d&token=c30c1b0240631fecb044ed2e15e68780'
+ date
+ echo '[Tue 28 Jul 2009 11:14:54 BST] Error with fetch to server'
+ exit
+ umask 0022
+ exit

Script done on Tue Jul 28 11:14:54 2009

many thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090728101619.GA4035>