View Issue Details

IDProjectCategoryView StatusLast Update
0002704unrealircdpublic2006-05-08 16:23
ReporterYamake Assigned Tosyzop  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionduplicate 
Platformi386 compatible (AMD)OSWinNTOS Version5.1.2600
Product Version3.2.3 
Fixed in Version3.2.5 
Summary0002704: Self-compiled ircd w/MS VStudio 8 beta: Unreal Crashes on Join
DescriptionWhenever a user joins a channel on my Unreal3.2.3 IRCd, the IRCd will crash and the service will stop.
Steps To Reproduce- Run WIRCD.EXE
- Join a channel
Additional Information- No 3rd Party Modules
   * I did have them, but even after removing them the problem didn't disappear

- Built using MSVC .NET 8 b2 (2005) / .NET 2.0 b2
TagsNo tags attached.
3rd party modules

Relationships

related to 0002875 resolvedsyzop VStudio 2005: Crashes on link to any server, stats, or services 

Activities

Stealth

2005-11-20 17:55

reporter   ~0010782

Last edited: 2005-11-20 17:57

Did you check for any compile errors?

Unreal works perfectly for me compiled with MSVS 7.1 (2003)

EDIT: Also, were there any code modifications (Including enabling/disabling compile options)? Did you compile with SSL, ZipLinks, or Remote Includes? If you did, did you use the official Windows libraries from http://www.vulnscan.org/unrealwin32dev/ ?

syzop

2005-11-20 20:39

administrator   ~0010785

Perhaps worth pointing out the info I got, before I refered him to here (due to insufficient time / no idea how to proceed):

BACKTRACE
==========
Generated at Fri Nov 11 18:54:01 2005

Windows XP Service Pack 2 (5.1.2600)
Unreal3.2.3[FinWXOoEmM3] (1.1.1.1.2.20 2005/03/13 21:02:14)
-----------------
Memory Information:
    Physical: (Available:235MB/Total:511MB)
    Virtual: (Available:2008MB/Total:2047MB)
-----------------
Exception:
    Access Violation
-----------------
Backup Buffer:
    JOIN ##
-----------------
Registers:
    EAX=0x00494c58 EBX=0x003ba738 ECX=0x00000000
    EDX=0x00000000 ESI=0x77f176e4 EDI=0x0012f9d8
    EIP=0x00452e7a EBP=0x0103fa58 ESP=0x0103fa14
-----------------
Stack Trace:
    Module: WIRCD
        #0 c:\unreal\src\ircsprintf.c:289: ircvsprintf
        #1 c:\unreal\src\send.c:798: sendto_serv_butone_token_opt
    Module: 1B0F18E5.commands
        #2 c:\unreal\src\modules\m_join.c:381: _join_channel
        #3 c:\unreal\src\modules\m_join.c:717: _do_join
        #4 c:\unreal\src\modules\m_join.c:333: m_join
    Module: WIRCD
        #5 c:\unreal\src\parse.c:437: parse
        #6 c:\unreal\src\packet.c:139: dopacket
        #7 c:\unreal\src\s_bsd.c:1477: read_packet
        0000008 c:\unreal\src\s_bsd.c:1937: read_message
        #9 c:\unreal\src\ircd.c:1564: SocketLoop
    Module: MSVCR80
        #10 c:\unreal\src\ircd.c:1564: endthread
        #11 c:\unreal\src\ircd.c:1564: endthread

STACK FRAME 0 INFO:
Access violation thrown: *p1 points to 0x0; p1 IS A BAD POINTER!
At line 289:
    - str 0x00494c58 "" unsigned char *
             >> 0 unsigned char
    - format 0x00c8f4a1 " :%s%s " const unsigned char *
             >> 32 ' ' const unsigned char

Which would suggest a NULL pointer for chptr->chname (or???), but chptr->chname has been proven to be '##' so it can't be (actually it can never be anyway, since NULL->chname is non-NULL). So I'm kinda lost.

I suspect it's compiler-version related though.

Could it simply be a Visual Studio beta problem?

(Thanks Bugz, good to hear it works fine on vstudio 7.1)

**

/me taking his hands off this bug ;)

Stealth

2005-11-20 21:24

reporter   ~0010786

I have not been able to fully test it with 7.1, but from running tests and things it appears to run without problem. If you ever need/want a full compiler output from 7.1, I can get that for you too (to see what 7.1 whines about in compiling, which IIRC wasn't anything serious) :)

syzop

2006-02-09 16:52

administrator   ~0011190

Does this bug still occur with Visual Studio 2005 (if I'm not mistaken that is Visual Studio 8 [non-beta]) ?

Yamake

2006-02-10 12:46

reporter   ~0011193

Yep, it sure does. O.O

Issue History

Date Modified Username Field Change
2005-11-20 17:36 Yamake New Issue
2005-11-20 17:36 Yamake File Added: wircd.884.core
2005-11-20 17:55 Stealth Note Added: 0010782
2005-11-20 17:57 Stealth Note Edited: 0010782
2005-11-20 20:39 syzop Note Added: 0010785
2005-11-20 21:24 Stealth Note Added: 0010786
2005-12-09 16:28 syzop Summary Unreal Crashes on Join => Self-compiled ircd w/MS VStudio 8 beta: Unreal Crashes on Join
2006-02-09 16:52 syzop Note Added: 0011190
2006-02-10 12:46 Yamake Note Added: 0011193
2006-04-10 13:25 syzop Relationship added related to 0002875
2006-05-08 16:23 syzop Status new => resolved
2006-05-08 16:23 syzop Fixed in Version => 3.2.5
2006-05-08 16:23 syzop Resolution open => duplicate
2006-05-08 16:23 syzop Assigned To => syzop