KERNEL_MODE_HEAP_CORRUPTION when launching Windows Terminal with my default profile set to WSL, before Ubuntu has loaded. #13515

Open
opened 2026-01-31 03:44:44 +00:00 by claunia · 0 comments
Owner

Originally created by @AleksandrHovhannisyan on GitHub (Apr 17, 2021).

Windows Terminal version (or Windows build number)

1.7.1033.0

Other Software

No response

Steps to reproduce

  1. Set your default Windows Terminal profile to be your WSL distro/profile.
  2. Restart your machine for a clean slate.
  3. Open Windows Terminal without first launching WSL/your Linux distro.
  4. On my end, I get a BSOD with KERNEL_MODE_HEAP_CORRUPTION shortly after clicking the Windows Terminal icon on my taskbar.

This may help narrow down the issue: The error does not occur if I first start up WSL/Ubuntu separately and wait for my profile to fully load before I launch Windows Terminal. I do this with Windows+R and run the command ubuntu (alternatively, you can search for your distro and run it via the start menu). Windows Terminal then loads just fine.

Expected Behavior

Windows Terminal should not crash my PC.

Actual Behavior

As soon as I click Windows Terminal on a fresh restart, it crashes my PC with a BSOD and KERNEL_MODE_HEAP_CORRUPTION as the error.

Originally created by @AleksandrHovhannisyan on GitHub (Apr 17, 2021). ### Windows Terminal version (or Windows build number) 1.7.1033.0 ### Other Software _No response_ ### Steps to reproduce 1. Set your default Windows Terminal profile to be your WSL distro/profile. 2. Restart your machine for a clean slate. 3. Open Windows Terminal without first launching WSL/your Linux distro. 4. On my end, I get a BSOD with `KERNEL_MODE_HEAP_CORRUPTION` shortly after clicking the Windows Terminal icon on my taskbar. This may help narrow down the issue: The error does **not** occur if I first start up WSL/Ubuntu separately and wait for my profile to fully load before I launch Windows Terminal. I do this with `Windows+R` and run the command `ubuntu` (alternatively, you can search for your distro and run it via the start menu). Windows Terminal then loads just fine. ### Expected Behavior Windows Terminal should not crash my PC. ### Actual Behavior As soon as I click Windows Terminal on a fresh restart, it crashes my PC with a BSOD and `KERNEL_MODE_HEAP_CORRUPTION` as the error.
claunia added the Product-WSLNeeds-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 03:44:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13515