[ircd-ratbox] core in match.c [long msg]

W. Campbell wcampbel at botbay.net
Sat Mar 13 11:03:18 EST 2004

On Sat, 13 Mar 2004, Eric Dyer wrote:

> We had 4 of our 5 servers crash at what appears to be the exact same point.
> We have done some modification to the code but haven't changed anything in the
> neighborhood of the crash.  gdb backtrace from the 3 I could get follows.
> all servers running ratbox-1.3-1 stable (20040305_0)

Of course modified servers aren't supported...

> (gdb) bt
> #0  0x1c015439 in irccmp (s1=0x8a6b63b3 "d226-45-13.home.cgocable.net",
> s2=0x88a25bc7 <Address 0x88a25bc7 out of bounds>)
>     at match.c:383
> #1  0x1c0221ca in attach_iline (client_p=0x8a6b6310, aconf=0x3c4d4280) at
> s_conf.c:703
> #2  0x1c021f88 in verify_access (client_p=0x44, username=0xcfbeedf0
> "blackice") at s_conf.c:585

if match() or irccmp() cores, it's almost always a result of something
ELSE causing it to core.  In this case, it looks like the second
string is totally out of bounds, which will cause it to core there.

Check attach_iline(), frame 1, list, and print a few things.  You may
find the cause there.  If not, check higher up the backtrace.

More information about the ircd-ratbox mailing list