- name
SKILL.md
스킬 파일은 게시자의 저장소에 그대로 있습니다.
복사한 명령을 터미널에 붙여넣습니다. 이 SKILL.md가 해당 에이전트에 설치됩니다.
npx skills add microsoft/win-dev-skills --skill windbg-user-heap-corruption-investigation -a cursor -y복사한 명령을 터미널에 붙여넣습니다. 이 SKILL.md가 해당 에이전트에 설치됩니다.
npx skills add microsoft/win-dev-skills --skill windbg-user-heap-corruption-investigation -a claude-code -y복사한 명령을 터미널에 붙여넣습니다. 이 SKILL.md가 해당 에이전트에 설치됩니다.
npx skills add microsoft/win-dev-skills --skill windbg-user-heap-corruption-investigation -a codex -y복사한 명령을 터미널에 붙여넣습니다. 이 SKILL.md가 해당 에이전트에 설치됩니다.
npx skills add microsoft/win-dev-skills --skill windbg-user-heap-corruption-investigation -a grok -y복사한 메시지를 Grok Bot 채팅에 보냅니다. Bot이 GitHub에서 이 SKILL.md를 가져와 모든 Bot이 공유하는 스킬에 추가합니다.
Install this skill: https://github.com/microsoft/win-dev-skills/tree/HEAD/plugins/windbg/skills/windbg-user-heap-corruption-investigation게시자 제공
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.
Look for STATUS_HEAP_CORRUPTION (0xC0000374), Application Verifier stops,
or failures in heap allocate/free/reallocate paths in an application, service,
or user-mode driver host such as an UMDF host process. A crash inside the allocator
may be the first detection of an earlier bad write, not the faulty operation.
Distinguish corruption from allocation failure; for the latter use
windbg-user-virtual-memory-exhaustion.
Allocation/free history depends on how the process was instrumented and which pages were captured. A missing history is a limitation, not proof of a leak or use-after-free.
.exr -1
.ecxr
!analyze -v
k
Record the stop reason, corrupted block, corruption address, and the operation
that detected the damage. If a verifier stop frame has parameter/local symbols,
select it with .frame /r <frame> and inspect dv; otherwise use the captured
stop output and the documented stop definition. Do not assume one fixed
parameter layout or a stop code shared by all verifier versions.
!heap -p -a <address>
!avrf -hp -a <address>
The first command inspects a Page Heap allocation; the second searches available
Application Verifier heap-operation history. Use !heap -? and !avrf -? to
confirm support in the installed extension. On an uninstrumented dump these
commands may not recover the history needed to identify the writer.
Capture allocation and free stacks when present. Check the address is inside the user allocation rather than a header or neighboring block.
Inspect bytes with db <address> L<size> and disassembly around the access.
Fill patterns and plausible pointers are clues, not causal proof. Correlate with
source, history, or a repro and trace the ownership transition.
With user approval, enable full Page Heap for a named test executable:
gflags /p /enable target.exe /full
Restart that process and reproduce under the debugger. Application Verifier heap checks can also be configured for that test executable. Explain memory overhead, timing changes, and potential deliberate stops before doing this. Record the previous settings and restore them when finished; if Page Heap was newly enabled for this test, disable it with:
gflags /p /disable target.exe
Do not change an existing application's verification policy without approval.
If a user-mode TTD trace is available, use windbg-user-ttd-reverse-debugging-triage to
find the relevant mutation or free.
shared_ptr ownership does not make a
concurrently modified cache or pointed-to object thread-safe.Establish the affected block and supported corruption class, name the path that violated bounds or ownership, and distinguish the detector from the writer. Exercise the fix with the same instrumentation and relevant concurrency/load. Report unresolved writer history rather than presenting a guessed fix as proven.
Follow FEEDBACK.md and report reviewed, sanitized feedback to
WinDbg-Feedback.
Include windbg-user-heap-corruption-investigation and the package version from
plugin.json; no automatic dump, source, or transcript upload.
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.
---name: windbg-user-heap-corruption-investigationdescription: Use when an app, service, or user-mode driver host heap fails or Application Verifier detects corruption…---# plugins/windbg/skills/windbg-user-heap-corruption-investigation/SKILL.mdFAQ
게시자에게서 plugins/windbg/skills/windbg-user-heap-corruption-investigation/SKILL.md를 다운로드하거나 경로를 복사해 저장소를 엽니다. PlugMCP는 스킬을 목록에 올릴 뿐 파일을 호스팅하지 않습니다.
게시자가 https://github.com/microsoft/win-dev-skills에서 관리합니다.
Claude, Cursor, Codex, Grok Build는 게시자의 저장소에서 추가한 SKILL.md를 읽을 수 있습니다. Grok Bot은 채팅에서 스킬의 GitHub 폴더 링크를 보내면 설치합니다.