Determining owner of lock

A

Adam Benson

Hi,

An app deadlocked and I took a full process dump of it using cdb. I can see
no end of threads backed waiting for a lock on an object but no thread seems
to own the lock - they all seem to be stuck on the lock(me) statement.

Using Wnddbg or cdb is there any way to dig down and discover who has the
lock on that object ?

Thanks,

Adam.


==============================
(e-mail address removed)
 
W

Willy Denoyette [MVP]

| Hi,
|
| An app deadlocked and I took a full process dump of it using cdb. I can
see
| no end of threads backed waiting for a lock on an object but no thread
seems
| to own the lock - they all seem to be stuck on the lock(me) statement.
|
| Using Wnddbg or cdb is there any way to dig down and discover who has the
| lock on that object ?
|
| Thanks,
|
| Adam.
|
|
| ==============================
| (e-mail address removed)
|
|

Try using the sos.dll extention, and the !syncblbk command. Anyway you have
a couple of threads waiting on each other.

Willy.
 
A

Adam Benson

Thanks, Willy,

I didn't realise that command existed in SOS.
I gave it a try but the app seemed to be jammed in MS code during an
object's serialisation.

All other threads were backed up waiting to get at the object being
serialise.

Regards,

Adam.
========
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top