Quote:
|
Originally Posted by bob1122
2h uptime, im using Frozens L2Server.exe ... allthough last night those bastards crashed it, time for me to program a autoreboot :<.....
to tontor: Source ... Either privatly pm me or releasing source publiclly would probably help out... i've been working (more like thinking :P) about the dll .... i guess aphexs way off adding it to .exe's should work.... I'm just to damn tired latly to start working on a dll from scratch... if you want to know anything further let me know....I dont *think* Any exploits can be made from source, but if it is possible, dont release it to public... and i hesitate thinking of even releasing it to me :P
|
Awhile ago i would of considered releasing it but due to the ammount of other fixes i have incorperated into the same source I wont be.The only thing that seperates what I've released and what I use is some ifdefs.
Quote:
Server Up Time Wed Oct 12 09:49:09 2005
Current Time : Wed Oct 12 14:20:05 2005
Elapsed Time : 0 days 4 hours 30 minutes 56 seconds
IOBufferPool - 1320
[(4740) 2005/10/12 14:20:05]: =======================
an Access Violation in module L2Server.exe at 001b:0053aa21.
start at 2005/10/12 09:49:02
Write to location 00000000 caused an access violation.
Registers:
EAX=74a28650 CS=001b EIP=0053aa21 EFLGS=00010297
EBX=0001c199 SS=0023 ESP=70a9f950 EBP=70a9f9b8
ECX=00000007 DS=0023 ESI=00000032 FS=003b
EDX=73c535b0 ES=0023 EDI=20b3839c GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 33 c9 89 88 10 20 00 00 c7
Stack dump:
70a9f950: 0043fbb6 00000032 004459f0 005bd8b8 70a9f9f0 0001d8bf 4820b47e 0001c199
70a9f970: 402ecb0c cacf5f3b c0116912 00000000 00000000 89ea644c 006c090c 89ea63e4
70a9f990: 40700000 00000000 70a9f984 70a9f9cc 005a1570 00000000 70a9f964 70a9fa28
70a9f9b0: 005a4468 ffffffff 70a9fa34 0049deb7 44440024 4820b47e 0000f000 4a2b3378
70a9f9d0: 40fc1991 a9efb833 40fd8bfc 00000000 c0ab3000 00000000 40b77000 005bd8b8
70a9f9f0: 00000001 4820b47e 0001c1a8 0001d8bb fffff268 0001c199 0001d8bf fffff268
70a9fa10: 89ea644c 70a9fb08 89ea63e4 005433c8 0034b9e2 70a9fa10 70a9fbac 005a7c80
70a9fa30: ffffffff 70a9fbb8 00543abe 4a2b3378 40fc1991 a9efb833 40fd8bfc 00000000
70a9fa50: c0ab3000 a29302f4 40fc1a87 05a48cf6 40fd8bb7 00000000 70a9f9cc 89ea63e4
70a9fa70: 8b24b544 20b3839c 70a9fb08 0043efc9 005c961c 00001f75 33926270 70a9fb2c
ver = Jun 8 2004____15:38:30 thread id=1
void IOThread_common(void *arglist) <--
void CIOSocket::ReadCallback(DWORD dwTransferred) <--
CUserSocket::OnRead <--
MoveToLocationPacket <--
CCreature::MoveToLocation <--
inline void AddExecutable(MemoryObject *Matrix, Native Func, CExecutionArgument* Arg) <--
add exec - func call <--
void CCreatureController::Move <--
void CCreatureController: oFirstAction() <--
void CMoveAction::Start() <--
void CMoveAction::SetMoving() <--
void CCreatureController::ActionBroadcastMove(FVector vStart, FVector vTo) <--
void BroadcastToNeighborDist(FVector vPos, double dist, const char* format, ...)
Thread[0] (good): Lock Stack :
Thread[1] (ahehe): Lock Stack :
|
Actually upon reviewing this specific crash, its due to something in server deadlock handler that from the look of stack isnt directly an effect of my modifications, there is 1 addr on stack relative to it though.
Quote:
0053AA1D . 5F POP EDI
0053AA1E . 5E POP ESI
0053AA1F . 7D 07 JGE SHORT L2Server.0053AA28
0053AA21 C605 00000000>MOV BYTE PTR DS:[0],1
0053AA28 > 33C9 XOR ECX,ECX
0053AA2A . 8988 10200000 MOV DWORD PTR DS:[EAX+2010],ECX
|
Quote:
|
0053AA21 C605 00000000>MOV BYTE PTR DS:[0],1
|
This isn't the only location I've seen this done, purposely causing an exception? Or somewhere along the lines someones modifications have left it this way. I haven't checked it against original c1 exe. Theres 1 other location that I have seen this in a deadlock handler off the top of my head. The other one I nop'd out and it recovers from deadlock and resumes just fine. I discovered it while debugging l2server, pausing it in a debugger would cause deadlock so i ran into it. Can't tell you the effects of nop'ing this really, but looks like it was done intentionally on unrecoverable errors.
Quote:
0040D0F5 > /C605 00000000>MOV BYTE PTR DS:[0],1
004393A5 > /C605 00000000>MOV BYTE PTR DS:[0],1
00489FC5 > /C605 00000000>MOV BYTE PTR DS:[0],1
004BF835 > /C605 00000000>MOV BYTE PTR DS:[0],1
004B39D5 > /C605 00000000>MOV BYTE PTR DS:[0],1
004E03A5 > /C605 00000000>MOV BYTE PTR DS:[0],1
^some shared memory error
0048E874 > \C605 00000000>MOV BYTE PTR DS:[0],1 ; Case 8019 of switch 0048E2CD
^some menu handler
0053AA21 C605 00000000>MOV BYTE PTR DS:[0],1
^your crash, something to do CIODeadlock handler
|
And then there was another I changed for deadlocks during debugging in there somewhere that's not listed.
Quote:
Server Up Time Wed Oct 12 08:08:58 2005
Current Time : Wed Oct 12 08:25:21 2005
Elapsed Time : 0 days 0 hours 16 minutes 23 seconds
IOBufferPool - 19448
[(3912) 2005/10/12 08:25:21]: =======================
an Access Violation in module l2server.exe at 001b:0045f79e.
start at 2005/10/12 08:08:55
Write to location 00000000 caused an access violation.
Registers:
EAX=00000000 CS=001b EIP=0045f79e EFLGS=00010246
EBX=78991444 SS=0023 ESP=75dffe50 EBP=00000000
ECX=00000000 DS=0023 ESI=1734a264 FS=003b
EDX=00000000 ES=0023 EDI=17371364 GS=0000
Bytes at CS:EIP:
0f 00 00 e8 2a 12 07 00 8d 4d d0 e8 22 c4 fb ff
Stack dump:
75dffe50: 00000000 2c142c4c 77e6bb6d 00000000 00000019 00000000 00000000 48107fa8
75dffe70: 000003e8 014069f2 00000002 75dffe50 75dffeb8 005a52e8 ffffffff 75dffec4
75dffe90: 0053adaf 787d4524 876286fb 03d9e124 00000001 77e6bb6d 004df622 0000001b
75dffeb0: 876286e0 75dffe9c 75dffef0 005afb80 ffffffff 75dffefc 0053aed9 00000001
75dffed0: 00000002 00000000 03d9e124 00000001 77e6bb6d fffd40e0 ffffffff 75dffed8
75dffef0: 75dfff6c 005afb90 ffffffff 75dfff78 0053cbe6 00000001 00000002 00000000
75dfff10: 00000000 00000003 787c0bf0 00000000 00001000 00010000 bffeffff 0000000f
75dfff30: 00000004 0000024a 00010000 0205000f f1133c88 e0632cee fce8e8a0 00000005
75dfff50: 00000002 000503a8 00000000 e062d821 00000000 2c142c4c 75dfff10 75dfffa8
75dfff70: 005afca0 ffffffff 75dfffb8 0053cd1b 00000003 787c0bf0 0058eb2a 00000003
ver = Jun 8 2004____15:38:30 thread id=3
void IOThread_common(void *arglist) <--
void CDBPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
void CPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped) <--
cpacket: niocallback_funccall <--
ReplyPackageSendToTarget(CDBSocket *socket, const unsigned char *packet)
Thread[0] (good): Lock Stack :
Thread[1] (good): Lock Stack :
Thread[2] (good): Lock Stack :
Thread[3] (ahehe): Lock Stack :
|
However this one is related in some way, but i need the base address of the dll if you could click on the console icon in top left and edit->mark all, copy it right after it loads the dll and paste to me here, i can tell what call its in. Looks like stack got messed up returning somewhere it shouldn't.