claude-code - 💡(How to fix) Fix [BUG] Cowork Hyper-V causes PFN_LIST_CORRUPT BSOD and potential NVMe data corruption [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#50822Fetched 2026-04-20 12:12:06
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2

Error Message

Cowork's VM should not corrupt host memory under any circumstances — during sleep transitions, active use, or otherwise. If the VM cannot safely coexist with Windows memory management under Hyper-V, Cowork should either cleanly suspend the VM before sleep or warn users about the risk. Cowork's VM should not corrupt host memory under any circumstances — during sleep transitions, active use, or otherwise. If the VM cannot safely coexist with Windows memory management under Hyper-V, Cowork should either cleanly suspend the VM before sleep or warn users about the risk.

Error Messages/Logs

Root Cause

Root Cause Hypothesis

Fix Action

Fix / Workaround

Workaround

Code Example

nt!MiGetSlabAllocatorRepurposedStandbyList+0x20
nt!MiUnlinkPageFromListEx+0x907
nt!MiRemoveLowestPriorityStandbyPage+0x3c8
nt!MiPruneStandbyPages+0x18f
nt!MiRebalanceZeroFreeLists+0xb6
nt!ExpWorkerThread+0x4bb
nt!PspSystemThreadStartup+0x5a
nt!KiStartSystemThread+0x34

---

Hypervisor.RootFlags.IsHyperV: 1
Hypervisor.Flags.AnyHypervisorPresent: 1
Hypervisor.Flags.VsmAvailable: 1

---

See above
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

What's Wrong?

Cowork's Hyper-V/Windows Sandbox VM is causing host memory corruption (PFN database), resulting in repeated BSODs and potentially contributing to NVMe drive data integrity errors. Three kernel crashes occurred within 72 hours after resuming Cowork usage, following a month of zero crashes without it.

Timeline

  • Late February 2026: Original system corruption incident. Windows 11 OS on a Kingston SNV3S2000G 2TB NVMe became unrecoverable during active Cowork use while writing files to disk. CrystalDiskInfo revealed 33,783 Media and Data Integrity Errors (SMART attribute 0D) on a drive with 0% wear and full available spare.
  • Late February – mid April 2026: Stopped using Cowork entirely, switched to web chat UI only. Replaced the Kingston drive with a Samsung 9100 PRO 1TB NVMe. Zero crashes for over a month.
  • ~April 14, 2026: Resumed using Cowork. Also changed power settings to sleep after 2 hours.
  • April 17–19, 2026: Three BSODs in three days.

Crash Details

All three crashes logged as Kernel-Power Event ID 41. Minidumps analyzed with WinDbg (!analyze -v):

DateBugcheckCodeStop CodeSleepInProgress
Apr 170x1AMEMORY_MANAGEMENT5 (yes)
Apr 180x1000007ESYSTEM_THREAD_EXCEPTION_NOT_HANDLED0 (no — active use)
Apr 190x4EPFN_LIST_CORRUPT0 (no)

The April 18 crash occurred during active use (Firefox open, doing taxes, Cowork instance in background). The BSOD message displayed was "SYSTEM_THREAD_EXCEPTION_NOT_HANDLED."

WinDbg Analysis (April 18 crash)

The faulting function was nt!MiGetSlabAllocatorRepurposedStandbyList — a Windows memory manager routine that manages the PFN (Page Frame Number) database. The register rax contained 7d47e20000124e05, which is outside valid kernel address space, indicating a corrupted PFN entry.

The full call stack is entirely within Windows memory management internals (no third-party drivers):

nt!MiGetSlabAllocatorRepurposedStandbyList+0x20
nt!MiUnlinkPageFromListEx+0x907
nt!MiRemoveLowestPriorityStandbyPage+0x3c8
nt!MiPruneStandbyPages+0x18f
nt!MiRebalanceZeroFreeLists+0xb6
nt!ExpWorkerThread+0x4bb
nt!PspSystemThreadStartup+0x5a
nt!KiStartSystemThread+0x34

Key detail: Hyper-V is confirmed active in the dump:

Hypervisor.RootFlags.IsHyperV: 1
Hypervisor.Flags.AnyHypervisorPresent: 1
Hypervisor.Flags.VsmAvailable: 1

Failure bucket: AV_nt!MiGetSlabAllocatorRepurposedStandbyList

Connection to Drive Corruption

The Kingston NVMe accumulated 33,783 media integrity errors during the period Cowork was in active use, despite 0% wear and 100% available spare — consistent with a manufacturing defect, but also consistent with corrupted memory being written to disk by a faulty hypervisor layer. After a month without Cowork and a rescan on April 19, the count had risen to 33,923 (+140 errors from continued light use).

The new Samsung 9100 PRO already shows 5 unsafe shutdowns in only 67 power cycles (60 hours of use), all corresponding to the period after Cowork was resumed.

Root Cause Hypothesis

Cowork uses Windows Sandbox, which relies on Hyper-V. The hypervisor sits between hardware and the OS memory manager. The PFN database — exactly what's corrupted in these crashes — is where host-VM memory interactions are managed. Two of the three crashes occurred during or after sleep transitions (SleepInProgress non-zero), suggesting the VM is not cleanly suspending before Windows freezes memory state.

However, the April 18 crash occurred during active use with no sleep involvement, indicating the memory corruption may not be limited to sleep transitions.

Workaround

I created a killswitch script that tears down CoworkVMService and kills the VM process, registered as a scheduled task triggered by Kernel-Power Event ID 42 (system entering sleep). This prevents the VM from being in an inconsistent state during sleep transitions but does not address the active-use crash scenario.

System Info

ComponentDetail
OSWindows 11 (Build 26100.8246)
CPUAMD Ryzen 7 3700X 8-Core Processor, 3600 Mhz, 8 Core(s), 16 Logical Processor(s)
RAMCorsair Vengeance LPX 32 GB (2 x 16 GB) DDR4-3200 CL16 Memory, XMP enabled 3200 Mhz
Boot driveSamsung 9100 PRO 1TB NVMe (C:)
Former driveKingston SNV3S2000G 2TB NVMe (RMA pending)
Secondary driveCrucial MX500 2TB SATA SSD (D:)
Claude DesktopClaude 1.3109.0 (35cbf6) 2026-04-16T20:32:01.000Z

What Should Happen

Cowork's VM should not corrupt host memory under any circumstances — during sleep transitions, active use, or otherwise. If the VM cannot safely coexist with Windows memory management under Hyper-V, Cowork should either cleanly suspend the VM before sleep or warn users about the risk.

What Should Happen?

Cowork's VM should not corrupt host memory under any circumstances — during sleep transitions, active use, or otherwise. If the VM cannot safely coexist with Windows memory management under Hyper-V, Cowork should either cleanly suspend the VM before sleep or warn users about the risk.

Error Messages/Logs

See above

Steps to Reproduce

Inconsistently occurs after opening a Claude Cowork instance and allowing the PC to sleep. BSOD occurs when turning PC back on after sleep.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

N/A

Claude Code Version

N/A

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The most likely fix is to prevent the Cowork VM from running during system sleep transitions, which can be achieved by implementing a killswitch script that tears down the CoworkVMService and kills the VM process when the system enters sleep mode.

Guidance

  • Implement the killswitch script as a scheduled task triggered by Kernel-Power Event ID 42 (system entering sleep) to prevent the VM from being in an inconsistent state during sleep transitions.
  • Investigate and address the root cause of the memory corruption issue, which may be related to the interaction between the Hyper-V hypervisor and the Windows memory manager.
  • Consider warning users about the potential risk of host memory corruption when using Cowork with Hyper-V.
  • Monitor system stability and crash frequency after implementing the killswitch script to determine its effectiveness.

Example

No code snippet is provided as the issue does not require a specific code change, but rather a configuration or scripting solution.

Notes

The provided information suggests that the issue is related to the interaction between the Hyper-V hypervisor and the Windows memory manager, but further investigation is needed to determine the root cause. The killswitch script may not address the active-use crash scenario, and additional solutions may be required.

Recommendation

Apply the workaround by implementing the killswitch script to prevent the VM from running during system sleep transitions, as this may help mitigate the issue. However, it is essential to continue investigating the root cause of the memory corruption to develop a more comprehensive solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING