I'm running into a process that's catching an exception
STATUS_POSSIBLE_DEADLOCK. This seems to be raised by ntdll when an attempt
to acquire a Critical Section (EnterCriticalSection) times out. On the
system I'm looking at, there are a couple of interesting internal settings
in ntdll. These are:
RtlpTimoutDisable (set to 0)
RtlpTimeout (set to a large negative number representing 2 minutes worth of
My process is designed to wait forever to acquire a critical section, and
croaks after 2 minutes with the above settings.
On another system, I see these parameters set to:
RtlpTimoutDisable (set to 1)
RtlpTimeout (set to a large negative number representing 30 days.)
I vaguely recall a setup to debug CriticalSection deadlocks that modifies
the "normal" values for these parameters, setting a fairly short (2 minute)
timeout. But I can't remember for the life of me seeing a reference to the
info. Can anyone jog my memory?