[syslog-ng]Mystic crashes of 1.5.10

Andreas Schulze Andreas.Schulze@mediaWays.NET
Wed, 10 Oct 2001 15:01:05 +0200


Hello Bazsi,

thanks a lot for the stats() feature in the new version.
But unfortunately 1.5.10 crashes a few minutes after starting.
We are running your software on SUN Solaris 8 boxes.
I read about a similiar problem with Linux boxes some weeks
ago in this list.

For your convenience the backtrace is attached.

The calling deps between #17 and #1 can differ in each core.
But it crashed _always_ in
	__sigprocmask () from /usr/lib/libthread.so.1
And it crashed _always_ by receiving SIGKILL.

Seems a little bit mystic for me, because I don't know
why and who's sending the SIGKILL.
Coredumps by SIGSEGV are more familiar to me :)

Thx. for a fast fix --Andreas

> root@host [/root] >>gdb /usr/sbin/syslog-ng.1.5.10 core
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "sparc-sun-solaris2.8"...
> 
> Core was generated by `/usr/sbin/syslog-ng.1.5.10 -v -f /etc/syslog-ng/syslog-ng.conf'.
> Program terminated with signal 9, Killed.
> Reading symbols from /usr/lib/libpthread.so.1...done.
> Loaded symbols for /usr/lib/libpthread.so.1
> Reading symbols from /usr/lib/libdoor.so.1...done.
> Loaded symbols for /usr/lib/libdoor.so.1
> Reading symbols from /usr/lib/libl.so.1...done.
> Loaded symbols for /usr/lib/libl.so.1
> Reading symbols from /usr/lib/libsocket.so.1...done.
> Loaded symbols for /usr/lib/libsocket.so.1
> Reading symbols from /usr/lib/libnsl.so.1...done.
> Loaded symbols for /usr/lib/libnsl.so.1
> Reading symbols from /usr/lib/libxnet.so.1...done.
> Loaded symbols for /usr/lib/libxnet.so.1
> Reading symbols from /usr/lib/libc.so.1...done.
> Loaded symbols for /usr/lib/libc.so.1
> Reading symbols from /usr/lib/libdl.so.1...done.
> Loaded symbols for /usr/lib/libdl.so.1
> Reading symbols from /usr/lib/libmp.so.2...done.
> Loaded symbols for /usr/lib/libmp.so.2
> Reading symbols from /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1...done.
> Loaded symbols for /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1
> Reading symbols from /usr/lib/libthread.so.1...done.
> Loaded symbols for /usr/lib/libthread.so.1
> #0  0xff0d9a04 in __sigprocmask () from /usr/lib/libthread.so.1
> (gdb) bt
> #0  0xff0d9a04 in __sigprocmask () from /usr/lib/libthread.so.1
> #1  0xff0ce460 in _resetsig () from /usr/lib/libthread.so.1
> #2  0xff0cdc00 in _sigon () from /usr/lib/libthread.so.1
> #3  0xff0d0c14 in _thrp_kill () from /usr/lib/libthread.so.1
> #4  0xff14afe8 in raise () from /usr/lib/libc.so.1
> #5  0xff1357c4 in abort () from /usr/lib/libc.so.1
> #6  0x29324 in do_object_queue_mark ()
> #7  0x29d50 in ol_object_check ()
> #8  0x1f70c in do_handle_dest_writer (c=0x9ffc0, msg=0x60314) at affile.c:247
> #9  0x20c90 in do_handle_affile_log (c=0x4a7d0, msg=0x60314) at affile.c:738
> #10 0x1866c in do_handle_log (c=0x4a8d8, msg=0x60314) at destinations.c:103
> #11 0x17374 in do_distribute_log (c=0x47020, msg=0x60314) at center.c:149
> #12 0x169a8 in do_add_source_name (c=0x4a748, logmsg=0x60314) at sources.c:238
> #13 0x225e0 in do_handle_afinet_line (c=0x470c0, msg=0x60314) at afinet.c:107
> #14 0x160bc in do_handle_line (self=0x47108, length=110,
>     data=0x47120 "<189>121625: Oct 10 14:30:57 MESZ: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to upolding time expiredired0 secondsws-gtso-de15) 2/6 (1)..net) 2/48 (1)..", addr=0xffbef518, addrlen=16)
>     at sources.c:67
> #15 0x162f4 in do_read_line (h=0x470a0, read=0xffbef6b8) at sources.c:105
> #16 0x27bc4 in read_callback ()
> #17 0x27870 in io_iter ()
> #18 0x153ac in main_loop (backend=0x42eb0) at main.c:174
> #19 0x15e8c in main (argc=4, argv=0xffbefb2c) at main.c:469
> (gdb) q
> root@host [/root] >>