[syslog-ng] syslog-ng-1.6.8 seg fault

Ralf Ebeling syslog-ng at posteule.de
Mon Jan 8 21:27:20 CET 2007


Hi,

I've just started with syslog-ng on a box running SLES10 x64
and run into problems after modifying the configuration.

With the default configuration everything runs fine, but when
using the attached configuration syslog-ng stalls writing to
the log files after some undefined time (syslog-ng doesn't
die when running as daemon).

Running 'strace syslog-ng -F' exits with a seg fault after some
time.

Any hints what I've done wrong? 'syslog-ng -s' doesn't complain...

Ralf


--- syslog-ng.conf ---
options {sync(0);
        perm(0640);
        stats(3600);
        long_hostnames(off);
        use_dns(yes);
        dns_cache(yes);
        log_fifo_size(8192);
        log_msg_size(4096);
};

source src {
        internal();
        unix-dgram("/dev/log");
        # bind runs chroot'ed
        unix-dgram("/var/lib/named/dev/log");
        udp(ip("0.0.0.0") port(514));
};

filter f_auth       { facility(auth);       };

filter f_local0     { facility(local0);     };
filter f_local1     { facility(local1);     };
filter f_local2     { facility(local2);     };
filter f_local3     { facility(local3);     };
filter f_local4     { facility(local4);     };
filter f_local5     { facility(local5);     };
filter f_local6     { facility(local6);     };
filter f_local7     { facility(local7);     };

filter f_localx     { facility(local0, local1, local2, local3,
                               local4, local5, local6, local7); };

filter f_courier    { facility(local3);     };

filter f_nmsg       { filter(f_courier)
                      or filter(f_auth)
                      or filter(f_localx);  };

filter f_nlocal     { filter(f_courier)
                      or filter(f_auth)
                      or filter(f_fg100);   };

filter f_nwarn      { filter(f_courier)
                      or filter(f_auth)
                      or filter(f_localx);      };

filter f_iptables   { facility(kern)
                      and match("IN=")
                      and match("OUT="); };

filter f_console    { level(warn)
                      and facility(kern)
                      and not filter(f_iptables)
                      or level(err)
                      and not facility(authpriv); };

filter f_newsnotice { level(notice) and facility(news); };
filter f_newscrit   { level(crit)   and facility(news); };
filter f_newserr    { level(err)    and facility(news); };
filter f_news       { facility(news); };

filter f_mailinfo   { level(info)
                      and facility(mail)
                      and not filter(f_courier); };

filter f_mailwarn   { level(warn)
                      and facility(mail)
                      and not filter(f_courier); };

filter f_mailerr    { level(err, crit)
                      and facility(mail)
                      and not filter(f_courier); };

filter f_mail       { facility(mail)
                      and not filter(f_courier); };

filter f_cron       { facility(cron); };

filter f_local      { filter(f_localx)
                      and not filter(f_nlocal); };

filter f_acpid      { match('^\[acpid\]:'); };
filter f_netmgm     { match('^NetworkManager:'); };

filter f_messages   { not facility(news, mail) and not filter(f_iptables)
                      and not filter(f_nmsg); };

filter f_warn       { level(warn, err, crit)
                      and not filter(f_iptables)
                      and not filter(f_warn); };

filter f_alert      { level(alert); };

destination console { file("/dev/tty10" group(tty) perm(0620)); };
log { source(src); filter(f_console); destination(console); };

destination xconsole { pipe("/dev/xconsole" group(tty) perm(0400)); };
log { source(src); filter(f_console); destination(xconsole); };

destination newscrit { file("/var/log/news/news.crit"
                            owner(news) group(news)); };
log { source(src); filter(f_newscrit); destination(newscrit); };

destination newserr  { file("/var/log/news/news.err"
                            owner(news) group(news)); };
log { source(src); filter(f_newserr); destination(newserr); };

destination newsnotice { file("/var/log/news/news.notice"
                              owner(news) group(news)); };
log { source(src); filter(f_newsnotice); destination(newsnotice); };

destination mail { file("/var/log/mail.log" ); };
log { source(src); filter(f_mail); destination(mail); };

destination acpid { file("/var/log/acpid"); };
log { source(src); filter(f_acpid); destination(acpid); flags(final); };

destination netmgm { file("/var/log/NetworkManager"); };
log { source(src); filter(f_netmgm); destination(netmgm); flags(final); };

destination messages { file("/var/log/messages.log"); };
log { source(src); filter(f_messages); destination(messages); };

destination firewall { file("/var/log/firewall"); };
log { source(src); filter(f_iptables); destination(firewall); };

destination warn { file("/var/log/warn" fsync(yes)); };
log { source(src); filter(f_warn); destination(warn); };

destination d_courier { file("/var/log/courier.log"); };
log { source(src); filter(f_courier); destination(d_courier); };

destination d_authlog { file("/var/log/auth.log"); };
log { source(src); filter(f_auth); destination(d_authlog); };

destination d_local0 { file("/var/log/local0.log"); };
destination d_local1 { file("/var/log/local1.log"); };
destination d_local2 { file("/var/log/local2.log"); };
destination d_local3 { file("/var/log/local3.log"); };
destination d_local4 { file("/var/log/local4.log"); };
destination d_local5 { file("/var/log/local5.log"); };
destination d_local6 { file("/var/log/local6.log"); };
destination d_local7 { file("/var/log/local7.log"); };

log { source(src); filter(f_local0); destination(d_local0); };
log { source(src); filter(f_local1); destination(d_local1); };
log { source(src); filter(f_local2); destination(d_local2); };
log { source(src); filter(f_local3); destination(d_local3); };
log { source(src); filter(f_local4); destination(d_local4); };
log { source(src); filter(f_local5); destination(d_local5); };
log { source(src); filter(f_local6); destination(d_local6); };
log { source(src); filter(f_local7); destination(d_local7); };
--- syslog-ng.conf ---


More information about the syslog-ng mailing list