Hello all
I’m trying to trace a problem where the system hangs on shutdown after our file system minifilter driver has been loaded. Note that the problem still persists even after our driver has been unloaded prior to shutdown but not if our driver was never installed.
I’ve traced down through all the ExitWindowsEx calls to the nt!NtShutdownSystem call and the thread appears to be waiting on a WaitForSingleObject call after calling NtSetSystemPowerState. Dumping the parameters for the call to KeWaitForSingleObject though it appears that they are all NULL except for the second which is set to 5. Can anbody suggest what might be going wrong here or has anybody seen something similar before ??
Cheers
Mark
0: kd> !thread 896bd220
THREAD 896bd220 Cid 0278.027c Teb: 7ffdf000 Win32Thread: e18984b0 WAIT: (Suspended) KernelMode Non-Alertable
SuspendCount 1
896bd3bc Semaphore Limit 0x2
IRP List:
89af67c0: (0006,0094) Flags: 00000800 Mdl: 00000000
Not impersonating
DeviceMap e10092b0
Owning Process 0 Image:
Attached Process 896201c8 Image: winlogon.exe
Wait Start TickCount 654398 Ticks: 37333 (0:00:09:43.328)
Context Switch Count 9284 LargeStack
UserTime 00:00:00.578
KernelTime 00:00:08.718
Start Address 0x0103e5e1
Stack Init ba158000 Current ba1579bc Base ba158000 Limit ba154000 Call 0
Priority 15 BasePriority 15 PriorityDecrement 0 DecrementCount 0
ChildEBP RetAddr Args to Child
ba1579d4 80503850 896bd290 896bd220 804fb078 nt!KiSwapContext+0x2f (FPO: [Uses EBP] [0,0,4])
ba1579e0 804fb078 896bd38c 896bd220 896bd254 nt!KiSwapThread+0x8a (FPO: [0,0,0])
ba157a08 80502f8c 00000000 00000005 00000000 nt!KeWaitForSingleObject+0x1c2 (FPO: [Non-Fpo])
ba157a20 804ff8c4 00000000 00000000 00000000 nt!KiSuspendThread+0x18 (FPO: [3,0,0])
ba157a68 806e7ef2 00000000 00000000 ba157a80 nt!KiDeliverApc+0x124 (FPO: [Non-Fpo])
ba157a68 806e7adf 00000000 00000000 ba157a80 hal!HalpApcInterrupt+0xc6 (FPO: [0,2] TrapFrame @ ba157a80)
ba157af0 804fd5a1 00000000 001f0003 00000000 hal!KeReleaseQueuedSpinLock+0x37 (FPO: [0,0,0])
ba157b10 8065434a 896bd220 ba157bf8 ba157c7c nt!KeSuspendThread+0xa9 (FPO: [Non-Fpo])
ba157be4 8054167c 00000006 00000004 c0000004 nt!NtSetSystemPowerState+0x532 (FPO: [Non-Fpo])
ba157be4 80501021 00000006 00000004 c0000004 nt!KiFastCallEntry+0xfc (FPO: [0,0] TrapFrame @ ba157bf8)
ba157c68 80653e7d 00000006 00000004 c0000004 nt!ZwSetSystemPowerState+0x11 (FPO: [3,0,0])
ba157d44 80612fc2 00000006 00000004 c0000004 nt!NtSetSystemPowerState+0x65 (FPO: [Non-Fpo])
ba157d58 8054167c 00000002 0006fc7c 7c90e514 nt!NtShutdownSystem+0x32 (FPO: [Non-Fpo])
ba157d58 7c90e514 00000002 0006fc7c 7c90e514 nt!KiFastCallEntry+0xfc (FPO: [0,0] TrapFrame @ ba157d64)
0006fc7c 00000000 00000000 00000000 00000000 ntdll!KiFastSystemCallRet (FPO: [0,0,0])