Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Administration
»
Using Windbg to read sql servrer mdmp files
Using Windbg to read sql servrer mdmp files
Rate Topic
Display Mode
Topic Options
Author
Message
chinn
chinn
Posted Sunday, December 23, 2007 7:54 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:32 AM
Points: 127,
Visits: 490
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
chinn
chinn
Posted Monday, December 24, 2007 6:48 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:32 AM
Points: 127,
Visits: 490
Basically i am looking for what paths should i give for image and symbol files.
Post #436144
Edward Elliott-360586
Edward Elliott-360586
Posted Thursday, December 27, 2007 1:44 AM
Valued 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
Minaz
Minaz
Posted Thursday, December 27, 2007 3:02 AM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Sunday, April 21, 2013 10:57 PM
Points: 535,
Visits: 1,423
Hey ED !!
Thanks a lot for the information..:)
"More Green More Oxygen !! Plant a tree today"
Post #436593
chinn
chinn
Posted Thursday, December 27, 2007 7:38 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:32 AM
Points: 127,
Visits: 490
ED,
Thanks For your time and patience.
This is really great information..
Thanks Very Much!
Post #436657
Edward Elliott-360586
Edward Elliott-360586
Posted Thursday, December 27, 2007 7:44 AM
Valued 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
chinn
chinn
Posted Thursday, December 27, 2007 8:56 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:32 AM
Points: 127,
Visits: 490
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 »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.