Re: Server crash dump [message #481808 is a reply to message #481678] |
Sat, 08 June 2013 12:52 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](/images/custom_avatars/21300.png) |
Jerad2142
Messages: 3814 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
iRANian wrote on Thu, 06 June 2013 12:03 | Crashed in MDB_SSGM_KeyHook_Clone::Destroyed(GameObject *obj) while Calling ::RemoveHook, which I added to the plugin by copying it from the SSGM 2.0.2 source:
void MDB_SSGM_KeyHook_Clone::Destroyed(GameObject *obj) {
if (is_keyhook_set == 1337) {
RemoveHook();
}
}
void MDB_SSGM_KeyHook_Clone::RemoveHook() {
if (hookid != 0 && RemoveKeyHook != 0) {
RemoveKeyHook(hookid);
hookid = 0;
if (k != 0) {
delete[] k->key;
delete k;
k = 0;
}
}
}
70: void MDB_SSGM_KeyHook_Clone::Destroyed(GameObject *obj) {
730F12A0 56 push esi
730F12A1 8B F1 mov esi,ecx
71: if (is_keyhook_set == 1337) {
730F12A3 81 7E 24 39 05 00 00 cmp dword ptr [esi+24h],539h
730F12AA 75 45 jne MDB_SSGM_KeyHook_Clone::Detach+51h (730F12F1h)
72: RemoveHook();
730F12AC 8B 46 20 mov eax,dword ptr [esi+20h]
730F12AF 85 C0 test eax,eax
730F12B1 74 3E je MDB_SSGM_KeyHook_Clone::Detach+51h (730F12F1h)
730F12B3 8B 0D F0 20 0F 73 mov ecx,dword ptr [__imp_RemoveKeyHook (730F20F0h)]
730F12B9 8B 09 mov ecx,dword ptr [ecx]
730F12BB 85 C9 test ecx,ecx
730F12BD 74 32 je MDB_SSGM_KeyHook_Clone::Detach+51h (730F12F1h)
730F12BF 50 push eax
730F12C0 FF D1 call ecx
730F12C2 8B 46 1C mov eax,dword ptr [esi+1Ch]
730F12C5 83 C4 04 add esp,4
730F12C8 C7 46 20 00 00 00 00 mov dword ptr [esi+20h],0
730F12CF 85 C0 test eax,eax
730F12D1 74 1E je MDB_SSGM_KeyHook_Clone::Detach+51h (730F12F1h)
730F12D3 8B 50 04 mov edx,dword ptr [eax+4] // CRASHES HERE
730F12D6 52 push edx
730F12D7 FF 15 80 20 0F 73 call dword ptr [__imp_operator delete[] (730F2080h)]
730F12DD 8B 46 1C mov eax,dword ptr [esi+1Ch]
730F12E0 50 push eax
730F12E1 FF 15 88 20 0F 73 call dword ptr [__imp_operator delete (730F2088h)]
730F12E7 83 C4 08 add esp,8
730F12EA C7 46 1C 00 00 00 00 mov dword ptr [esi+1Ch],0
730F12F1 5E pop esi
73: }
74: }
Registers:
EDX 730F22F0
EAX 0000001F
EBP 0018FAF0
AL 1F
The value of the 'k' pointer variable (which is of type KeyHookStruct )somehow was set to 0x1F instead of a valid pointer address, then the code tries to access memory address variable 'k' + 4 (0x1f + 4) which is invalid and the server crashed.
|
Perhaps it was destroyed before the create function was completed thus k was not yet set to 0. Easiest way to protect against this is to attach a dummy script when the create function is done. Then check to see if this dummy script is attached before doing any point related operations on delete, custom, or damaged events (or anything other events that could potentially get called before create is done).
Visit Jerad's deer sweat shop
|
|
|
|
Re: Server crash dump [message #481826 is a reply to message #481259] |
Sat, 08 June 2013 18:28 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
Lazy5686
Messages: 254 Registered: November 2007
Karma: 0
|
Recruit |
|
|
Well it went one day without crashing.
Back to disabling a few more plugins at a time before we find the culprit.
The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
|
|
|
|
Re: Server crash dump [message #481881 is a reply to message #481259] |
Sun, 09 June 2013 13:34 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
iRANian
Messages: 4311 Registered: April 2011
Karma: 0
|
General (4 Stars) |
|
|
It was running on the server for about 9 months or so, this crash happened after an update to the latest 4.0 server code, but I'm not sure if it's related. It's very weird though..
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
|
|
|
|
|
|
|
|
|
|
|
Re: Server crash dump [message #482277 is a reply to message #482120] |
Mon, 24 June 2013 18:37 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
Lazy5686
Messages: 254 Registered: November 2007
Karma: 0
|
Recruit |
|
|
iRANian wrote on Thu, 20 June 2013 00:22 | Is the server running matching scripts.dll and tt.dll versions yet?
|
We are now.
If only XWIS could come back online...
The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
|
|
|
|
|
Re: Server crash dump [message #482324 is a reply to message #482288] |
Tue, 25 June 2013 12:41 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
Lazy5686
Messages: 254 Registered: November 2007
Karma: 0
|
Recruit |
|
|
EvilWhiteDragon wrote on Tue, 25 June 2013 01:45 | Ehmm, why were you mix&matching different versions of scripts.dll and TT.dll AND complaining about crashes?
|
We thought raven had been using the same versions of everything. He hasn't sent anyone his source yet so I don't even know what the differences were.
The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
|
|
|
|
Re: Server crash dump [message #482347 is a reply to message #481259] |
Wed, 26 June 2013 10:23 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
iRANian
Messages: 4311 Registered: April 2011
Karma: 0
|
General (4 Stars) |
|
|
I checked a few of the other crashdumps in this thread and except the one crashing inside taunts.dll the other ones crash at the same point:
70AC3B42 FF 46 58 inc dword ptr [esi+58h]
Could this be a plugin or something that's causing the crash?
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
[Updated on: Wed, 26 June 2013 10:24] Report message to a moderator
|
|
|
Re: Server crash dump [message #482475 is a reply to message #482324] |
Sun, 30 June 2013 18:00 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
raven
Messages: 595 Registered: January 2007 Location: Toronto, Ontario
Karma: 0
|
Colonel |
|
|
Lazy5686 wrote on Tue, 25 June 2013 12:41 |
EvilWhiteDragon wrote on Tue, 25 June 2013 01:45 | Ehmm, why were you mix&matching different versions of scripts.dll and TT.dll AND complaining about crashes?
|
We thought raven had been using the same versions of everything. He hasn't sent anyone his source yet so I don't even know what the differences were.
|
The source is posted on git...
-Jelly Administrator
-Exodus Administrator
|
|
|
Re: Server crash dump [message #482476 is a reply to message #482475] |
Sun, 30 June 2013 19:44 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
Lazy5686
Messages: 254 Registered: November 2007
Karma: 0
|
Recruit |
|
|
raven wrote on Sun, 30 June 2013 18:00 |
Lazy5686 wrote on Tue, 25 June 2013 12:41 |
EvilWhiteDragon wrote on Tue, 25 June 2013 01:45 | Ehmm, why were you mix&matching different versions of scripts.dll and TT.dll AND complaining about crashes?
|
We thought raven had been using the same versions of everything. He hasn't sent anyone his source yet so I don't even know what the differences were.
|
The source is posted on git...
|
Well we're running something different right now as Iran and Stealtheye fixed the cause of the crashes that were plaguing us the last few weeks.
The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
|
|
|
|
|
Re: Server crash dump [message #482491 is a reply to message #482488] |
Mon, 01 July 2013 09:40 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) |
![](http://renegadeforums.com/images/custom_avatars/20487.jpg) |
Xpert
Messages: 1588 Registered: December 2005 Location: New York City
Karma: 0
|
General (1 Star) |
|
|
Ethenal wrote on Mon, 01 July 2013 10:39 |
raven wrote on Sun, 30 June 2013 20:00 |
Lazy5686 wrote on Tue, 25 June 2013 12:41 |
EvilWhiteDragon wrote on Tue, 25 June 2013 01:45 | Ehmm, why were you mix&matching different versions of scripts.dll and TT.dll AND complaining about crashes?
|
We thought raven had been using the same versions of everything. He hasn't sent anyone his source yet so I don't even know what the differences were.
|
The source is posted on git...
| oh now you listen to me
|
I bugged him yesterday on IRC for it lol.
![http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg](http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg)
Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.
Part time streamer - https://twitch.tv/gg_wonder
|
|
|