WSL: WSL1 STOP Error in Windows 11 / Server 2022 (MEMORY_MANAGEMENT)

Windows Build Number

Microsoft Windows [Version 10.0.22000.194]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

4.4.0-22000-Microsoft

Distro Version

Kali Rolling / Ubuntu 20.04

Other Software

No response

Repro Steps

Windows 11 BugCheck occurs when running Kali-xRDP or Ubuntu 20.04 session over RDP.
Other users report this is happening in WSL1 console:

  • EXAMPLE: Install rust using rustup as follows: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • System will BSOD before installation completes.

Can also confirm this issue does not occur under Windows 10.

Expected Behavior

BugCheck-free computing

Actual Behavior

BugChecks in WSL1

Not just me seeing this:

https://github.com/DesktopECHO/kWSL/issues/11 https://twitter.com/xssfox/status/1434311282824417280

Diagnostic Logs

WinDBG-seamonkey.txt WinDBG-spotify.txt WinDBG-WebKitWebProcess.txt

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 13
  • Comments: 45 (5 by maintainers)

Most upvoted comments

Thanks for reporting, we have identified the fix and are working on getting a change out to Insiders.

I can confirm this is fixed in today’s Windows 11 22H2 public release. Thank you so much!

Build 22533.1001 - should be the latest Dev Channel build at time of writing.

Only tested on the one device though, can’t guarantee anything because there may be other factors

Edit: Also I remember it being fine on 22523 and 22526 as well, and I haven’t tried further back than that

I don’t know if this is a same issue but I also get MEMORY_MANAGEMENT BSOD in WSL 1 on Windows 11

Windows version: Windows 11 21H2 (OS Build 22000.194)

Scenario:

  • Create WSL 1 Ubuntu 20.04 environment
  • Try to install rust using rustup as follows: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

This crashes every time when installing rustc, can be reproduced in minutes (at least on my setup)

UPDATE: I was able to reproduce my case on absolutely clean install in VMWare virtual machine on different hardware, so I guess it is generic case invariant of environment/hardware used.

Attached crash minidump just in case: 100921-4890-01.zip

If we ignore insiders for a moment and talk about stable:

This crash occurs on all patched releases of Windows 11 version 21H2 so far, on all build numbers starting 22000.

it was never fixed in a patch to 21H2, but was fixed for the next feature update 22H2 (externally called Windows 11 2022 Update) with build numbers starting from 22621. 22H2 is considered generally available but is part of a rollout and on Enterprise you getting it may depend on other factors.

Unfortunately the only way to fix this crash currently is to upgrade to Windows 11 version 22H2/“2022 Update”. with build 22621 or higher. I’m not aware of any other fixes or workarounds in the history of this issue.

This issue has been resolved in the Windows 11 22H2 Release Preview.

Is there an ETA on when the fix will be live for stable / release builds? This is really frustrating.

No idea when the fix will eventually hit the stable channel, but it’s still broken in build 22000.652 (KB5012643).

I use WSL at my day job, and having it randomly crash and take down the entire system is incredibly frustrating right now.

As best as I can tell, the issue is fixed in Insider Beta and Dev builds (Build 22581.200 being the latest in both),

The issue is only present on retail/stable/release preview versions right now.

@crramirez yes, my case with rustup happened/happens on Intel 10900k

I can confirm that for me at least this was the case. The latest dev build has no signs of this crash after an extended period of testing. The same machine on 22000 crashes constantly when performing some WSL 1 tasks (Notably compiling Rust/Go applications and doing an apt upgrade)