Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Crashed Dump File?

I run Debug Diagnostic tool on my windows server 2008. It created dump files. Because my asp.net application gives an exception time to time.

I need step by step instruction how to debug dump file. Do I need to debug in production server or locally? What do I need to have? How to configure?

How to determine where in application is the problem?

Is there any other ways how to read Dump files?

Here is the post I found it has pretty good explanation about dump files but they didn't explain the debugging part

http://blogs.msdn.com/b/tess/archive/2009/03/20/debugging-a-net-crash-with-rules-in-debug-diag.aspx

like image 462
Michael Born Avatar asked May 16 '11 15:05

Michael Born


People also ask

How do I debug a kernel crash dump?

opendump (Open Dump File) command, followed with g (Go). It is possible to debug multiple dump files at the same time. This can be done by including multiple -z switches on the command line (each followed by a different file name), or by using . opendump to add additional dump files as debugger targets.

How do I fix a crash dump?

In Control Panel, select System and Security > System. Select Advanced system settings, and then select the Advanced tab. In the Startup and Recovery area, select Settings. Make sure that Kernel memory dump or Complete memory dump is selected under Writing Debugging Information.


1 Answers

All you need to debug the dump is WinDbg, which can be downloaded from Microsoft and SOS which ships with the framework.

Start WinDbg and load the dump file from the File menu. This will tell you some initial information about the dump. This will tell you the kind of dump you're looking at.

Set up symbols by using the command .symfix.

Load SOS by using the command .loadby sos clr (.NET 4) or .loadby sos mscorwks (previous versions of .NET).

Take a look at the threads in the dump file using the !threads command. Notice the exception column on the far right. If you see any exceptions in this column use the !pe <EXCEPTION OBJECT> command to get the details.

For additional info read some of the posts on Tess' blog.

like image 153
Brian Rasmussen Avatar answered Sep 25 '22 05:09

Brian Rasmussen