View Single Post
Old 04.12.2005, 21:46   #5
tontor
Архивный участник
 
Join Date: May 2005
Posts: 109
Default

Quote:
Originally Posted by avatard
only crashed with my executable with the following linerror which I suspect has to do with my scripts:
Code:
Current Time : Sun Dec 04 23:08:07 2005

Elapsed Time : 0 days 19 hours 53 minutes 5 seconds
IOBufferPool - 27764

[(3920) 2005/12/04 23:08:07]: =======================
an Access Violation in module l2server.exe at 001b:0048e290.
start at 2005/12/4 03:14:59
Write to location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0048e290 EFLGS=00010246
EBX=00000000 SS=0023 ESP=0012f864 EBP=0012f990
ECX=00000002 DS=0023 ESI=0048e140 FS=003b
EDX=1ff6a000 ES=0023 EDI=00000000 GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 ff 15 84 52 5b 00 33 c0 8b 
Stack dump:
0012f864: 00000000 0012fa08 0048e140 00000000 00650048 006c006c 0020006f 006f0057
0012f884: 006c0072 00210064 41530000 00000000 00000000 02080042 00000000 00000000
0012f8a4: 00000000 00000000 00000000 00000000 00000002 00000021 00000000 00000000
0012f8c4: 00000042 00000000 00000042 00000003 0012f95e 41536760 00000042 0012f95c
0012f8e4: 00000000 00000042 43014300 0012f874 00000000 0012fba8 77f45a34 77f8add0
0012f904: ffffffff 77f4a4ff 77f4af5e 77f47e3d 0012f95e 00000025 77f4b0b1 77fc2100
0012f924: 77f4b052 415366b0 41536760 00000000 003a0043 004c005c 00530032 00720065
0012f944: 00650076 005c0072 0032004c 00000000 0048e140 0012f9f0 00000001 0012f9f0
0012f964: 00000000 0012f850 0012fa0c 005a7281 00000001 0012fa08 00000000 0012f868
0012f984: 0012fa24 005a7281 ffffffff 0012f9bc 77d0612f 18610034 00000002 00000000


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

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) <-- 
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Thread[0] (good):      Lock Stack  : 

Thread[1] (good):      Lock Stack  :
WndProc is the main menu/gui handler, this specific crash after looking up a string from resources, it checked the message ID, that couldn't be handled, according to condition forcing it to crash purposely. (in which it would have closed l2server anyways if not forced to crash)

Code:
.text:0048E17B                 call    ds:LoadStringW
.text:0048E181                 mov     ecx, [ebp+arg_4] <- 2nd argument to wndproc = msgid
.text:0048E184                 cmp     ecx, 0Fh
.text:0048E187                 ja      loc_48E2B2
.text:0048E18D                 jz      loc_48E269
.text:0048E193                 mov     eax, ecx
.text:0048E195                 sub     eax, 2
.text:0048E198                 jz      loc_48E288
|
|
|
\
.text:0048E288                 mov     byte_6BBADB, 0
.text:0048E28F                 push    edi             ; nExitCode
.text:0048E290                 mov     large byte ptr ds:0, 1 <- forced crash
.text:0048E297                 call    ds:PostQuitMessage
.text:0048E29D                 xor     eax, eax
.text:0048E29F                 mov     ecx, [ebp+var_C]
.text:0048E2A2                 mov     large fs:0, ecx
.text:0048E2A9                 pop     edi
.text:0048E2AA                 pop     esi
.text:0048E2AB                 pop     ebx
.text:0048E2AC                 mov     esp, ebp
.text:0048E2AE                 pop     ebp
.text:0048E2AF                 retn    10h
tontor is offline