Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL1 STOP Error in Windows 11 / Server 2022 (MEMORY_MANAGEMENT) #7480

Closed
1 of 2 tasks
DesktopECHO opened this issue Sep 30, 2021 · 45 comments
Closed
1 of 2 tasks

WSL1 STOP Error in Windows 11 / Server 2022 (MEMORY_MANAGEMENT) #7480

DesktopECHO opened this issue Sep 30, 2021 · 45 comments

Comments

@DesktopECHO
Copy link

DesktopECHO commented Sep 30, 2021

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:

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

Diagnostic Logs

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

@Biswa96
Copy link

Biswa96 commented Sep 30, 2021

How to set it up in WSL1 environment?

@DesktopECHO
Copy link
Author

DesktopECHO commented Sep 30, 2021

Install Kali-xRDP and watch some YouTube video in Seamonkey. It will hapen in minutes or hours.

@TheSkorm
Copy link

I hit this running ffmpeg, but not in a repeatable fashion

@DesktopECHO
Copy link
Author

I hit this running ffmpeg, but not in a repeatable fashion

Thanks for that info. I’ve also had trouble repeating this issue as well, but eventually I would hit it. When you were running ffmpeg, were you using it to view video, or convert a file? If it was video, were you running Xorg or xRDP at the time?

@TheSkorm
Copy link

TheSkorm commented Oct 1, 2021

Only to convert. I didn't have any xorg or rdp running

@DesktopECHO
Copy link
Author

I managed to capture the BSOD in action:

BSOD.mp4

@crramirez
Copy link
Contributor

Hello,

I had the same issue yesterday with a completely unrelated action. I was doing a dnf update in Oracle Linux and crashed with the MEMORY MANAGEMENT Stop code.

In WSL1 in Windows 11 Release Preview

Regards,
Carlos

@kykc
Copy link

kykc commented Oct 9, 2021

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

@jonshipman
Copy link

jonshipman commented Oct 18, 2021

Also, do-release-upgrade will trigger this panic "using Ubuntu from the store". Had the Prompt set to 'normal'. Mine happens on an ARM64 machine. Surface Pro X, 2019 SKU.

@DesktopECHO
Copy link
Author

Windows 11
Build 22000.258

Demonstration of BSOD running: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Rust-BSOD.mp4

@DesktopECHO
Copy link
Author

Confirmed BSOD also occurs on Windows 11 Dev build:

Microsoft Windows [Version 10.0.22483.1000]

@benhillis
Copy link
Member

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

@andirady
Copy link

I'm also having the same problem for Debian on Windows 11 version 10.0.22000 Build 22000
For my case, most crashes are caused by java runtime created by the jlink tool.

@DesktopECHO
Copy link
Author

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

I heard that a fix went out to Windows 11 Insiders last month, can anyone confirm if this is the case?

@Erisa
Copy link

Erisa commented Jan 17, 2022

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)

@DesktopECHO
Copy link
Author

DesktopECHO commented Jan 17, 2022

Thanks for that information! If it’s not too much trouble can you advise which build of Windows you’re running?

@Erisa
Copy link

Erisa commented Jan 17, 2022

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

@xxnuo
Copy link

xxnuo commented Mar 10, 2022

I hit this running ffmpeg, but not in a repeatable fashion

today i met it too when i run ffmpeg in wsl ubuntu shell,and before i met it when run pip to uninstall packages...

unpredictable bug annoying me today.

@crramirez
Copy link
Contributor

Lastest weeks I have experienced other similar issues. I don't see the blue screen but the PC freezes. And it is always related to WSL1, when I put every distro in WSL2 it stops happening.

But I have a friend with Windows 11 without this problem at all. Maybe it only happens with AMD CPUs? Someone with Intel?

@kykc
Copy link

kykc commented Mar 10, 2022

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

@raspiduino
Copy link

I managed to capture the BSOD in action:

BSOD.mp4

I got exactly the same thing! On Windows 11 build 22000.556 (stable channel) and also use Kali Linux from the store, also crash when open Firefox in it!

@raspiduino
Copy link

Lastest weeks I have experienced other similar issues. I don't see the blue screen but the PC freezes. And it is always related to WSL1, when I put every distro in WSL2 it stops happening.

But I have a friend with Windows 11 without this problem at all. Maybe it only happens with AMD CPUs? Someone with Intel?

Mine crashed when opening Firefox on WSL on Dual-Core T4300

@zakirmshaikh
Copy link

zakirmshaikh commented Mar 16, 2022

I got similar issue when i try to install just aws cli on my wsl ubuntu on windows 11. in 5 second it goes in to Memory_Management_crash

@crramirez
Copy link
Contributor

Hello @benhillis

Do you have any news about this? In my case, I need to make tests in WSL1 to check for regressions and the only way to do them is by using a Windows 10 virtual machine.

Regards,
Carlos

@matthewlloyd
Copy link

Still reproducible on Windows 11 build 22000.593 after the KB5011563 update, WSL1, AMD system.

@Erisa
Copy link

Erisa commented Apr 4, 2022

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.

