This is a mirror of official site: http://jasper-net.blogspot.com/

Using WinDbg to inspect native dump files

| Wednesday, May 11, 2011
Just a very short instruction on how to inspect native dump files with WinDbg:

  1. Get and install and then start WinDbg
  2. File - Open Crash Dump
~*kb
  1. Lists all the threads and their call stacks.
  2. !locks
Will show you the critical sections. LockCount - RecursionCount - 1 = the amount of times the lock has been acquired.
  1. So if you have several locks that are taken you can check the call stacks and see where you have the deadlock.
  2. !runaway
Will show you time spent in each thread.

I find it useful to get a text dump of all the call stacks which I can search in my text editor, rather than clicking around using Visual studio when searching for a deadlock.

Read more: Jayway Team Blog

Posted via email from Jasper-net

0 comments: