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

windbg-user-exception-triage

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.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.0 KB

SKILL.md(원문)

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

User-Mode Exception 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.

When to use

Start here for access violations, heap corruption, stack overflow, fail-fast, breakpoints, and other structured exceptions in a native application, service, or user-mode driver host process dump. This includes UMDF driver failures that occur in their user-mode host. Confirm the dump type from WinDbg; the filename extension alone does not distinguish user-mode from kernel-mode dumps.

Workflow

1. Establish the exception context

.exr -1
.ecxr
k
!analyze -v

Record the exception code, address, parameters, access type, registers, module, and stack. .ecxr selects the saved exception context when available. If no exception context was captured, report that limitation rather than treating the currently selected thread as the faulting thread.

Use matching binaries and PDBs for your modules and public Windows symbols. Investigate mismatches or truncated stacks before naming a failing source line.

2. Classify and choose an available investigation

EvidenceNext step
0xC0000005 with allocation/free or overrun evidencewindbg-user-heap-corruption-investigation
0xC0000374 heap corruptionwindbg-user-heap-corruption-investigation
0xC0000017, 0x8007000E, or an allocation-failure pathwindbg-user-virtual-memory-exhaustion
Lock/unlock failure following coroutine suspensionwindbg-user-mutex-held-across-co-await
A TTD recording is available and earlier mutation is in questionwindbg-user-ttd-reverse-debugging-triage
No crash exception and evidence of blocked workwindbg-user-wait-chain-analysis
A kernel dump reports a bugcheckwindbg-kernel-bugcheck-triage

Do not classify every address in a heap range as a lifetime bug. Check access type, faulting instruction, object layout, and valid allocation boundaries.

3. Investigate families without a dedicated skill

  • Access violation without a match: identify the read/write/execute target, object/register used, and whether bounds, ownership, or synchronization was violated. Distinguish a null pointer from stale or corrupted state.
  • 0xC0000409 / fail-fast: inspect exception parameters and the documented fast-fail subcode, then the failing condition and call path. The historical status name alone does not prove a buffer overrun or rule one out. Not every fast-fail carries an HRESULT.
  • 0xC00000FD / stack overflow: inspect stack bounds and frame sizes; test recursion, reentrancy, large frames, and inability to commit stack growth. Use the memory-exhaustion skill when commit evidence supports that branch.
  • 0xE06D7363 / MSVC C++ exception: establish whether it was handled, identify the throw/catch path with available symbols, and inspect the exception information supported by the runtime/version. A first-chance throw is not automatically a defect. This package does not decode thrown-object layouts or fully diagnose noexcept/termination behavior.
  • Stowed/WinRT exceptions: preserved error information can precede the final failure. Correlate its originating stack and nested errors with the application; this package does not include a XAML extension workflow.
  • Illegal instruction or breakpoint: distinguish CPU/architecture or code-corruption hypotheses from intentional assertions/debug breaks.

Validation

  • Exception context and code are established, or their absence is stated.
  • Faulting instruction and relevant object/register agree with the hypothesis.
  • Alternatives are tested against evidence, not just stack names.
  • Missing memory, symbols, and specialized exception coverage are explicit.
  • The proposed fix addresses a demonstrated invariant and has a repro/test plan.

References

Feedback

For this skill, follow the plugin's FEEDBACK.md and report a reviewed, sanitized issue to WinDbg-Feedback. Include windbg-user-exception-triage and the package version from plugin.json; do not upload dumps or private source automatically.

리뷰

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

댓글

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

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

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. 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 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.

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

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 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의 스킬 모두 보기

이 스킬의 문제 신고