View Issue Details

IDProjectCategoryView StatusLast Update
0002873unrealircdpublic2006-04-10 14:06
Reporterbuildsmart Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
Product Version3.2.4 
Summary0002873: crash when CGI::IRC clients logs off.
DescriptionWhen CGI::IRC client logs out ircd crashes

Condition is the same on all versions of Darwin OS from 7.9 to 8.6, also same on FreeBSD 5.4
Steps To Reproducestart ircd
start services (anope)
login using CGI::IRC
log out
Additional InformationBACKTRACE:
Reading symbols for shared libraries ....... done
Core was generated by `/usr/local/unreal/bin/ircd'.
#0 0x00002d64 in unreal_free_hostent (he=0x60fbe0) at res.c:537
537 MyFree(he->h_addr_list[0]);
#0 0x00002d64 in unreal_free_hostent (he=0x60fbe0) at res.c:537
#1 0x000133b0 in free_client (cptr=0x1805c00) at list.c:166
#2 0x00013814 in remove_client_from_list (cptr=0x1805c00) at list.c:333
#3 0x0002e3e4 in exit_client (cptr=0x1805c00, sptr=0x1805c00, from=0x1805c00, comment=0x204cd10 "Quit: CGI:IRC") at s_misc.c:674
#4 0x02014984 in ?? ()
#5 0x00017084 in dopacket (cptr=0x2054684, buffer=0xffffffff <Address 0xffffffff out of bounds>, length=25189610) at packet.c:138
#6 0x00005ac8 in read_message (delay=1, listp=0x104120) at s_bsd.c:1506
#7 0x00012bd8 in main (argc=1144310553, argv=0x618b8) at ircd.c:1564

#0 0x00002d64 in unreal_free_hostent (he=0x60fbe0) at res.c:537
537 MyFree(he->h_addr_list[0]);

0x102110 <backupbuf>: "QUIT :CGI:IRC"

#0 0x00002d64 in unreal_free_hostent (he=0x60fbe0) at res.c:537
No locals.
#1 0x000133b0 in free_client (cptr=0x1805c00) at list.c:166
No locals.
#2 0x00013814 in remove_client_from_list (cptr=0x1805c00) at list.c:333
No locals.
GCC: gcc version 4.0.1 (Apple Computer, Inc. build 5247)
UNAME: Darwin daleenterprise.com 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc
UNREAL: Unreal3.2.4 build 1.1.1.1.2.22 2006/02/05 18:03:15
CORE: -r-------- 1 ircuser ircgroup 45715456 Apr 6 04:02 /cores/core.15505
3rd party modulesanope-1.7.13/CGI:IRC 0.5.7

Activities

syzop

2006-04-06 16:24

administrator   ~0011476

Hm, what's the releaseid? Type '/info' (or: '/quote info') on IRC to know, or './unreal version' on the shell.

I see '1.1.1.1.2.22' in your report, but that's not possible ;p.
Maybe a better question: how did you upgrade to CVS? It doesn't look right, that's for sure :P.
It's probably a good idea if you would checkout a fresh unreal3_2_fixes CVS, compile and install, and see how well that works.


For what it's worth: I've tested things on Linux and Windows, even under valgrind @ Linux, and didn't find anything.

syzop

2006-04-06 16:30

administrator   ~0011477

Hm oh wait.. ignore above... you are not using cgiirc { } blocks or anything like that? So basically, CGI:IRC has not much to do with it, it's just a normal client and it crashes fdss?
You got me confused there.. because we recently added CGI:IRC host spoofing support in CVS (post-3.2.4) so I thought you meant a bug in that ;).

You say it crashes on all freebsds too, that's.. interesting.. because you are the first one to report such a bug. Anything you can think of that is specific to your situation?

Could you email the following files from the FreeBSD one to me at [email protected] : the ircd binary (usually 'src/ircd'), the core file, commands.so (usually 'src/modules/commands.so'). Then I'll take a look. Thanks.

buildsmart

2006-04-08 04:53

reporter   ~0011488

Same issue on all servers
Unreal3.2.4 build 1.1.1.1.2.22 2006/02/05 18:03:15
Unreal3.2.4 build 1.1.1.1.2.1.2.1.2.2234.2.478 2006/04/04 19:46:21

Dumped the freeBSD install and installed Darwin so the files aren't available any longer

syzop

2006-04-08 06:17

administrator   ~0011489

Last edited: 2006-04-08 06:18

Hmm I see. Could you give me shell access (mail [email protected]) on this box then?
No guarantees though, since it could very well be a heap corruption bug, which are usually very hard to trace (especially if everything works fine under memory debuggers like valgrind under Linux...).

[ Btw, I do receive email notifications about every message you post here :P. ]

syzop

2006-04-10 14:06

administrator   ~0011524

was using cgiirc.so

Issue History

Date Modified Username Field Change
2006-04-06 03:15 buildsmart New Issue
2006-04-06 03:15 buildsmart 3rd party modules => anope-1.7.13/CGI:IRC 0.5.7
2006-04-06 16:24 syzop Note Added: 0011476
2006-04-06 16:30 syzop Note Added: 0011477
2006-04-08 04:53 buildsmart Note Added: 0011488
2006-04-08 06:17 syzop Note Added: 0011489
2006-04-08 06:18 syzop Note Edited: 0011489
2006-04-10 14:06 syzop Status new => closed
2006-04-10 14:06 syzop Note Added: 0011524
2006-04-10 14:06 syzop Resolution open => no change required