!cs vs. !ntsdexts.locks
The latest WinDbg 6.11.0001.404 has broken !ntsdexts.locks command (simply !locks in user dumps). I noticed that some time ago and switched to !cs command which works in user and complete memory dumps. I now like it more than !locks because the following command parameters give stack traces for critical section owners:
!cs -l -o -s
The following recent cases studies use !cs command:
Blocked threads, message box and self-diagnosis
Easy to remember mnemonic is cslos: critical sections locked with stacks
This command is also featured on the back cover of March Debugged! magazine issue.
- Dmitry Vostokov @ DumpAnalysis.org -
May 5th, 2009 at 10:39 pm
I don’t think it was windbg that did it. I’ve rolled back to 6.9 and 6.10 and ntsdexts.locks still doesn’t work. I think they’ve screwed up the wntdll.pdb file. On my system it’s got a date of 4/28/2009. Or they updated wntdll.pdb and DIDN’T update ntsdexts.