@mguinhos
Copy link

Also having this problem with Kivy + buildozer + p4a

@kwaegel
Copy link

kwaegel commented Apr 27, 2022

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.

@Erisa
Copy link

Erisa commented Apr 27, 2022

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.

The fix is included as part of the (Currently Beta Channel) preview for what we assume is the next feature update (22H2), so unfortunatelly unless someone pays attention and backports it to current versions, you will have to wait until that feature update in the latter half of this year or enroll in Insider Beta Channel.

The entire stable/retail release of Windows 11 version 21H2 is affected by this issue.

@kwaegel
Copy link

kwaegel commented Apr 28, 2022

Unfortunate. I might try to switch over to WSL2 until this is fixed, but WSL2 has it's own problems with abysmal shared filesystem performance.

My entire rationale for using WSL1 (and WSL in general) is shared development of a common code base, and right now both subsystem versions have significant problems doing that. 😞

[Edit] WSL2 won't work for my purposes due to the shared filesystem issue. A 10-minute build turns into several hours.

@pratik-chakravorty
Copy link

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

@DesktopECHO
Copy link
Author

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

@matthewlloyd
Copy link

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

@harahauk
Copy link

harahauk commented Oct 6, 2022

I just starting getting this on the first dnf update on AlmaLinux in WSL1. BSOD in latest stable build of WIN11 enterprise with memory management as stop code. Tried reinstall of AlmaLinux and it happens again on the dnf update that includes a kernel upgrade.

I first installed the upgrade neccesary for wsl2, but then set wsl1 as default cause i dont want VMWare running on Windows Hypervisor.

@DesktopECHO
Copy link
Author

latest stable build of WIN11

What version exactly?

@harahauk
Copy link

harahauk commented Oct 7, 2022

latest stable build of WIN11

What version exactly?

Edition Windows 11 Enterprise
Version 21H2
Installed on ‎10/‎5/‎2022
OS build 22000.1042
Experience Windows Feature Experience Pack 1000.22000.1042.0

Features enabled:
Windows subsystem for linux
Virtual machine platform

Additional info of relevance:
I followed the instruction from VMWare here:
hxxps://kb[.]vmware[.]com/s/article/2146361
Maybe this setup is not supported?

No hyper-v support enabled.
Clean install from two days ago, fully updated windows and drivers on a new Lenovo Laptop (Ideapad 5).
I installed a kernel upgrade pack for wsl2, but I am using WSL 1 as default and in this particular distro. I dont expect WSL2 to work as I have disabled hyper-V.

Reliability monitor reports:
The computer has rebooted from a bugcheck. The bugcheck was: 0x0000001a (0x0000000000042001, 0xffffcd0ee2715d10, 0x0000000000000000, 0x0000000000000000). A dump was saved in: C:\Windows\MEMORY.DMP. Report Id: 57e1eeb6-78f7-4904-8fec-b5a105d5d4a8.

@Erisa
Copy link

Erisa commented Oct 7, 2022

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.

@harahauk
Copy link

harahauk commented Oct 7, 2022

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

Thank you for this insight, I will find a way to patch up my Windows version.

EDIT: Can confirm, joining my system to the Windows Insider Program on the Release Preview channel and doing a reboot after some patching allowed me to run "dnf update" inside almalinux with no stop/bsod error. Thank you.

@DesktopECHO
Copy link
Author

This issuse persists in Windows Server 2022

BSOD Installing Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Running latest update KB5021249 (Dec 2022)
Microsoft Windows [Version 10.0.20348.1366]

@DesktopECHO DesktopECHO reopened this Dec 15, 2022
@DesktopECHO DesktopECHO changed the title WSL1 STOP Error in Windows 11 (MEMORY_MANAGEMENT) WSL1 STOP Error in Windows 11 / Server 2022 (MEMORY_MANAGEMENT) Dec 15, 2022
@kdschlosser
Copy link

Just came across this running doxygen. All windows 11 updates are installed. WSL2 Ubuntu 20.04.

took an eon for the bsod to complete the crash dump. I am going to see if it does the same thing again after it finishes rebooting.

@DesktopECHO
Copy link
Author

Just came across this running doxygen. All windows 11 updates are installed. WSL2 Ubuntu 20.04.

took an eon for the bsod to complete the crash dump. I am going to see if it does the same thing again after it finishes rebooting.

Highly unlikely this is the same bug, or you’re still on Win 11 21H2.

Issue was confirmed to be fixed in Win11 22H2 but apparently the fix did not land in Server 2022.

@kdschlosser
Copy link

kdschlosser commented Dec 31, 2022

you are correct. I believe that one of the 32GB sticks of ran went south in my computer. It is no longer showing the correct amount of memory. It is ECC ram too. I have to run some tests to confirm it because I don't actually know when the RAM disappeared from the computer.

@DesktopECHO
Copy link
Author

Hello @benhillis and @craigloewen-msft
Any idea when this fix will end up in Server 2022?

@seth586
Copy link

seth586 commented Feb 4, 2023

Same problem persists Windows Server 2022, os build 20348.1487

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests