Kernel Mode Debugging - Scenario 2: Find the module responsible for a crash
Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File
Kernel Complete Dump File: Full address space is available
Symbol search path is: SRV*C:\symsrv*https://msdl.microsoft.com/download/symbols
Executable search path is:
Windows 2000 Kernel Version 2195 (Service Pack 3) UP Free x86 compatible
Product: WinNt
Machine Name:
Kernel base = 0x80400000 PsLoadedModuleList = 0x8046d9f0
Debug session time: Thu Mar 20 09:47:36.323 2003 (GMT-8)
System Uptime: 0 days 0:03:16.983
Loading Kernel Symbols
Loading User Symbols
Loading unloaded module list
*******************************************************************************
* Bugcheck Analysis *
*******************************************************************************
Use !analyze -v to get detailed debugging information.
BugCheck 9F, {2, 81442d30, 814a32d0, 0}
Probably caused by : ntoskrnl.exe ( nt!PopWaitForSystemPowerIrp+2cd )
Followup: MachineOwner
kd> !analyze -v
*******************************************************************************
* Bugcheck Analysis *
*******************************************************************************
DRIVER_POWER_STATE_FAILURE (9f)
A driver is causing an inconsistent power state.
Arguments:
Arg1: 00000002, The device object completed the irp for the system power
state request, but failed to call PoStartNextPowerIrp
Arg2: 81442d30, Optional Target device's DEVICE_OBJECT
Arg3: 814a32d0, DeviceObject
Arg4: 00000000, Optional DriverObject
Debugging Details:
DRVPOWERSTATE_SUBCODE: 2
DEVICE_OBJECT: 814a32d0
DEFAULT_BUCKET_ID: DRIVER_FAULT
BUGCHECK_STR: 0x9F
PROCESS_NAME: winlogon.exe
LAST_CONTROL_TRANSFER: from 8048cc8c to 8048d1a4
STACK_TEXT:
f395f3e8 8048cc8c 8122b000 00000001 00000001 nt!PopWaitForSystemPowerIrp+0x2cd
f395f40c 8048c6d5 00000000 f395f4fc f395f580 nt!PopSetDevicesSystemState+0x100
f395f4e8 80465091 00000002 00000005 20000003 nt!NtSetSystemPowerState+0x26b
f395f4e8 80401515 00000002 00000005 20000003 nt!KiSystemService+0xc4
f395f56c 8048c4dd 00000002 00000005 20000003 nt!ZwSetSystemPowerState+0xb
f395f650 80465091 00000002 00000005 20000003 nt!NtSetSystemPowerState+0x70
f395f650 77f9a51e 00000002 00000005 20000003 nt!KiSystemService+0xc4
0006f5a4 010130d7 00000002 00000005 20000003 ntdll!ZwSetSystemPowerState+0xb
0006f5c8 01012f39 000768f0 00010018 0006fd60 winlogon!SleepSystem+0xa7
0006fcdc 77e11d0a 00010018 0000004c 00000004 winlogon!SASWndProc+0x46c
0006fcfc 77e12bcc 0100a02e 00010018 0000004c USER32!UserCallWinProc+0x18
0006fd18 77e50061 003e1180 0000004c 00000004 USER32!DispatchClientMessage+0x4b
0006fd40 77fa02ff 0006fd50 00000028 003e1180 USER32!__fnLOGONNOTIFY+0x2c
0006fd40 80401776 0006fd50 00000028 003e1180 ntdll!KiUserCallbackDispatcher+0x13
f395f924 80430bfa f395f9f4 f395f9ec 00000000 nt!KiCallUserMode+0x4
f395f988 a00eb96f 0000001d f395f9b8 00000028 nt!KeUserModeCallback+0xa6
f395fc28 a005809d a02f1180 0000004c 00000004 win32k!xxxClientMonitorEnumProc+0x58
f395fca0 a0013326 e1bdb2a8 f395fd64 00000000 win32k!xxxReceiveMessage+0x405
f395fcdc a00149e5 f395fd0c 000021ff 00000000 win32k!xxxInternalGetMessage+0x1ce
f395fd48 80465091 0006fdf0 00000000 00000000 win32k!NtUserGetControlColor+0x5e
f395fd48 77e12154 0006fdf0 00000000 00000000 nt!KiSystemService+0xc4
0006fd9c 77e1223e 0006fdf0 00000000 00000000 USER32!NtUserPeekMessage+0xb
0006fdc8 77e26e18 0006fdf0 00000000 00000000 USER32!PeekMessageW+0xba
0006fe10 77e26d62 0004005a 00000000 00000010 USER32!DialogBox2+0xe5
0006fe34 77e26ff3 01000000 01025c10 00000000 USER32!InternalDialogBox+0xd1
0006fe54 77e31c00 01000000 01025c10 00000000 USER32!DialogBoxIndirectParamAorW+0x34
0006fe78 010061cb 01000000 00000578 00000000 USER32!DialogBoxParamW+0x3d
0006feb4 01006146 000768f0 01000000 00000578 winlogon!TimeoutDialogBoxParam+0x27
0006feec 010083c8 000768f0 01000000 00000578 winlogon!WlxDialogBoxParam+0x7b
0006ff0c 01004ce1 000768f0 010084b4 000768f0 winlogon!BlockWaitForUserAction+0x3c
0006ff24 01001a13 000768f0 00000005 00073024 winlogon!MainLoop+0x1bf
0006ff58 010017a2 00071fc8 00000000 00073024 winlogon!WinMain+0x32f
0006fff4 00000000 7ffdf000 000000c8 00000100 winlogon!WinMainCRTStartup+0x156
STACK_COMMAND: kb
FOLLOWUP_IP:
nt!PopWaitForSystemPowerIrp+2cd
8048d1a4 6a01 push 1
SYMBOL_STACK_INDEX: 0
SYMBOL_NAME: nt!PopWaitForSystemPowerIrp+2cd
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: nt
IMAGE_NAME: ntoskrnl.exe
DEBUG_FLR_IMAGE_TIMESTAMP: 3d366b8b
FAILURE_BUCKET_ID: 0x9F_nt!PopWaitForSystemPowerIrp+2cd
BUCKET_ID: 0x9F_nt!PopWaitForSystemPowerIrp+2cd
Followup: MachineOwner
---------
kd> !devstack 814a32d0
!DevObj !DrvObj !DevExt ObjectName
81442d30 \Driver\awlegacy 81442de8 xyzHostLegacyVideo
81491450 \Driver\AW_HOST 81491508 xyzVideoDevice0
81491640 \Driver\tgiul50 814916f8 Video1
> 814a32d0 \Driver\PCI 814a3388 NTPNP_PCI0005
!DevNode 814805c8 :
DeviceInst is "PCI\VEN_1023&DEV_9660&SUBSYS_00000000&REV_D3\2&ebb567f&0&58"
ServiceName is "tgiul50"
kd> !podev 81442d30
Device object is for:
xyzHostLegacyVideo DriverObject 81442030
Current Irp 00000000 RefCount 0 Type 00000022 DevFlags 00000044l
Device queue is not busy.
Device Object Extension: 81442e18:
PowerFlags: 00000500 =>SystemState=0 DeviceState=0 syact dvact
Dope: 00000000:
kd> !podev 81491450
Device object is for:
xyzVideoDevice0 DriverObject 8149a5f0
Current Irp 00000000 RefCount 0 Type 00000022 AttachedDev 81442d30 DevFlags 00002044l DO_POWER_PAGABLE
Device queue is not busy.
Device Object Extension: 814915d0:
PowerFlags: 00000000 =>SystemState=0 DeviceState=0
Dope: 00000000:
kd> !podev 81491640
Device object is for:
Video1 DriverObject 81491030
Current Irp 00000000 RefCount 1 Type 00000023 AttachedDev 81491450 DevFlags 0000204cl DO_POWER_PAGABLE
Device queue is not busy.
Device Object Extension: 81491fc8:
PowerFlags: 00000010 =>SystemState=0 DeviceState=1
Dope: 00000000:
kd> !podev 814a32d0
Device object is for:
NTPNP_PCI0005 DriverObject 81481bd0
Current Irp 00000000 RefCount 0 Type 00000023 AttachedDev 81491640 DevFlags 00001040l
Device queue is not busy.
Device Object Extension: 814a3468:
PowerFlags: 00000000 =>SystemState=0 DeviceState=0
Dope: 00000000: