[ircd-ratbox] why irc.dks.ca split today / ratbox bug? (fwd)

Mike Jackson mike at secsup.ca
Thu Jul 31 02:00:11 EDT 2003


---------- Forwarded message ----------
Date: Thu, 31 Jul 2003 00:35:54 -0500 (EST)
From: Mike Jackson
To: admins at ca-efnet.org
Subject: why irc.dks.ca split today / ratbox bug?

Hi folks, 

Just a little bit of clarification as to why DKS split today.  It appears
I have stumbled upon a nasty little bug in ratbox.

Here is what syslog told me:

Jul 31 01:06:47 <local4.notice> irc ircd[351]: REHASH tklines From zodiack[mike at oblivion.dks.ca]
Jul 31 01:06:55 <local4.notice> irc ircd[351]: REHASH tdlines From zodiack[mike at oblivion.dks.ca]
Jul 31 01:07:00 <local4.notice> irc ircd[351]: REHASH rejectcache From zodiack[mike at oblivion.dks.ca]
Jul 31 01:07:20 <kern.info> irc /kernel: pid 351 (ircd), uid 100: exited on signal 11 (core dumped)

Here is the backtrace info from gdb:

(gdb) bt
#0  0x8072da8 in auth_error (auth=0x89aef60) at s_auth.c:251
#1  0x8073394 in auth_connect_callback (fd=484, error=4, data=0x89aef60) at s_auth.c:497
#2  0x807456c in comm_connect_callback (fd=484, status=4) at s_bsd.c:686
#3  0x80746b7 in comm_connect_tryconnect (fd=484, notused=0x0) at s_bsd.c:796
#4  0x8074c27 in comm_select (delay=0) at s_bsd_kqueue.c:278
#5  0x8065e9a in io_loop () at ircd.c:344
#6  0x8066848 in main (argc=0, argv=0xbfbffb94) at ircd.c:774

Here is the ratbox code:

s_auth.c:251         sendheader(auth->client, REPORT_FAIL_ID);
s_auth.c:497         auth_error(auth);
s_bsd.c:686          hdl(fd, status, fd_table[fd].connect.data);   
s_bsd.c:796          comm_connect_callback(fd, COMM_ERR_CONNECT);
s_bsd_kqueue.c:278   hdl(fd, F->write_data);
ircd.c:344           comm_select(0);
ircd.c:774           io_loop();

Now I'm no ratbox coder by any means but I'm assuming this is not normal 
and has something to do with I/O, the KQUEUE routines and the file
descriptor table.

I'm going to investigate this with the fl and the rest of the ratbox
development team and see what we can dig up.


  - Mike

--                                       .
 | Mike Jackson          mikjacks at UU.NET |
 | Network Specialist,        MCI Canada |
 | Juniper Networks Certified, JNCIA #85 |
 "change is inevitable, progress is not."

More information about the ircd-ratbox mailing list