Skip to content

[BUG] Claude Code sessions cause Windows kernel BSODs (0x139, 0x1E, 0x50) — not application crashes, full OS crashes requiring hard reboot #30137

@joe-hireable

Description

@joe-hireable

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?

This is NOT a duplicate of the existing Bun crash issues (#21875, #27847, #18405). Those issues document Bun application-level segfaults and panics. This issue documents the next level of severity: Claude Code sessions are causing Windows kernel blue screens (BSODs) — full operating system crashes that require hard reboots and risk file system corruption.

I experienced 5 BSODs in 2 days (1–2 March 2026), all during or immediately after Claude Code sessions. The system is otherwise completely stable under sustained heavy loads (gaming, development, compilation).

Why this is distinct from existing Bun crash issues

Existing issues (#21875, #27847) This issue
Bun process segfaults/panics Windows kernel crashes (BSODs)
Claude Code exits to terminal Entire OS goes down — all apps, all unsaved work lost
Recovery: restart Claude Code Recovery: hard reboot required
Risk: lost session state Risk: file system corruption, hardware damage from unclean shutdowns
Bugcheck: none (user-mode crash) Bugcheck codes: 0x139, 0x1E, 0x50 (kernel-mode failures)
Minidumps: Bun crash reports Minidumps: Windows kernel crash dumps with bugcheck analysis

The Bun memory corruption documented in #21875 (N-API race conditions, GC use-after-free) appears to be severe enough in some cases to propagate beyond user-mode and corrupt kernel-visible structures, particularly through the file system path.

Environment

Component Value
OS Windows 11, Build 26200 (x64)
CPU Intel Core i9-14900HX (32 logical processors)
RAM 32GB
Hardware PCSpecialist Recoil VIII 17 (TongFang GM7IX8N)
Claude Code Latest at time of crashes
Installation methods tested Native install AND npm install — both cause BSODs

BSOD Details (WhoCrashed analysis)

Crash 1 — Mon 02/03/2026 14:24:04
Bugcheck 0x139 KERNEL_SECURITY_CHECK_FAILURE — kernel detected corruption of a critical data structure.
Parameters: (0xA, 0x0, 0x0, 0xFFFFEF82EFE267F0)
Dump: C:\Windows\Minidump\030226-24468-01.dmp

Crash 2 — Sun 01/03/2026 17:52:09
Bugcheck 0x139 KERNEL_SECURITY_CHECK_FAILURE — identical to Crash 1.
Parameters: (0xA, 0x0, 0x0, 0xFFFFE2809452E7F0)
Dump: C:\Windows\Minidump\030126-25015-01.dmp

Crash 3 — Sun 01/03/2026 17:44:09
Bugcheck 0x1E KMODE_EXCEPTION_NOT_HANDLED — kernel-mode unhandled exception.
Parameters: (0xFFFFFFFFC0000005, 0xFFFFF806910B30B0, 0x0, 0xFFFFFFFFFFFFFFFF)
Dump: C:\Windows\Minidump\030126-24234-01.dmp

Crash 4 — Sun 01/03/2026 17:23:19
Bugcheck 0x1E KMODE_EXCEPTION_NOT_HANDLED — identical type to Crash 3.
Parameters: (0xFFFFFFFFC0000005, 0xFFFFF806B904DF17, 0x0, 0xFFFFFFFFFFFFFFFF)
Dump: C:\Windows\Minidump\030126-24812-01.dmp

Crash 5 — Sun 01/03/2026 17:16:08
Bugcheck 0x50 PAGE_FAULT_IN_NONPAGED_AREA — invalid system memory referenced.
Module: Ntfs.sys (NT File System Driver)
Parameters: (0xFFFFF806CD582E50, 0x10, 0xFFFFF8064D582E50, 0x2)
Dump: C:\Windows\Minidump\030126-23296-01.dmp

Key observations:

  • Crashes 3, 4, and 5 occurred in a 36-minute cascade (17:16 → 17:44 → 17:52), consistent with the cascade degradation pattern documented in Repeated Bun v1.3.5 segfaults -- 78 crashes, root cause identified (Windows + WSL) #21875
  • WhoCrashed found no offending third-party drivers in any of the 5 dumps
  • The 0x139 parameter 1 = 0xA indicates LIST_ENTRY corruption — consistent with heap corruption propagating to kernel structures
  • The 0x1E with code 0xC0000005 (ACCESS_VIOLATION) at kernel addresses suggests corrupted pointers reaching kernel-mode code
  • The Ntfs.sys crash is particularly concerning — heavy file I/O during Claude Code sessions may be triggering file system-level corruption
  • System is otherwise rock-stable under sustained heavy loads (gaming, other development tools, compilation)

030126-23296-01.dmp
030126-24234-01.dmp
030126-24812-01.dmp
030126-25015-01.dmp
030226-24468-01.dmp

What Should Happen?

Claude Code should never cause an operating system kernel crash. If the Bun runtime encounters memory corruption, it should crash at the application level (as documented in #21875) without propagating corruption to kernel-visible structures. The existing Bun crash issues need to be treated with higher urgency given that the consequences now extend beyond lost sessions to full OS crashes and potential data loss.

Error Messages/Logs

WhoCrashed conclusion:
> 5 crash dumps have been found and analyzed. No offending third party drivers have been found.

I have the 5 minidump files from `C:\Windows\Minidump\` and Windows Event Viewer error logs available. Happy to upload if needed.

Steps to Reproduce

Steps to Reproduce

  1. Windows 11 x64, Intel i9-14900HX, 32GB RAM
  2. Install Claude Code (tested both native and npm install — both cause BSODs)
  3. Use Claude Code for extended sessions (30+ minutes)
  4. System BSODs — no Bun crash dialog, no application-level error, straight to kernel panic and forced reboot

Not deterministic, but 5 BSODs in 2 days makes Claude Code unusable on this machine.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.63 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Related issues (for context, not duplicates):

What I've ruled out:

  • Hardware: System is stable under all other workloads including sustained gaming and heavy compilation
  • Drivers: WhoCrashed found no third-party driver involvement
  • BIOS: Aware of Intel 13th/14th Gen microcode issues. While I plan to check for a BIOS update, crashes are exclusively correlated with Claude Code sessions, not general usage
  • Installation method: Tested both native and npm — identical behaviour
  • Terminal: Tested on PowerShell and WSL, Integrated VS Code Terminal as well as Standalone. BSOD Issues persist.
  • RAM: 32GB, no issues detected in other workloads

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions