View Issue Details

IDProjectCategoryView StatusLast Update
0002830unrealircdpublic2007-04-16 10:01
Reporteryasinbey Assigned To 
PrioritynormalSeveritycrashReproducibilitysometimes
Status closedResolutionunable to duplicate 
Product Version3.2.4 
Summary0002830: Crash in remove_user_from_channel (many 3rd party mods)
DescriptionUnreal3.2.4 ircd has crashed three times in a week. It didnt give any notice warn or it didnt record any log detail, 'cause I couldn' t see any info about this issue in ircd.log.

I' ve uploaded the core file.

Waiting for your reply,
Thank you.
3rd party modules

Activities

Stealth

2006-02-20 20:42

reporter   ~0011276

Last edited: 2006-02-20 20:43

It would be definately more help if you would follow the instructions on the Report Issue page to get a backtrace and post that here. You may also run ./unreal backtrace

yasinbey

2006-02-21 04:20

reporter   ~0011277

Hi,

Thank you for reminding me ./unreal backtrace .
Here is the story:


Type the name of the core file you want to research:
core.10124

=================== START HERE ======================
BACKTRACE:
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/home/sevilirsohbet/Unreal3.2/src/ircd'.
Program terminated with signal 11, Segmentation fault.
#0 remove_user_from_channel (sptr=0x939a1f8, chptr=0x9301830) at channel.c:618
618 if (tmp2->chptr == chptr)
#0 remove_user_from_channel (sptr=0x939a1f8, chptr=0x9301830) at channel.c:618
#1 0x00e1a363 in m_part (cptr=0x939a1f8, sptr=0x939a1f8, parc=2171182, parv=0x8115420) at m_part.c:257
#2 0x0806442a in parse (cptr=0x939a1f8, buffer=0x939a2dc "PART", bufend=0x939a311 "") at parse.c:440
#3 0x080639e0 in dopacket (cptr=0x939a1f8, buffer=0x80a7560 "PART #English :\00312Yüzük Script \0034http://www.Yuzuk.net\n", length=0) at packet.c:138
#4 0x08055bd9 in read_packet (cptr=0x939a1f8, rfd=0x939a4f0) at s_bsd.c:1506
#5 0x0805635e in read_message (delay=1, listp=0x8128900) at s_bsd.c:1964
#6 0x0805fff7 in main (argc=0, argv=0xbff6b724) at ircd.c:1545

#0 remove_user_from_channel (sptr=0x939a1f8, chptr=0x9301830) at channel.c:618
618 if (tmp2->chptr == chptr)

0x812ddc0 <backupbuf>: "PART #English :\00312Yüzük Script \0034http://www.Yuzuk.net"

#0 remove_user_from_channel (sptr=0x939a1f8, chptr=0x9301830) at channel.c:618
        curr = (Member **) 0x9389358
        curr2 = (Membership **) 0x9389358
        tmp = (Member *) 0x21212e
        tmp2 = (Membership *) 0x21212e
        lp = (Member *) 0x92dd7c0
#1 0x00e1a363 in m_part (cptr=0x939a1f8, sptr=0x939a1f8, parc=2171182, parv=0x8115420) at m_part.c:257
        chptr = (aChannel *) 0x9301830
        lp = (Membership *) 0x938f398
        p = 0x0
        name = 0x0
        commentx = 0x939a2eb "\00312Yüzük Script \0034http://www.Yuzuk.net"
        comment = 0x0
        n = 2171182
#2 0x0806442a in parse (cptr=0x939a1f8, buffer=0x939a2dc "PART", bufend=0x939a311 "") at parse.c:440
        flags = 3
        bytes = 53
        from = (aClient *) 0x939a1f8
        ch = 0x0
        s = 0x930b448 ""
        i = 3
        numeric = 0
        paramcount = 154702680
        cmptr = (aCommand *) 0x930b448
GCC: gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
UNAME: Linux aktifshell 2.4.22-1.2199.6.teknofix #2 Sun Jan 22 01:39:13 EET 2006 i686 athlon i386 GNU/Linux
UNREAL: Unreal3.2.4 build 1.1.1.1.2.22 2006/02/05 18:03:15
CORE: -rw------- 1 sevilirsohbet sevilirsohbet 2166784 Feb 20 20:52 core.10124
=================== STOP HERE ======================

syzop

2006-02-21 07:31

administrator   ~0011278

Are you using any 3rd party modules? (anything besides commands.so and cloak.so)
If so, which?

yasinbey

2006-02-21 14:01

reporter   ~0011279

Sorry, I forgot to write the 3rd party used modules. Here they are:

m_ircops, cmdflood, hideserver, identonly, m_clones, netadmins, noctcp, m_spy, vhosts, randquote, operjoin, hostnameonly, m_staff, commandsno, m_chgwhois, regexban, adwords.

syzop

2006-04-02 17:07

administrator   ~0011470

I forgot to reply...
What I suggest is running without all those 3rd party modules and see if you crash. If you then still crash, we can be sure it's a problem in UnrealIRCd and not in the modules.
(that is, I'm assuming you did not modify any unrealircd code)

So if that happens again without the 3rd party mods and no modifications, let us know.

It looks like heap corruption anyway, which is hard to trace down.

Issue History

Date Modified Username Field Change
2006-02-20 19:31 yasinbey New Issue
2006-02-20 19:31 yasinbey File Added: core.zip
2006-02-20 20:42 Stealth Note Added: 0011276
2006-02-20 20:43 Stealth Note Edited: 0011276
2006-02-21 04:20 yasinbey Note Added: 0011277
2006-02-21 06:15 syzop File Deleted: core.zip
2006-02-21 07:31 syzop Note Added: 0011278
2006-02-21 14:01 yasinbey Note Added: 0011279
2006-04-02 17:07 syzop Note Added: 0011470
2006-04-03 06:21 syzop Summary Crash without giving any notice => Crash in remove_user_from_channel (many 3rd party mods)
2007-04-16 10:01 stskeeps Status new => closed
2007-04-16 10:01 stskeeps Resolution open => unable to duplicate