Negative LockCount ?

Hi champs,

I’ve a bunch of user mode dumps, basically all struggling with the
LdrpLoaderLock …

The strange thing is that all these dumps show ‘0’ for the owning thread
(which I doubt is true) and a negative number for the LockCount …
Platform is W2K3 SP1 …

Anybody seen this before ?

Regards
Johann


0:000> !locks

CritSec ntdll!LdrpLoaderLock+0 at 7C889D94
LockCount -99
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount c1
*** Locked

0:000> db 7C889D94
7c889d94 c0 9d 88 7c 9d ff ff ff-00 00 00 00 00 00 00 00 …|…
7c889da4 ec 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 …
7c889db4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 …
7c889dc4 94 9d 88 7c 88 90 88 7c-68 90 88 7c 00 00 00 00 …|…|h…|…
7c889dd4 c1 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 …
7c889de4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 …
7c889df4 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00 …(…
7c889e04 01 00 00 00 00 00 00 00-b0 1e 14 00 48 0d 16 00 …H…

or from another dump:

0:000> !locks

CritSec ntdll!LdrpLoaderLock+0 at 7C9A9D94
LockCount -23
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 17
*** Locked

0:000> db 7C9A9D94
7c9a9d94 c0 9d 9a 7c e9 ff ff ff-00 00 00 00 00 00 00 00 …|…
7c9a9da4 e8 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 …
7c9a9db4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 …
7c9a9dc4 94 9d 9a 7c 88 90 9a 7c-68 90 9a 7c 00 00 00 00 …|…|h…|…
7c9a9dd4 17 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 …
7c9a9de4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 …
7c9a9df4 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00 …(…
7c9a9e04 01 00 00 00 00 00 00 00-b0 1e 14 00 d0 a8 1d 00 …

No I have not. I would start to verify that ContentionCount makes sense
from program state. I would check that c1/17 reasons exist to claim the
lock.

Is the crash happening at startup ? If so, I would check entrypoint
(dllmain) processing that might be going awry.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Johann Weinzierl
Sent: Thursday, February 16, 2006 10:37 AM
To: Kernel Debugging Interest List
Subject: [windbg] Negative LockCount ?

Hi champs,

I’ve a bunch of user mode dumps, basically all struggling with the
LdrpLoaderLock …

The strange thing is that all these dumps show ‘0’ for the owning thread

(which I doubt is true) and a negative number for the LockCount …
Platform is W2K3 SP1 …

Anybody seen this before ?

Regards
Johann


0:000> !locks

CritSec ntdll!LdrpLoaderLock+0 at 7C889D94
LockCount -99
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount c1
*** Locked

0:000> db 7C889D94
7c889d94 c0 9d 88 7c 9d ff ff ff-00 00 00 00 00 00 00 00
…|…
7c889da4 ec 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c889db4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c889dc4 94 9d 88 7c 88 90 88 7c-68 90 88 7c 00 00 00 00
…|…|h…|…
7c889dd4 c1 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c889de4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c889df4 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00
…(…
7c889e04 01 00 00 00 00 00 00 00-b0 1e 14 00 48 0d 16 00
…H…

or from another dump:

0:000> !locks

CritSec ntdll!LdrpLoaderLock+0 at 7C9A9D94
LockCount -23
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 17
*** Locked

0:000> db 7C9A9D94
7c9a9d94 c0 9d 9a 7c e9 ff ff ff-00 00 00 00 00 00 00 00
…|…
7c9a9da4 e8 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c9a9db4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c9a9dc4 94 9d 9a 7c 88 90 9a 7c-68 90 9a 7c 00 00 00 00
…|…|h…|…
7c9a9dd4 17 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c9a9de4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c9a9df4 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00
…(…
7c9a9e04 01 00 00 00 00 00 00 00-b0 1e 14 00 d0 a8 1d 00


You are currently subscribed to windbg as: xxxxx@appstream.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I know that the usage of the fields in a crit sec were changed in
win2k3, and LockCount’s meaning changed, see

http://www.ureader.com/message/54213.aspx

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Satya Das
Sent: Thursday, February 16, 2006 12:06 PM
To: Kernel Debugging Interest List
Subject: RE: [windbg] Negative LockCount ?

No I have not. I would start to verify that ContentionCount makes sense
from program state. I would check that c1/17 reasons exist to claim the
lock.

Is the crash happening at startup ? If so, I would check entrypoint
(dllmain) processing that might be going awry.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Johann Weinzierl
Sent: Thursday, February 16, 2006 10:37 AM
To: Kernel Debugging Interest List
Subject: [windbg] Negative LockCount ?

Hi champs,

I’ve a bunch of user mode dumps, basically all struggling with the
LdrpLoaderLock …

The strange thing is that all these dumps show ‘0’ for the owning thread

(which I doubt is true) and a negative number for the LockCount …
Platform is W2K3 SP1 …

Anybody seen this before ?

Regards
Johann


0:000> !locks

CritSec ntdll!LdrpLoaderLock+0 at 7C889D94
LockCount -99
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount c1
*** Locked

0:000> db 7C889D94
7c889d94 c0 9d 88 7c 9d ff ff ff-00 00 00 00 00 00 00 00
…|…
7c889da4 ec 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c889db4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c889dc4 94 9d 88 7c 88 90 88 7c-68 90 88 7c 00 00 00 00
…|…|h…|…
7c889dd4 c1 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c889de4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c889df4 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00
…(…
7c889e04 01 00 00 00 00 00 00 00-b0 1e 14 00 48 0d 16 00
…H…

or from another dump:

0:000> !locks

CritSec ntdll!LdrpLoaderLock+0 at 7C9A9D94
LockCount -23
RecursionCount 0
OwningThread 0
EntryCount 0
ContentionCount 17
*** Locked

0:000> db 7C9A9D94
7c9a9d94 c0 9d 9a 7c e9 ff ff ff-00 00 00 00 00 00 00 00
…|…
7c9a9da4 e8 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c9a9db4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c9a9dc4 94 9d 9a 7c 88 90 9a 7c-68 90 9a 7c 00 00 00 00
…|…|h…|…
7c9a9dd4 17 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c9a9de4 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

7c9a9df4 00 00 00 00 00 00 00 00-00 00 00 00 28 00 00 00
…(…
7c9a9e04 01 00 00 00 00 00 00 00-b0 1e 14 00 d0 a8 1d 00


You are currently subscribed to windbg as: xxxxx@appstream.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to windbg as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com