I just tried compiling and running the helgrind branch. To let configure
finish its work, I've had to delete the PKG_CHECK_MODULES lines for RELP
and LIBLOGGING.
Worst thing is that the daemon crashed once more; I'm enclosing the whole
backtrace, that I've got via:
$ gdb /usr/sbin/rsyslogd /var/core-dumps/rsyslogd.core. > rsyslog_helgrind.bt << __eoc__
thread apply all bt
__eoc__
I don't know if the last line of failover.log could be of any help:
syslogd: msg.c:274: msgDestruct: Assertion `(unsigned) ((obj_t*)
(pThis))->iObjCooCKiE == (unsigned) 0xBADEFEE' failed.
Time for helgrind or valgrind?
Thank you, yours
lorenzo
+-------------------------+----------------------------------------------+
| Lorenzo M. Catucci | Centro di Calcolo e Documentazione |
| catucci at ccd.uniroma2.it | Universit? degli Studi di Roma "Tor Vergata" |
| | Via O. Raimondo 18 ** I-00173 ROMA ** ITALY |
| Tel. +39 06 7259 2255 | Fax. +39 06 7259 2125 |
+-------------------------+----------------------------------------------+
-------------- next part --------------
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/libpthread-2.7.so...done.
done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.7.so...done.
done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/librt.so.1...Reading symbols from /usr/lib/debug/lib/librt-2.7.so...done.
done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.7.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.7.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib/rsyslog/lmnet.so...done.
Loaded symbols for /usr/lib/rsyslog/lmnet.so
Reading symbols from /lib/libnss_files.so.2...Reading symbols from /usr/lib/debug/lib/libnss_files-2.7.so...done.
done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/rsyslog/imuxsock.so...done.
Loaded symbols for /usr/lib/rsyslog/imuxsock.so
Reading symbols from /usr/lib/rsyslog/imklog.so...done.
Loaded symbols for /usr/lib/rsyslog/imklog.so
Reading symbols from /lib/libnss_compat.so.2...Reading symbols from /usr/lib/debug/lib/libnss_compat-2.7.so...done.
done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...Reading symbols from /usr/lib/debug/lib/libnsl-2.7.so...done.
done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...Reading symbols from /usr/lib/debug/lib/libnss_nis-2.7.so...done.
done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /usr/lib/rsyslog/lmnetstrms.so...done.
Loaded symbols for /usr/lib/rsyslog/lmnetstrms.so
Reading symbols from /usr/lib/rsyslog/lmtcpclt.so...done.
Loaded symbols for /usr/lib/rsyslog/lmtcpclt.so
Reading symbols from /usr/lib/rsyslog/lmnsd_ptcp.so...done.
Loaded symbols for /usr/lib/rsyslog/lmnsd_ptcp.so
Core was generated by `rsyslogd -c3'.
Program terminated with signal 6, Aborted.
[New process 2747]
[New process 2749]
[New process 2748]
[New process 2746]
[New process 2745]
#0 0x00002ad35493eef5 in raise () from /lib/libc.so.6
(gdb)
Thread 5 (process 2745):
#0 0x00002ad3549d5f12 in select () from /lib/libc.so.6
#1 0x000000000040db33 in mainThread () at syslogd.c:2585
#2 0x000000000040ed0c in realMain (argc=<value optimized out>,
argv=<value optimized out>) at syslogd.c:3483
#3 0x00002ad35492b1a6 in __libc_start_main () from /lib/libc.so.6
#4 0x0000000000409f79 in _start ()
Thread 4 (process 2746):
#0 0x00002ad3549c4d17 in sched_yield () from /lib/libc.so.6
#1 0x0000000000431844 in wtiWorker (pThis=0x685200) at wti.c:371
#2 0x00000000004301da in wtpWorker (arg=0x685200) at wtp.c:419
#3 0x00002ad3542e9fc7 in start_thread () from /lib/libpthread.so.0
#4 0x00002ad3549dc7cd in clone () from /lib/libc.so.6
#5 0x0000000000000000 in ?? ()
Thread 3 (process 2748):
#0 0x00002ad3549d5f12 in select () from /lib/libc.so.6
#1 0x00002ad35507b9dd in runInput (pThrd=<value optimized out>)
at imuxsock.c:278
#2 0x0000000000441eef in thrdStarter (arg=0x6a6700) at ../threads.c:139
#3 0x00002ad3542e9fc7 in start_thread () from /lib/libpthread.so.0
#4 0x00002ad3549dc7cd in clone () from /lib/libc.so.6
#5 0x0000000000000000 in ?? ()
Thread 2 (process 2749):
#0 0x00002ad3542f07eb in read () from /lib/libpthread.so.0
#1 0x00002ad3552801bf in klogLogKMsg () at linux.c:449
#2 0x00002ad35527f554 in runInput (pThrd=0x6a7b90) at imklog.c:214
#3 0x0000000000441eef in thrdStarter (arg=0x6a7b90) at ../threads.c:139
#4 0x00002ad3542e9fc7 in start_thread () from /lib/libpthread.so.0
#5 0x00002ad3549dc7cd in clone () from /lib/libc.so.6
#6 0x0000000000000000 in ?? ()
Thread 1 (process 2747):
#0 0x00002ad35493eef5 in raise () from /lib/libc.so.6
#1 0x00002ad354940413 in abort () from /lib/libc.so.6
#2 0x0000000000422019 in sigsegvHdlr (signum=6) at debug.c:758
#3 <signal handler called>
#4 0x00002ad35493eef5 in raise () from /lib/libc.so.6
#5 0x00002ad354940413 in abort () from /lib/libc.so.6
#6 0x00002ad354937dc9 in __assert_fail () from /lib/libc.so.6
#7 0x000000000041bad6 in msgDestruct (ppThis=0x6905f8) at msg.c:274
#8 0x0000000000441824 in actionCallAction (pAction=0x690580, pMsg=0x6aeb70)
at ../action.c:741
#9 0x000000000040afb7 in processMsgDoActions (pData=0x690580,
pParam=0x41000e90) at syslogd.c:1117
#10 0x000000000041c938 in llExecFunc (pThis=0x6903e0,
pFunc=0x40af60 <processMsgDoActions>, pParam=0x41000e90)
at linkedlist.c:391
#11 0x000000000040ab19 in msgConsumer (notNeeded=<value optimized out>,
pUsr=0x6aeb70) at syslogd.c:1160
#12 0x000000000043ae97 in queueConsumerReg (pThis=0x690980, pWti=0x6a4600,
iCancelStateSave=<value optimized out>) at queue.c:1574
#13 0x0000000000431970 in wtiWorker (pThis=0x6a4600) at wti.c:413
#14 0x00000000004301da in wtpWorker (arg=0x6a4600) at wtp.c:419
#15 0x00002ad3542e9fc7 in start_thread () from /lib/libpthread.so.0
#16 0x00002ad3549dc7cd in clone () from /lib/libc.so.6
#17 0x0000000000000000 in ?? ()
(gdb) quit