[syslog-ng]syslog-ng crashes after app. 70 messages received
me
syslog-ng@lists.balabit.hu
Wed, 5 May 2004 19:09:35 +0200 (MEST)
Hello,
syslog-ng-1.6.2 on AIX. The daemon crashes with the following message after
received approximately 70 messages:
# syslog-ng -dv
binding fd 3, unixaddr: /dev/log
io.c: Preparing fd 3 for reading
io.c: connecting using fd 4
connecting fd 4 to inetaddr loghost, port 514
syslog-ng version 1.6.2 starting
io.c: Preparing fd 4 for writing
io.c: Preparing fd 5 for writing
Garbage collecting while idle...
gc_mark: Marking object of class 'syslog_backend' (0)
gc_mark: Marking object of class 'syslog_config' (1)
gc_mark: Marking object of class 'resource_list' (2)
gc_mark: Marking object of class 'io_fd' (3)
gc_mark: Marking object of class 'pkt_buffer' (4)
gc_mark: Marking object of class 'io_fd' (4)
gc_mark: Marking object of class 'pkt_buffer' (5)
gc_mark: Marking object of class 'io_fd' (5)
gc_mark: Marking object of class 'log_reader' (6)
gc_mark: Marking object of class 'afsocket_source_connection' (7)
gc_mark: Marking object of class 'afunix_source' (8)
gc_mark: Marking object of class 'unix_address_info' (9)
gc_mark: Marking object of class 'object_queue' (9)
gc_mark: Marking object of class 'log_source_driver' (9)
gc_mark: Marking object of class 'log_source_group' (10)
gc_mark: Marking object of class 'log_center' (11)
gc_mark: Marking object of class 'log_connection' (12)
gc_mark: Marking object of class 'log_endpoint_info' (13)
gc_mark: Marking object of class 'log_endpoint_info' (13)
gc_mark: Marking object of class 'log_dest_group' (14)
gc_mark: Marking object of class 'affile_dest' (15)
gc_mark: Marking object of class 'affile_dest_writer' (16)
Illegal instruction(coredump)
#
---
I tried it with version 1.5.26 and 1.6.2. Both behave the same... It looks
like the garbage collection has a problem. :-o Below my configuration.
Bye, Elliot
Config:
--------------------------------------------
#
# options
#
options {
sync (0);
stats (3600);
perm (0644);
time_reopen (10);
log_fifo_size (4096);
log_msg_size (8192);
# gc_idle_threshold (10);
# gc_busy_threshold (4096);
long_hostnames (off);
chain_hostnames (yes);
use_dns (yes);
use_fqdn (no);
create_dirs (no);
keep_hostname (yes);
};
#
# sources
#
source src { unix-dgram("/dev/log"); internal(); };
#
# destinations
#
destination syslog { file("/var/adm/syslog" template("$DATE $HOST
[$FACILITY.$LEVEL] $MSG\n")); };
destination loghost { udp("loghost" port(514) template("$DATE $HOST
[$FACILITY.$LEVEL] $MSG\n")); };
#
# do the logging here :-)
#
log { source(src); destination(syslog); };
log { source(src); destination(loghost); };
--
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info