-
Notifications
You must be signed in to change notification settings - Fork 815
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
WSL shutdown crashes host PC #9143
Comments
I was feeling extra suicidal, so I decided to crash ASAP... I only got this far:
Entered my username and password 2x
crash My wslconfig did have bunch of settings inside, but now I know it's not systemd related at least, as I didn't get that far. Next I tried emptying my |
Thank you for reporting this @luxzg. Can you please follow the 10) Reporting a Windows crash (BSOD) section to report this crash ? |
I had a similar issue twice today and yesterday using WSL 1.0.0.0 and first time I was using 0.70.8. Windows 11. In both cases while issuing |
I will do the same. Can we add to that documentation how to undo reg.exe edit after? |
Sorry for delay, I almost gave up thinking that recent updates solved the issue, but I managed today after a bit of stuborn repetitive WSL shutdown/restart looping. I've sent to instructed inbox, subject "WSL issue 9143 - memory dump - luxzg" Thing is ... I've noticed that I only got minidumps. Checked
Actual dumps are ~2MB, I had 4 from earlier and this one new. Do you want me to try and get dumps of other type? If yes, which one?
As aservedio just mentioned, this happened after updates, with WSL 1.0, providing new version info below:
4 dumps were with versions as originally reported (111222-....dmp files) last one is with version as reported here now (111722-....dmp) @aservedio - do you use network bridging maybe, or systemd? You say "no special settings", but just want to confirm. Thanks! Also, check if you have minidumps from those two crashes in EDIT: And unsure if it helps in any way, but Terminal in which I've been running commands "remembers" this as last command |
I took a look into Startup and Recovery settings and I already had the exact same settings @luxzg described above and dump file pointing to %SystemRoot%\Minidump, but no that folder doesn't exist. I switched it to "Kernel memory dump" and unchecked "Overwrite any existing file". Hopefully I'll get something next time. My gut feeling from the speed of how it happens, it won't catch anything.
Also what I meant by no special settings is that it's all default. I don't know if I am using network bridging to be honest but I know I didn't change any defaults from installation and did not customize the global wslconfig either. As for systemd yes, I do have one of my WSL distro that has |
Well, that didn't take long, and I do have a 2GB MEMORY.DMP file. My problem now is the instruction method to upload that file as described in 10) Reporting a Windows crash (BSOD) section. This kernel dump is pretty large for an email attachment. None of email services I use today will let me do that. @OneBlue |
Allright I'm able to reproduce my issue consistently. It almost looks like on this Windows 11 PC, if I start 2 WSL distro with systemd enabled, then I can just run For my other PC on Windows 10, I am unable to reproduce this issue using the exact same 2 WSL distros with systemd enabled. And it has this
|
Thank you ! We have received the dump and identified the issue. |
Awesome news to wake up to! Then we can skip the 2GB uploads. Please keep us updated, if it's certain feature like systemd, we can disable it as a workaround maybe. I had few more crashes in the meantime... One with ArchWSL (comes with systemd as default) |
Hello, Getting back to the initial Windows 11 PC I was able to crash things easily, I am unable to replicate the bug here. It looks fixed from my end! The only curious thing is I just made sure everything was updated on both windows updates and
|
I could say the same, but I have to say I've actually "eased up" a little on shutdowns, and I'm rather cautious and wait a little for distro to exit itself. I'm in no mood of causing any real damage to my only working PC at this moment :) Anyway, I haven't had BSOD or forced reset since November 18th. But like I've said, I've tried to be gentle as well. I did run same procedure on ArchWSL, Debian, and today on kali-linux, trying to confirm my tutorials cover distros people ask me about. I hope BSOD is done, but I'll keep being careful until I read about it in release notes. |
Bummer, I was able to re-create the same crash I initially had. I did not intend to test that this time. Next time I need to |
@aservedio I got the info it should be officially patched in 2 days. |
2022-12 Cumulative Update for Windows 11 (KB5021255) reportedly includes patch for this issue. |
What about Windows 10 ? Which update fix this problem ? |
I confirme that after enabling systemd, my Windows 10 crashes a lot: BSOD or sudden reboot, but mostly during sleep mode. I switch back to systemd off and no more problems. |
@obriat did you patch W10 with latest Windows Updates? I don't know if patch was released for W10, but it was shipped in regular Windows Update for W11. |
same here, I can provide crash dump etc. if it helps?! |
still the same here...really no progress on that? really wonder why msrdc.exe is mentioned (wasn't rdp*ing at all)
|
This issue has been fixed in Windows and the fix is part of kb 5021255 |
@OneBlue are you kidding me?! |
You're most likely hitting something different. Please follow these instructions to share a kernel dump with us. |
Version
Microsoft Windows [Version 10.0.22621.819]
WSL Version
Kernel Version
5.15.68.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
systemd
apache2
x11-apps
Repro Steps
It's not exactly reproducible, but I am having this even with pretty clean WSL distro instance.
I have documneted all steps here:
https://github.com/luxzg/WSL2-fixes/blob/master/networkingMode%3Dbridged-ultra-quick.md
I am using the "unsupported" (or hidden) option:
networkingMode=bridged
I use it together with
systemd
enabled,If I start the procedure from start I sometimes crash even before installing
apache2
andx11-apps
, so I don't think it has anything to do with apps installed at later stage of setup, but I'm listing them anyway.Along the way during setup I have to shutdown WSL using:
wsl.exe --shutdown
So I do
exit
from WSL session, and thenwsl.exe --shutdown
but PC crashes.Sometimes it's blue screen, sometimes it freezes for 5-6 seconds then just reboots, but I always crash PC, then start from the start by unregistering Ubuntu distro.
I've managed to finish the process finally, and it maybe has something to do with me waiting those magical "8-seconds" (more like 10-11 just in case) each time between
exit
andshutdown
. I got to that idea because of the "8 second rule" mentioned in the config docs, even though they relate to different topic.I am still not 100% sure what causes it. I've been testing WSL for 2 weeks or so, trying stuff, and writing guides in process, and I do remember I had 2 such crashes, but today I've had it 20 times probably, 5-6 times just in last hour. Lost about 1.5 hours of writing in process (I was dumb enough to type directly to GitHub).
I've had it with Ubuntu 20.04 and 22.04.
I'm open to suggestions how to pinpoint what's happening.
Expected Behavior
I run
wsl --shutdown
and WSL stops, without affecting rest of my PC.Actual Behavior
Forcefull PC reboot, on 2-3 occasions with short blue screen, usually just reboots.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: