collectd SIGABRTs when using apache plugin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
collectd (Ubuntu) |
New
|
Undecided
|
Canonical Server |
Bug Description
After enabling the apache plugin to get data from apache server-status, collectd consistantly gets a SIGABRT. A gdb run looks like:
(gdb) run -C /etc/collectd/
Starting program: /usr/sbin/collectd -C /etc/collectd/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
[New Thread 0x7fffed43b700 (LWP 19475)]
[New Thread 0x7fffecc3a700 (LWP 19476)]
[New Thread 0x7fffec439700 (LWP 19477)]
[New Thread 0x7fffebc38700 (LWP 19478)]
[New Thread 0x7fffeb437700 (LWP 19479)]
[New Thread 0x7fffeac36700 (LWP 19480)]
collectd: ath.c:193: _gcry_ath_
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffec439700 (LWP 19477)]
0x00007ffff762e445 in __GI_raise (sig=<optimized out>) at ../nptl/
64 ../nptl/
(gdb) bt
#0 0x00007ffff762e445 in __GI_raise (sig=<optimized out>) at ../nptl/
#1 0x00007ffff7631bab in __GI_abort () at abort.c:91
#2 0x00007ffff762710e in __assert_fail_base (fmt=<optimized out>, assertion=
function=
#3 0x00007ffff76271b2 in __GI___assert_fail (assertion=
function=
#4 0x00007ffff5d62312 in _gcry_ath_
#5 0x00007ffff5d9c560 in lock_pool () at random-csprng.c:298
#6 0x00007ffff5d9cace in initialize () at random-csprng.c:327
#7 0x00007ffff5d9db15 in _gcry_rngcsprng
#8 0x00007ffff0336233 in wrap_gcry_rnd_init (ctx=<optimized out>) at rnd.c:39
#9 0x00007ffff02e1d1b in _gnutls_rnd_init () at random.c:39
#10 0x00007ffff02d0ff5 in gnutls_global_init () at gnutls_global.c:236
#11 0x00007ffff0e62167 in Curl_gtls_init () from /usr/lib/
#12 0x00007ffff0e552ce in curl_global_init () from /usr/lib/
#13 0x00007ffff0e5541a in curl_easy_init () from /usr/lib/
#14 0x00007ffff108515f in init_host (st=0x6514f0) at apache.c:403
#15 apache_read_host (user_data=
#16 0x000000000040b568 in plugin_read_thread (args=<optimized out>) at plugin.c:433
#17 0x00007ffff7bc4e9a in start_thread (arg=0x7fffec43
#18 0x00007ffff76e874d in clone () at ../sysdeps/
#19 0x0000000000000000 in ?? ()
Syslog entries look like:
Mar 2 06:48:58 hostname collectd[21661]: Libgcrypt warning: missing initialization - please fix the application
Mar 2 06:48:58 hostname collectd[21661]: Initialization complete, entering read-loop.
Mar 2 06:48:58 hostname collectd[21661]: rrdtool plugin: rrd_update_r (hostname.
Mar 2 06:48:58 hostname collectdmon[21515]: Warning: collectd was terminated by signal 6 (core dumped)
The extract of the config used is:
LoadPlugin apache
<Plugin apache>
<Instance "apache-hostname">
URL "http://
</Instance>
</Plugin>
I have also tried it with a Server "apache" stanza as well.
If I disable any apache checks the rrd_update_r error message disappears, and it no longer gets a SIGABRT. The libgcrypt warning still persists, however.
Please let me know if there's any further information that could help in debugging this.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: collectd 4.10.1-2.1ubuntu7
ProcVersionSign
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Fri Mar 2 06:10:28 2012
ProcEnviron:
LANGUAGE=en_GB:
TERM=screen
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: collectd
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
Changed in collectd (Ubuntu): | |
assignee: | nobody → Canonical Server Team (canonical-server) |
I had the same problem, it was caused by URL"http:// xx.yy.zz/ server- status? auto" returning HTTP redirect instead of apache status page. After I had fixed mod_status settings and ensured URL returns status info collectd started working.