Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Server crash dump
Re: Server crash dump [message #481808 is a reply to message #481678] Sat, 08 June 2013 12:52 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3800
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).


Re: Server crash dump [message #481810 is a reply to message #481259] Sat, 08 June 2013 13:34 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4298
Registered: April 2011
Karma: 0
General (4 Stars)
That code is from SSGM 2.0.2.

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 #481826 is a reply to message #481259] Sat, 08 June 2013 18:28 Go to previous messageGo to next message
Lazy5686 is currently offline  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
http://i.imgur.com/7RiVG.jpg
Re: Server crash dump [message #481879 is a reply to message #481810] Sun, 09 June 2013 10:41 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3800
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
iRANian wrote on Sat, 08 June 2013 14:34

That code is from SSGM 2.0.2.

Ah, then I have 0 ideas.


Re: Server crash dump [message #481881 is a reply to message #481259] Sun, 09 June 2013 13:34 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4298
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 #482083 is a reply to message #481259] Tue, 18 June 2013 12:02 Go to previous messageGo to next message
Lazy5686 is currently offline  Lazy5686
Messages: 254
Registered: November 2007
Karma: 0
Recruit
Here's another.

http://jelly-server.com/crashdump.20130618-185021-r5276-n1.dmp


The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
http://i.imgur.com/7RiVG.jpg
Re: Server crash dump [message #482103 is a reply to message #482083] Wed, 19 June 2013 08:10 Go to previous messageGo to next message
Lazy5686 is currently offline  Lazy5686
Messages: 254
Registered: November 2007
Karma: 0
Recruit
No edit button?

Anyways, happened a minute after Mesa loaded. http://jelly-server.com/crashdump.20130619-150302-r5276-n1.dmp


The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
http://i.imgur.com/7RiVG.jpg
Re: Server crash dump [message #482109 is a reply to message #482103] Wed, 19 June 2013 12:56 Go to previous messageGo to next message
Lazy5686 is currently offline  Lazy5686
Messages: 254
Registered: November 2007
Karma: 0
Recruit
Whats That
http://jelly-server.com/crashdump.20130619-194903-r5276-n1.dmp


The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
http://i.imgur.com/7RiVG.jpg
Re: Server crash dump [message #482112 is a reply to message #481259] Wed, 19 June 2013 14:55 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Its Ravens fault!

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Server crash dump [message #482114 is a reply to message #481259] Wed, 19 June 2013 16:37 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

I do wonder why this only seems to happen on Jelly, and only seems to have started recently while no new build was released.

http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: Server crash dump [message #482116 is a reply to message #482114] Wed, 19 June 2013 19:11 Go to previous messageGo to next message
Lazy5686 is currently offline  Lazy5686
Messages: 254
Registered: November 2007
Karma: 0
Recruit
EvilWhiteDragon wrote on Wed, 19 June 2013 16:37

I do wonder why this only seems to happen on Jelly, and only seems to have started recently while no new build was released.

We just updated from the previous build a few weeks ago. Sarcasm


The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
http://i.imgur.com/7RiVG.jpg
Re: Server crash dump [message #482119 is a reply to message #482116] Wed, 19 June 2013 23:21 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Lazy5686 wrote on Wed, 19 June 2013 21:11

EvilWhiteDragon wrote on Wed, 19 June 2013 16:37

I do wonder why this only seems to happen on Jelly, and only seems to have started recently while no new build was released.

We just updated from the previous build a few weeks ago. Sarcasm

Yeah haha, we were a bit behind the times. We haven't been on the new version until like, the past week I think.


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: Server crash dump [message #482120 is a reply to message #481259] Thu, 20 June 2013 00:22 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4298
Registered: April 2011
Karma: 0
General (4 Stars)
Is the server running matching scripts.dll and tt.dll versions yet?

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: Thu, 20 June 2013 00:22]

Report message to a moderator

Re: Server crash dump [message #482277 is a reply to message #482120] Mon, 24 June 2013 18:37 Go to previous messageGo to next message
Lazy5686 is currently offline  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
http://i.imgur.com/7RiVG.jpg
Re: Server crash dump [message #482288 is a reply to message #481259] Tue, 25 June 2013 01:45 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

Ehmm, why were you mix&matching different versions of scripts.dll and TT.dll AND complaining about crashes?

http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: Server crash dump [message #482309 is a reply to message #481259] Tue, 25 June 2013 07:58 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Well it was an accident, obviously Sad

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: Server crash dump [message #482324 is a reply to message #482288] Tue, 25 June 2013 12:41 Go to previous messageGo to next message
Lazy5686 is currently offline  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
http://i.imgur.com/7RiVG.jpg
Re: Server crash dump [message #482346 is a reply to message #482324] Wed, 26 June 2013 10:07 Go to previous messageGo to next message
Lazy5686 is currently offline  Lazy5686
Messages: 254
Registered: November 2007
Karma: 0
Recruit
Running stock scripts.dll, scripts2.dll and tt.dll. All the latest version.

http://jelly-server.com/crashdump.20130626-163732-r5276-n1.dmp

EDIT:
[14:06:48] <iran> crashes inside tt.dll
[14:09:13] <iran> call stack might be corrupted
[14:10:56] <iran> ask them where it crashed


The Scruffy, AngryCanadian with Vuvuzelas
-Jelly Games admin
http://i.imgur.com/7RiVG.jpg

[Updated on: Wed, 26 June 2013 10:12]

Report message to a moderator

Re: Server crash dump [message #482347 is a reply to message #481259] Wed, 26 June 2013 10:23 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4298
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 messageGo to next message
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 messageGo to next message
Lazy5686 is currently offline  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
http://i.imgur.com/7RiVG.jpg
Re: Server crash dump [message #482480 is a reply to message #481259] Mon, 01 July 2013 00:07 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4298
Registered: April 2011
Karma: 0
General (4 Stars)
StealthEye fixed them, not me.

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 #482488 is a reply to message #482475] Mon, 01 July 2013 07:39 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

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


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: Server crash dump [message #482491 is a reply to message #482488] Mon, 01 July 2013 09:40 Go to previous message
Xpert is currently offline  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

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
Previous Topic: Slow loading times with 4.0
Next Topic: Errror since new patch updated
Goto Forum:
  


Current Time: Thu Mar 28 02:50:34 MST 2024

Total time taken to generate the page: 0.01140 seconds