[syslog-ng]syslogd core on garbage-collect filter
jamie rishaw
jrishaw@playboy.com
Mon, 11 Jun 2001 11:25:05 -0500
Greetings all,
Hope this isn't FAQ..
I'm trying to filter all of the "garbage collect" messages into
/dev/null (but for initial testing, a file).
syslog-ng is coring, tho, after startup with code (below).
operation without the bad code, however, is fine.
I am running syslog-ng 1.4.11 on FreeBSD 4.3-STABLE.
bad code:
-- start --
# I dont want garbage collecting messages
log { source("s_int"); filter("f_isgarbage"); destination("d_garbage"); };
filter f_isgarbage { match("garbage collect"); };
destination d_garbage { file("/logs/garbage"); };
-- end --
related code (does not affect):
--start--
source s_int { internal(); };
--end--
startup:
noc# /usr/local/sbin/syslog-ng -v
binding fd 3, inetaddr: 0.0.0.0, port: 514
binding fd 4, unixaddr: /var/run/log
within 60 seconds:
-rw------- 1 root wheel 380928 Jun 11 11:16 syslog-ng.core
noc# gdb /usr/local/sbin/syslog-ng syslog-ng.core
GNU gdb 4.18
(no debugging symbols found)...
Core was generated by `syslog-ng'.
Program terminated with signal 6, Abort trap.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...
done.
#0 0x280af8e0 in kill () from /usr/lib/libc.so.4
(gdb) bt
#0 0x280af8e0 in kill () from /usr/lib/libc.so.4
#1 0x280eb62e in abort () from /usr/lib/libc.so.4
#2 0x280c83cf in __assert () from /usr/lib/libc.so.4
#3 0x805203a in io_iter ()
#4 0x8049ace in main_loop ()
#5 0x8049de3 in main ()
#6 0x80496f9 in _start ()
Thanks in advance for any advice/help,
jamie
--
jamie rishaw <jrishaw@playboy.com>
sr. wan/unix engineer/ninja // playboy enterprises inc.
opinions stated are mine, and are not necessarily those of the bunny.