Raised This Month: $51 Target: $400
 12% 

Attaching windbg to a process (gameserver)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joshtrav
Senior Member
Join Date: Sep 2009
Old 12-31-2012 , 16:41   Attaching windbg to a process (gameserver)
Reply With Quote #1

I was recently asked to attach a debugger to my game server to help facilitate in a more comprehensive crash dump analysis. It was a bit tedious at first so I figured posting something may help others in the future if they should need to do the same.

This website offers a good walk-through to get things rolling: http://support.citrix.com/article/CTX106566

One of the larger points is that you need windbg 32bit because srcds is run at 32bit. That was a problem for me as the installers all forced me to go with 64bit since I was on windows 2003, 64bit.

I also had errors with the installation of the windows developer tools web download for net 4. So I went with this version instead, which installed nicely: http://www.microsoft.com/en-us/downl...s.aspx?id=3138

Of course, as I said before this was forcing me to the 64bit version but it installed the required .NET framework I needed to get the program running. After that, I found this website which had a standalone version of the x86 debugger: http://rxwen.blogspot.ca/2010/04/sta...120002633.html

Once that was downloaded and started, I attached it to the srcds process, typed G (Thanks TnT, Asherkin, psychonic), and things were rolling. I only mention this part as I actually forgot about typing G in at first, and began to panic as it kept locking up the srcds process.

So, the TL : DR version:
Download and install:http://www.microsoft.com/en-us/downl....aspx?id=3138\
Then download and run: http://rxwen-blog-stuff.googlecode.c...02.633_x86.zip
Finally, press f6, attach to srcds, type g to continue, and wait!
__________________


Last edited by joshtrav; 12-31-2012 at 16:42.
joshtrav is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-31-2012 , 16:59   Re: Attaching windbg to a process (gameserver)
Reply With Quote #2

Good times I didn't help you much at all though - was just pestering Asherkin with my myriad of questions ;)

Thanks for the info and I'm sure others will find this useful... however, as Asherkin pointed out, if the problem is with the engine itself, there not much we can see from the dump files without the symbols which Valve doesn't supply for Windows and is cutting more and more from Linux...

But, if the problem is in SM or MM, the symbols are available for them. Happy bug hunting
__________________
View my Plugins | Donate
TnTSCS is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-06-2013 , 17:32   Re: Attaching windbg to a process (gameserver)
Reply With Quote #3

I'm lazy and just run a local server and attach the debugger through it using Visual Studio.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode