Kernel Mode Debugging - Scenario 2: Find the module responsible for a crash

  1. Microsoft (R) Windows Debugger Version 6.11.0001.404 X86

  2. Copyright (c) Microsoft Corporation. All rights reserved.

  3. Loading Dump File

  4. Kernel Complete Dump File: Full address space is available

  5. Symbol search path is: SRV*C:\symsrv*https://msdl.microsoft.com/download/symbols

  6. Executable search path is:

  7. Windows 2000 Kernel Version 2195 (Service Pack 3) UP Free x86 compatible

  8. Product: WinNt

  9. Machine Name:

  10. Kernel base = 0x80400000 PsLoadedModuleList = 0x8046d9f0

  11. Debug session time: Thu Mar 20 09:47:36.323 2003 (GMT-8)

  12. System Uptime: 0 days 0:03:16.983

  13. Loading Kernel Symbols

  14. Loading User Symbols

  15. Loading unloaded module list

  16. *******************************************************************************

  17. * Bugcheck Analysis *

  18. *******************************************************************************

  19. Use !analyze -v to get detailed debugging information.

  20. BugCheck 9F, {2, 81442d30, 814a32d0, 0}

  21. Probably caused by : ntoskrnl.exe ( nt!PopWaitForSystemPowerIrp+2cd )

  22. Followup: MachineOwner

  23. kd> !analyze -v

  24. *******************************************************************************

  25. * Bugcheck Analysis *

  26. *******************************************************************************

  27. DRIVER_POWER_STATE_FAILURE (9f)

  28. A driver is causing an inconsistent power state.

  29. Arguments:

  30. Arg1: 00000002, The device object completed the irp for the system power

  31.  state request, but failed to call PoStartNextPowerIrp

  32. Arg2: 81442d30, Optional Target device's DEVICE_OBJECT

  33. Arg3: 814a32d0, DeviceObject

  34. Arg4: 00000000, Optional DriverObject

  35. Debugging Details:

  36. DRVPOWERSTATE_SUBCODE: 2

  37. DEVICE_OBJECT: 814a32d0

  38. DEFAULT_BUCKET_ID: DRIVER_FAULT

  39. BUGCHECK_STR: 0x9F

  40. PROCESS_NAME: winlogon.exe

  41. LAST_CONTROL_TRANSFER: from 8048cc8c to 8048d1a4

  42. STACK_TEXT:

  43. f395f3e8 8048cc8c 8122b000 00000001 00000001 nt!PopWaitForSystemPowerIrp+0x2cd

  44. f395f40c 8048c6d5 00000000 f395f4fc f395f580 nt!PopSetDevicesSystemState+0x100

  45. f395f4e8 80465091 00000002 00000005 20000003 nt!NtSetSystemPowerState+0x26b

  46. f395f4e8 80401515 00000002 00000005 20000003 nt!KiSystemService+0xc4

  47. f395f56c 8048c4dd 00000002 00000005 20000003 nt!ZwSetSystemPowerState+0xb

  48. f395f650 80465091 00000002 00000005 20000003 nt!NtSetSystemPowerState+0x70

  49. f395f650 77f9a51e 00000002 00000005 20000003 nt!KiSystemService+0xc4

  50. 0006f5a4 010130d7 00000002 00000005 20000003 ntdll!ZwSetSystemPowerState+0xb

  51. 0006f5c8 01012f39 000768f0 00010018 0006fd60 winlogon!SleepSystem+0xa7

  52. 0006fcdc 77e11d0a 00010018 0000004c 00000004 winlogon!SASWndProc+0x46c

  53. 0006fcfc 77e12bcc 0100a02e 00010018 0000004c USER32!UserCallWinProc+0x18

  54. 0006fd18 77e50061 003e1180 0000004c 00000004 USER32!DispatchClientMessage+0x4b

  55. 0006fd40 77fa02ff 0006fd50 00000028 003e1180 USER32!__fnLOGONNOTIFY+0x2c

  56. 0006fd40 80401776 0006fd50 00000028 003e1180 ntdll!KiUserCallbackDispatcher+0x13

  57. f395f924 80430bfa f395f9f4 f395f9ec 00000000 nt!KiCallUserMode+0x4

  58. f395f988 a00eb96f 0000001d f395f9b8 00000028 nt!KeUserModeCallback+0xa6

  59. f395fc28 a005809d a02f1180 0000004c 00000004 win32k!xxxClientMonitorEnumProc+0x58

  60. f395fca0 a0013326 e1bdb2a8 f395fd64 00000000 win32k!xxxReceiveMessage+0x405

  61. f395fcdc a00149e5 f395fd0c 000021ff 00000000 win32k!xxxInternalGetMessage+0x1ce

  62. f395fd48 80465091 0006fdf0 00000000 00000000 win32k!NtUserGetControlColor+0x5e

  63. f395fd48 77e12154 0006fdf0 00000000 00000000 nt!KiSystemService+0xc4

  64. 0006fd9c 77e1223e 0006fdf0 00000000 00000000 USER32!NtUserPeekMessage+0xb

  65. 0006fdc8 77e26e18 0006fdf0 00000000 00000000 USER32!PeekMessageW+0xba

  66. 0006fe10 77e26d62 0004005a 00000000 00000010 USER32!DialogBox2+0xe5

  67. 0006fe34 77e26ff3 01000000 01025c10 00000000 USER32!InternalDialogBox+0xd1

  68. 0006fe54 77e31c00 01000000 01025c10 00000000 USER32!DialogBoxIndirectParamAorW+0x34

  69. 0006fe78 010061cb 01000000 00000578 00000000 USER32!DialogBoxParamW+0x3d

  70. 0006feb4 01006146 000768f0 01000000 00000578 winlogon!TimeoutDialogBoxParam+0x27

  71. 0006feec 010083c8 000768f0 01000000 00000578 winlogon!WlxDialogBoxParam+0x7b

  72. 0006ff0c 01004ce1 000768f0 010084b4 000768f0 winlogon!BlockWaitForUserAction+0x3c

  73. 0006ff24 01001a13 000768f0 00000005 00073024 winlogon!MainLoop+0x1bf

  74. 0006ff58 010017a2 00071fc8 00000000 00073024 winlogon!WinMain+0x32f

  75. 0006fff4 00000000 7ffdf000 000000c8 00000100 winlogon!WinMainCRTStartup+0x156

  76. STACK_COMMAND: kb

  77. FOLLOWUP_IP:

  78. nt!PopWaitForSystemPowerIrp+2cd

  79. 8048d1a4 6a01 push 1

  80. SYMBOL_STACK_INDEX: 0

  81. SYMBOL_NAME: nt!PopWaitForSystemPowerIrp+2cd

  82. FOLLOWUP_NAME: MachineOwner

  83. MODULE_NAME: nt

  84. IMAGE_NAME: ntoskrnl.exe

  85. DEBUG_FLR_IMAGE_TIMESTAMP: 3d366b8b

  86. FAILURE_BUCKET_ID: 0x9F_nt!PopWaitForSystemPowerIrp+2cd

  87. BUCKET_ID: 0x9F_nt!PopWaitForSystemPowerIrp+2cd

  88. Followup: MachineOwner

  89. ---------

  90. kd> !devstack 814a32d0

  91.   !DevObj !DrvObj !DevExt ObjectName

  92.   81442d30 \Driver\awlegacy 81442de8 xyzHostLegacyVideo

  93.   81491450 \Driver\AW_HOST 81491508 xyzVideoDevice0

  94.   81491640 \Driver\tgiul50 814916f8 Video1

  95. > 814a32d0 \Driver\PCI 814a3388 NTPNP_PCI0005

  96. !DevNode 814805c8 :

  97.   DeviceInst is "PCI\VEN_1023&DEV_9660&SUBSYS_00000000&REV_D3\2&ebb567f&0&58"

  98.   ServiceName is "tgiul50"

  99. kd> !podev 81442d30 

  100. Device object is for:

  101.  xyzHostLegacyVideo DriverObject 81442030

  102. Current Irp 00000000 RefCount 0 Type 00000022 DevFlags 00000044l

  103. Device queue is not busy.

  104. Device Object Extension: 81442e18:

  105. PowerFlags: 00000500 =>SystemState=0 DeviceState=0 syact dvact

  106. Dope: 00000000:

  107. kd> !podev 81491450 

  108. Device object is for:

  109.  xyzVideoDevice0 DriverObject 8149a5f0

  110. Current Irp 00000000 RefCount 0 Type 00000022 AttachedDev 81442d30 DevFlags 00002044l DO_POWER_PAGABLE

  111. Device queue is not busy.

  112. Device Object Extension: 814915d0:

  113. PowerFlags: 00000000 =>SystemState=0 DeviceState=0

  114. Dope: 00000000:

  115. kd> !podev 81491640 

  116. Device object is for:

  117.  Video1 DriverObject 81491030

  118. Current Irp 00000000 RefCount 1 Type 00000023 AttachedDev 81491450 DevFlags 0000204cl DO_POWER_PAGABLE

  119. Device queue is not busy.

  120. Device Object Extension: 81491fc8:

  121. PowerFlags: 00000010 =>SystemState=0 DeviceState=1

  122. Dope: 00000000:

  123. kd> !podev 814a32d0 

  124. Device object is for:

  125.  NTPNP_PCI0005 DriverObject 81481bd0

  126. Current Irp 00000000 RefCount 0 Type 00000023 AttachedDev 81491640 DevFlags 00001040l

  127. Device queue is not busy.

  128. Device Object Extension: 814a3468:

  129. PowerFlags: 00000000 =>SystemState=0 DeviceState=0

  130. Dope: 00000000: