본문으로 건너뛰기
cccskills
무료GitHub에 공개

windbg-kernel-bugcheck-triage

Use when a kernel dump reports a Windows bugcheck; decode parameters and recover exception or trap context before investigating your driver. Not for user-mode process crashes or blaming a module from its name alone.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Kernel Bugcheck Triage

Load windbg-diagnostic-method first if it is not already loaded in this conversation, and apply it throughout for evidence ranking, hypothesis testing, confidence calibration, independent review, and report validation. This skill adds the bug-family-specific commands and evidence requirements.

Scope

Use a kernel crash dump or authorized live kernel session. A process dump captured after a reboot does not contain the earlier kernel fault. Confirm the dump type with the debugger, not a filename or the user's visible symptom. This skill includes exception-context and trap-frame recovery.

Workflow

1. Establish symbols and bugcheck evidence

.symfix
.sympath+ <your-vendor-symbol-directory>
.reload
!analyze -v
.bugcheck
k

Replace the placeholder with the approved symbol location for your own binaries. Record dump type, target architecture/build, bugcheck code and parameters, faulting instruction, and available memory. Public Windows symbols suffice for many investigations; do not require private Windows source or PDBs.

2. Decode parameters for the specific code

CodeParameter meaning / next step
0x1EP1 exception code; P2 exception address; P3/P4 exception-specific information. These are not generically a CONTEXT pair.
0x7EP1 exception code; P2 exception address; P3 EXCEPTION_RECORD; P4 CONTEXT.
0x3BP1 exception code; P2 instruction address; P3 CONTEXT; P4 unused.
0x0A / 0xD1Referenced address, IRQL, access information, instruction address. Decode the access field for that code; these parameters are not generally a trap-frame pointer.
0x50Invalid memory reference; parameter interpretation varies with target version. Consult the code reference.
0x9FP1 selects the power-failure subtype; use its specific parameter table and windbg-kernel-irp-lifecycle-triage where applicable.
Verifier-class stopUse windbg-kernel-verifier-triage and the exact code/subcode definition.

Do not reuse a parameter layout across different bugchecks.

3. Recover the original faulting context

For 0x7E:

.exr <P3>
.cxr <P4>
kb
r

For 0x3B:

.cxr <P3>
kb
r

For other exception-style bugchecks, locate a valid saved exception/context using the documented code procedure and available analysis output. Do not guess .cxr arguments from arbitrary P1..P4 values.

When !analyze -v or verified stack evidence identifies a TRAP_FRAME:

.trap <trap-frame-address>
kb
r

Trap frames can be partial: some registers may be missing or reconstructed incorrectly. Note the debugger's warnings and do not treat unsaved registers as reliable evidence. If a frame is missing, malformed, or absent from the dump, report the limitation rather than scanning arbitrary pointers and claiming a recovered context.

4. Investigate the driver, not just the detector

!thread
lmvm <driver-module>
.frame /r <frame-number>

Inspect the recovered instruction, register/object used, IRQL, ownership, and nearby driver frames. A crash in an operating-system routine may result from prior driver corruption. Conversely, a third-party name in MODULE_NAME does not establish that the named driver caused the failure. Verify vendor build identity against the matching binary/PDB.

For concurrency or blocked requests use windbg-kernel-lock-deadlock-triage or windbg-kernel-irp-lifecycle-triage. Kernel ~ commands select processors, not the application thread list; use documented thread/process inspection such as !thread and !process 0 7.

Validation

Record the decoded parameters, recovered context and its limitations, and the evidence connecting the driver's operation to the violated invariant. Test competing lifetime, bounds, IRQL, and synchronization explanations. Recommend an instrumented test/repro only with approval; route Verifier evidence to windbg-kernel-verifier-triage. Do not call a guessed module assignment a proven cause.

References

Feedback

Follow FEEDBACK.md and submit only reviewed, sanitized feedback to WinDbg-Feedback. Include windbg-kernel-bugcheck-triage and the package version from plugin.json; no automatic kernel dump, private-symbol, or source upload.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use with every WinDbg plugin investigation to apply evidence-first reasoning, confidence calibration, contrarian review, structured reporting, and deterministic validation. Not a bug-family-specific triage skill.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when kernel evidence shows stalled I/O, a power IRP, or completion/cancellation misuse; inspect request state and driver ownership. Not for interpreting an empty IRP search in a limited dump as proof of healthy I/O.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when kernel threads block on driver synchronization or Verifier reports a lock-order violation; build an owner/waiter graph. Not for treating every watchdog stop as a deadlock or listing every lock type with !locks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when a kernel dump contains Driver Verifier violations; inspect flags, bugcheck subcodes, and available I/O shadow state. Not for Application Verifier user-mode stops or inferring a violation from enabled flags alone.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when a native C/C++ app, service, or user-mode driver host (including UMDF) crashes with a structured exception in a dump or WinDbg session, including native faults inside managed processes. Not for managed .NET exceptions, WinUI/XAML app errors, or kernel bugchecks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

Use when an app, service, or user-mode driver host heap fails or Application Verifier detects corruption; inspect history and bounds. Not for kernel pool corruption or ordinary OOM.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

microsoft/win-dev-skills4742026년 10월 14일 업데이트

microsoft의 스킬 모두 보기

이 스킬의 문제 신고