[collectd] collectd 4.5.4 - segfault after setting time
Vogt, Michael
Michael.Vogt at united-security-providers.ch
Mon May 18 17:40:54 CEST 2009
Hey florian
Here is the backtrace of the bug:
(gdb) bt
#0 0xb7ef2424 in __kernel_vsyscall ()
#1 0xb7ecccf6 in nanosleep () from /lib/libpthread.so.0
#2 0x0804cf72 in main (argc=4, argv=0x2c7586b2) at collectd.c:341
(gdb) bt full
#0 0xb7ef2424 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7ecccf6 in nanosleep () from /lib/libpthread.so.0 No symbol table info available.
#2 0x0804cf72 in main (argc=4, argv=0x2c7586b2) at collectd.c:341
sig_int_action = {__sigaction_handler = {sa_handler = 0x804c520 <sig_int_handler>,
sa_sigaction = 0x804c520 <sig_int_handler>}, sa_mask = {__val = {0 <repeats 32 times>}}, sa_flags = 0,
sa_restorer = 0}
sig_term_action = {__sigaction_handler = {sa_handler = 0x804c52b <sig_term_handler>,
sa_sigaction = 0x804c52b <sig_term_handler>}, sa_mask = {__val = {0 <repeats 32 times>}}, sa_flags = 0,
sa_restorer = 0}
sig_usr1_action = {__sigaction_handler = {sa_handler = 0x804cff0 <sig_usr1_handler>,
sa_sigaction = 0x804cff0 <sig_usr1_handler>}, sa_mask = {__val = {0 <repeats 32 times>}}, sa_flags = 0,
sa_restorer = 0}
sig_pipe_action = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {
0 <repeats 32 times>}}, sa_flags = 0, sa_restorer = 0}
configfile = <value optimized out>
test_config = 0
basedir = 0x8063018 "/var/lib/collectd"
sig_chld_action = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, sa_mask = {__val = {
0 <repeats 32 times>}}, sa_flags = 0, sa_restorer = 0}
pid = <value optimized out>
daemonize = 0
Cheers and thanks in advance
michael
-----Ursprüngliche Nachricht-----
Von: Florian Forster [mailto:octo at verplant.org]
Gesendet: Montag, 18. Mai 2009 14:59
An: Vogt, Michael
Cc: collectd at verplant.org
Betreff: Re: collectd and openipmi plugin (WARNING!!! PGP with incorrect signature)
Hi Michael,
On Mon, May 18, 2009 at 10:54:35AM +0200, Vogt, Michael wrote:
> i use collectd (collectd-4.5.4.tar.gz) with the openipmi plugin
> (OpenIPMI-2.0.16.tar.gz), which basically works fine. but i detected
> an error, relating to date/time change. if i change the system
> date/time, collectd just crashes (segfaults).
sorry, I didn't read this mail before replying to your previous one.
> The segfault does only occour if i use openipmi sensors.
That this problem only occurs with the IPMI plugin enabled is a great hint, thank you! :)
> U enabled coredumps on my system, but without luck. If collectd
> crashed, it will no write a core dump file.
Core-dumps are often deactivated by default in many distributions, because often people don't know how to deal with them and they may become very large.
You can enable core-dumps by specifying
ulimit -c unlimited
in the command line before starting the daemon (with that same shell), ideally doing something like:
/path/to/collectd -f -C /path/to/collectd.conf
An alternative method would be to start collectd in a debugger to begin
with:
gdb /path/to/collectd
...
> run -f -C /path/to/collectd.conf
> To reproduce the bug, i restart ntp and set some date commands.
> Collectd does not crash each time when i issued a date command,
> sometimes after 2, sometimes after 10 times. So ist quite hard to
> reproduce.
Actually, this sounds like a relyable method of reprocuding the bug, so we're half way of having it fixed! :)
Regards,
-octo
--
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5534 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090518/8bdfc137/attachment.bin
More information about the collectd
mailing list