View Single Post
Old 25.01.2006, 22:53   #18
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

I am not here to tell you the reason for your every crash. I don't mind at all that you post your crash dumps for me to look at, but don't expect for me to trace your every dump and tell you the exact reason for every crash. Posting them here is helpful to see if they are the result of a malicious user, bad handling, or problem with a previous patch. But I'm not here to solve your servers every specific problem, don't expect it.



Code:
text:004FE6BF loc_4FE6BF:                             ; CODE XREF: User__SendUserInfo+5D2j
.text:004FE6BF                 mov     [ebp+var_2C], eax
.text:004FE6C2                 mov     [ebp+var_24], 0
.text:004FE6C9                 lea     esp, [esp+0]
.text:004FE6D0
.text:004FE6D0 loc_4FE6D0:                             ; CODE XREF: User__SendUserInfo+636j
.text:004FE6D0                 cmp     [ebp+var_24], eax
.text:004FE6D3                 jge     short loc_4FE718
.text:004FE6D5                 mov     ecx, [edi+0A50h]
.text:004FE6DB                 mov     eax, [ebp+var_24]
.text:004FE6DE                 shl     eax, 5
.text:004FE6E1                 mov     edx, [eax+ecx]
.text:004FE6E4                 add     eax, ecx
.text:004FE6E6                 movsx   eax, word ptr [edx]
EDX=00000000 EAX=2a671f84 ECX=2a671f84

you can see by eax+ecx that var_24 was set to 0 from the path above not jumped to, var24 loaded into eax,eax<<5, eax=ecx since eax is 0 and added together edx is the contents of 2a671f84 which is null, dunno why. couldnt tell you. edi is the userstruct edi+0x0a50 is a substruct contents of which i dunno since have no server running, but +0a54 is >>5 and +0a50 is << 5. debugging it in a few mins would show what exactly it does knowing what i said above. it uses the signed value loaded from eax pushes it with format h and calls assemble, after this process is done, loads 3 floats, which are probably x,y,z location, later i have commented that path is used for gmwindow user stat view. user manipulated an item while gm checked his inv? dont know. just that the pointer was null for some value in userstruct while sending userinfo packet.

Note: ustruct+0a20 -> ustruct+0xadb was locked during this process, so the value was incorrect before it started, not a race condition.







Quote:
Server Up Time Tue Jan 24 08:50:08 2006

Current Time : Tue Jan 24 20:14:48 2006

Elapsed Time : 0 days 11 hours 24 minutes 40 seconds
IOBufferPool - 5036

[(1780) 2006/01/24 20:14:48]: =======================
an Access Violation in module l2server3.exe at 001b:03020100.
start at 2006/1/24 08:50:06
Write to location fffffd07 caused an access violation.

Registers:
EAX=fffffd07 CS=001b EIP=03020100 EFLGS=00010286
EBX=0f000001 SS=0023 ESP=6d90fdf0 EBP=6d90fe14
ECX=0000000f DS=0023 ESI=9a6d6304 FS=003b
EDX=34f40778 ES=0023 EDI=00000001 GS=0000
Bytes at CS:EIP:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Stack dump:
6d90fdf0: 9a069bdc 00000023 0f000001 6d90fde0 6d90fe4c 6d90fdf0 6d90fe4c 005ac6b0
6d90fe10: ffffffff 6d90fe58 00503181 fffffd07 6ec67301 6ec67301 9a069bdc 00000023
6d90fe30: 6ec67370 9a069bdc 00000018 fffffd07 0f000001 13fffd07 6d90fe28 6d90feb8
6d90fe50: 005acdf0 ffffffff 6d90fec4 0050fa78 9a069bdc 6ec673a4 1b04f4fa 9a069bdc
6d90fe70: 77e4193e 0000003e 6d90fedc 0000003f 71a912ca 0000003f 00399678 71aa1a16
6d90fe90: 00000000 1b04f4f7 003970b8 000003e5 6d90ff78 0000002c 006c0794 20b38474
6d90feb0: 6ec67370 6d90fe68 6d90fee4 005ad778 ffffffff 6d90fef0 00539866 1b04f4fa
6d90fed0: 9a069bdc 77e4193e 6d90ff0c 6d90feec 6d90fecc 6d90ff6c 005afaa0 ffffffff
6d90fef0: 6d90ff78 0053be2a 0000002c 00000001 0053cbe6 00000001 0000002c 9a06aecc
6d90ff10: 00000000 00000001 69955020 00000000 00001000 00010000 bffeffff 00000003


ver = Jun 8 2004____15:38:30 thread id=1

void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
IconAction <--
User::IconAction()

Thread[0] (good): Lock Stack :

Thread[1] (ahehe): Lock Stack :
Stack is messed up somewhere, EIP's value is quite odd 03020100, there is alot of stuff on stack including the exception handler from the begining of the call, somehow returning without cleaning up stack, giving incorrect eip, off by alot.

6d90fdf0: 9a069bdc 00000023 0f000001 6d90fde0 6d90fe4c 6d90fdf0 6d90fe4c 005ac6b0
6d90fe10: ffffffff 6d90fe58 00503181

I'll look into it i think i might know what its related to.
tontor is offline