[syslog-ng]Still getting "Assertion `i == nfds' failed." error

Dennis Skinner syslog-ng@lists.balabit.hu
Thu, 18 Sep 2003 15:34:19 -0400


Still getting this error:

syslog-ng: io.c:270: io_iter: Assertion `i == nfds' failed.

syslog-ng version 1.6.0rc3
libol 0.3.10
RedHat 9

I only have 3 sources: internal and 2 udp sources (no /proc/kmsg or
/dev/log).  It runs fine for a short while and then dies with the above
error.  Sometimes it runs for a minute or so and sometimes for 15-20
mins without a problem before it dies (logging properly from the various
servers while it runs).

I had setup the local syslogd to pass its messages to syslog-ng via
udp.  I stopped syslogd (and klogd) and getting same problem.  Tried
running both using chroot option and not, same thing.  

Seems to run forever in debug mode.  I can see it does garbage
collection every now and then.  If it tells you anything, this is what
it does during gc:

io.c: Preparing fd 9 for writing
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 'pkt_buffer' (6)
gc_mark: Marking object of class 'io_fd' (6)
gc_mark: Marking object of class 'pkt_buffer' (7)
gc_mark: Marking object of class 'io_fd' (7)
gc_mark: Marking object of class 'pkt_buffer' (8)
gc_mark: Marking object of class 'io_fd' (8)
gc_mark: Marking object of class 'pkt_buffer' (9)
gc_mark: Marking object of class 'io_fd' (9)
gc_mark: Marking object of class 'pkt_buffer' (10)
gc_mark: Marking object of class 'io_fd' (10)
gc_mark: Marking object of class 'pkt_buffer' (11)
gc_mark: Marking object of class 'io_fd' (11)
gc_mark: Marking object of class 'log_reader' (12)
gc_mark: Marking object of class 'afsocket_source_connection' (13)
gc_mark: Marking object of class 'afinet_source' (14)
gc_mark: Marking object of class 'inet_address_info' (15)
gc_mark: Marking object of class 'object_queue' (15)
gc_mark: Marking object of class 'log_source_group' (15)
gc_mark: Marking object of class 'log_source_group' (16)
gc_mark: Marking object of class 'log_source_driver' (17)
gc_mark: Marking object of class 'log_center' (17)
gc_mark: Marking object of class 'log_connection' (18)
gc_mark: Marking object of class 'log_endpoint_info' (19)
gc_mark: Marking object of class 'log_endpoint_info' (20)
gc_mark: Marking object of class 'log_endpoint_info' (19)
gc_mark: Marking object of class 'log_dest_group' (20)
gc_mark: Marking object of class 'affile_dest' (21)
gc_mark: Marking object of class 'affile_dest_writer' (22)
gc_mark: Marking object of class 'affile_dest_writer' (23)
gc_mark: Marking object of class 'affile_dest_writer' (24)
gc_mark: Marking object of class 'affile_dest_writer' (25)
gc_mark: Marking object of class 'affile_dest_writer' (26)
gc_mark: Marking object of class 'affile_dest_writer' (27)
gc_mark: Marking object of class 'affile_dest_writer' (28)
gc_mark: Marking object of class 'affile_dest_writer' (29)
gc_mark: Marking object of class 'log_connection' (19)
gc_mark: Marking object of class 'log_endpoint_info' (20)
gc_mark: Marking object of class 'log_source_group' (21)
gc_mark: Marking object of class 'afinet_source' (22)
gc_mark: Marking object of class 'inet_address_info' (23)
gc_mark: Marking object of class 'object_queue' (23)
gc_mark: Marking object of class 'afsocket_source_connection' (24)
gc_mark: Marking object of class 'io_fd' (25)
gc_mark: Marking object of class 'log_reader' (26)
gc_mark: Marking object of class 'afsocket_source_close_callback' (26)
gc_mark: Marking object of class 'log_endpoint_info' (20)
gc_mark: Marking object of class 'log_dest_group' (21)
gc_mark: Marking object of class 'affile_dest' (22)
gc_mark: Marking object of class 'afsocket_source_close_callback' (12)
gc_mark: Marking object of class 'UNKNOWN' (1)
gc_mark: Marking object of class 'affile_dest_reaper' (1)
gc_mark: Marking object of class 'affile_dest_reaper' (1)
gc_mark: Marking object of class 'affile_dest_reaper' (1)
gc_mark: Marking object of class 'affile_dest_reaper' (1)
gc_mark: Marking object of class 'affile_dest_reaper' (1)
gc_mark: Marking object of class 'affile_dest_reaper' (1)
gc_mark: Marking object of class 'affile_dest_reaper' (1)
gc_mark: Marking object of class 'affile_dest_reaper' (1)
io.c: Preparing fd 10 for writing
Marking fd 12 for closing.


Any other ideas?

-- 
Dennis Skinner
Systems Administrator
BlueFrog Internet
http://www.bluefrog.com