BT

Deadlock Debugging for .NET

| by Jonathan Allen Follow 576 Followers on Aug 18, 2008. Estimated reading time: 1 minute |

Out of the box, .NET doesn't have any support for deadlock detection. Normally the way one checks for deadlocks is by attaching the debugger and examining each thread. Corneliu, creator of the GUI debugging tool HawkEye, has offered an alternative. His ACorns.Debugging tool works against most .NET programs, without recompiling them. Corneliu summarizes his tool as follows:

  1. The tool does not require to have the code re-compiled in any way or form, with any external dependencies, nor reference any external library or have you modify your code to use any special type of locks inside your code
  2. It works on release builds with no PDB files
  3. It works on running processes or previously captured memory dumps
  4. It detects deadlocks across multiple threads and returns detailed call-stack and lock usage information
  5. It only detect deadlocks in which threads are actively waiting for locks acquired by other threads
  6. It does not detect the dining philosophers problem or deadlocks created in combination of time waits + wake/check + lock
  7. It has an external dependency on the cdb.exe (part of the the free Debugging Tools for Windows package from Microsoft)
  8. It requires absolutely no installation. It an xcopy deployment
  9. And best of all it’s free (source code to be published soon)

For those of you just starting with parallel programming, Corneliu offers a brief introduction to deadlocks and instructions on interpreting the results of his program.

ACorns.Debugging.FindDeadlock.1.0.1.zip depends on Microsoft's Debugging Tools for Windows.

 

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

just a crap? by Yang Michael

this tool just can not Start any external process, sigh :(
Not even check that so-called deadlock

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT