Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Using Windbg to read sql servrer mdmp files Expand / Collapse
Author
Message
Posted Sunday, December 23, 2007 7:54 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 1:37 PM
Points: 127, Visits: 553
Hello,
We had problem on a sql server 200 machine and i have a mini dump file and i want to take a look at it using windbg.
I installed it on my machine and downloaded the symbols locally and tried it and i was not successful.
The question is can i copy the dump file from server to my local machine and then run windbg to debug the file or do i have to install windbg on the server.
Any help or any instructions how to do this would be greatly appreciated.

Thanks in adnvance



Post #436075
Posted Monday, December 24, 2007 6:48 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 1:37 PM
Points: 127, Visits: 553
Basically i am looking for what paths should i give for image and symbol files.


Post #436144
Posted Thursday, December 27, 2007 1:44 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, March 14, 2008 4:50 AM
Points: 64, Visits: 103
Hi Chinn,

This is the easiest way to get setup:

Download and install the debugging tools for windows - I prefer c:\debuggers but you can install it wherever you like.

Then open a cmd prompt and type:

set _NT_SYMBOL_PATH=srv*c:\debuggers\symbols*http://msdl.microsoft.com/download/symbols;C:\Program Files\Microsoft SQL Server\MSSQL\Binn

then add your debuggers directory to the past statement

set PATH=%PATH%;c:\debuggers

change to the directory with your mini dump in and do either:

windbg -z dumpFile.mdmp

or cbd -z dumpfile.mdmp

I prefer cdb but windbg gives you a gui.


What I would do is in either application do a "kv 500" this will give you a stack trace, if you do a "!analyze -v" it might point you to what caused it - but beware that the command guesses at the cause it isn't 100%.


To see if the symbols have loaded correctly do a "lmvl msqlservr" if it doesn't show the details of the file then do a "!sym noisy" and the ".reload sqlservr.exe" this will show you all the paths it is looking for the symbol and why each failed.



Also have a look in the logs directory you should have a text file with the same name as the dump file (.txt) this has the stack trace of the thread that crashed and if it was associated with a spid then also the input and output buffers so you should be able to work out what sql caused the crash. The dump of the pss and execution context structures will give you the spid, the database, the current command and the line number of the t-sql that caused the crash.





Ed

Post #436578
Posted Thursday, December 27, 2007 3:02 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, December 17, 2014 1:31 AM
Points: 553, Visits: 1,573
Hey ED !!

Thanks a lot for the information..:)


"More Green More Oxygen !! Plant a tree today"
Post #436593
Posted Thursday, December 27, 2007 7:38 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 1:37 PM
Points: 127, Visits: 553
ED,

Thanks For your time and patience.
This is really great information..
Thanks Very Much!



Post #436657
Posted Thursday, December 27, 2007 7:44 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, March 14, 2008 4:50 AM
Points: 64, Visits: 103
no problem - if you aren't able to see anything feel free to post your dump file or send me a pm with it and i'll have a look.
Post #436663
Posted Thursday, December 27, 2007 8:56 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, December 16, 2014 1:37 PM
Points: 127, Visits: 553
Ed,

If i am running Analyze v i am getting symbols not found and as you said if i do lmvl server and sym noisy and reload sql server.exe does it cause any hindernace to the sql server on the machine..

By the way for some reason it didnt create a text file along with this dump i have see it create text files with some other dumps but with not this particular one.

I will pm you a dump file..if you dont mind..
thanks..





Post #436703
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse