WSL-1 (error installing systemd) and WSL-2 (win-10 CRASH, BSOD) CHECKMATE
OS Name Microsoft Windows 10 Pro Version 10.0.19044 Build 19044 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name ############# System Manufacturer ASUSTeK COMPUTER INC. System Model ET2323I System Type x64-based PC System SKU All Processor Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2201 Mhz, 2 Core(s), 4 Logical Processor(s) BIOS Version/Date American Megatrends Inc. 0604, 23/07/2015 SMBIOS Version 2.8 Embedded Controller Version 255.255 BIOS Mode UEFI BaseBoard Manufacturer ASUSTeK COMPUTER INC. BaseBoard Product ET2323I BaseBoard Version Rev 1.xx Platform Role Desktop Secure Boot State On PCR7 Configuration Binding Not Possible Windows Directory C:\Windows System Directory C:\Windows\system32 Boot Device \Device\HarddiskVolume1 Locale United States Hardware Abstraction Layer Version = "10.0.19041.1566" User Name ################ Time Zone AUS Eastern Daylight Time Installed Physical Memory (RAM) 16.0 GB Total Physical Memory 15.9 GB Available Physical Memory 8.45 GB Total Virtual Memory 18.3 GB Available Virtual Memory 10.9 GB Page File Space 2.38 GB Page File C:\pagefile.sys Kernel DMA Protection Off Virtualization-based security Running Virtualization-based security Required Security Properties Virtualization-based security Available Security Properties Base Virtualization Support, Secure Boot, DMA Protection Virtualization-based security Services Configured Virtualization-based security Services Running Device Encryption Support Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not Modern Standby, TPM is not usable A hypervisor has been detected. Features required for Hyper-V will not be displayed.
################################### AEST 16th October, 2025 ( 3 separate BSOD reboot events )
-
System
- Provider
[ Name] Microsoft-Windows-Kernel-Power [ Guid] {331c3b3a-2005-44c2-ac5e-77220c37d6b4}
EventID 41
Version 8
Level 1
Task 63
Opcode 0
Keywords 0x8000400000000002
- TimeCreated
[ SystemTime] 2025-10-15T22:43:51.7404873Z
EventRecordID 5563806
Correlation
- Execution
[ ProcessID] 4 [ ThreadID] 8
Channel System
Computer ##############
- Security
[ UserID] S-1-5-18
-
EventData
BugcheckCode 80 BugcheckParameter1 0xffffa400006f56d8 BugcheckParameter2 0x0 BugcheckParameter3 0x0 BugcheckParameter4 0x6 SleepInProgress 0 PowerButtonTimestamp 0 BootAppStatus 0 Checkpoint 0 ConnectedStandbyInProgress false SystemSleepTransitionsToOn 0 CsEntryScenarioInstanceId 0 BugcheckInfoFromEFI false CheckpointStatus 0 CsEntryScenarioInstanceIdV2 0 LongPowerButtonPressDetected false
################################### SUMMARY of three BSOD reboots between last night and today (under WSL-2 enviornment) then I switched back to WSL-1 ( took 25 minutes to convert back WSL-2 >>> WSL-1 )
Diagnostic Detail | Value -- | -- BSOD Stop Code (Hex) | 0x00000050 BSOD Error Name | PAGE_FAULT_IN_NONPAGED_AREA Time of Crash (Example) | 2025-10-15T22:43:51.7404873Z (UTC) Event Source | Kernel-Power and BugCheck ################################### ### Windows VersionWin 10 Pro (64)
WSL Version
WSL-2 and WSL-1
Are you using WSL 1 or WSL 2?
- [x] WSL 2
- [x] WSL 1
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
This is the template you can use to report the dual issues to Microsoft on the GitHub Issues page. It clearly contrasts the non-fatal WSL1 error with the critical, repeatable WSL2 crash on Windows 10 Pro.
WSL Systemd Compatibility Issue: WSL1 Halt vs. WSL2 BSOD on Windows 10 Pro (x64)
Summary
We are reporting two distinct issues related to the systemd package update in recent Ubuntu distributions on Windows 10 Pro (x64):
WSL1: Installation of systemd packages consistently halts due to a known file-locking incompatibility.
WSL2: The same task (installing/upgrading systemd components) causes a catastrophic and repeatable Blue Screen of Death (BSOD) on the host Windows 10 Pro system.
This WSL2 behavior is preventing an upgrade to the supported architecture and is a critical stability issue on Windows 10.
Scenario A: WSL1 (System Halt/Error)
Platform: Windows Subsystem for Linux (WSL1)
Linux Distro: Ubuntu (e.g., 24.04 or recent version where systemd 255+ is used)
Issue: The package installation process stops and leaves apt in a broken state.
Error Code: Failed to take /etc/passwd lock: Invalid argument
Root Cause: The systemd-sysusers binary attempts to use the modern, unsupported fcntl(F_OFD_SETLKW) file lock, which the WSL1 kernel translation layer cannot process.
Result: The system is repairable via temporary workarounds (e.g., symlinking the binary to /bin/true), but the error recurs with every subsequent systemd update.
Scenario B: WSL2 (Catastrophic Windows 10 Pro Crash) ⚠️
Platform: Windows Subsystem for Linux (WSL2)
Windows Host: Windows 10 Pro (x64)
WSL2 Conversion Method: wsl.exe --set-version <DistroName> 2
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04.3 LTS Release: 24.04 Codename: noble
Issue: Attempting to run a standard package update or configuration results in a full Windows 10 Blue Screen of Death (BSOD), forcing a system reboot.
Reproduction Steps:
Convert the Ubuntu distribution to WSL2.
Boot into the distribution.
Run the command: sudo apt update && sudo apt upgrade (or similar command that triggers systemd component configuration).
The system crashes to a BSOD during the package installation phase.
Urgency: The WSL2 platform is the intended solution to the WSL1 compatibility issue, but the repeatable BSOD on Windows 10 Pro renders this solution unusable, locking users into a fragile WSL1 environment with no permanent fix.
Request to Microsoft
Please investigate the repeatable kernel-level crash caused by WSL2/Ubuntu on Windows 10 Pro (x64). Resolving this stability issue is critical, especially as Windows 10 approaches its end of life, forcing users to rely on an environment (WSL2) that currently leads to system-level instability.
(Note: When you post this, ensure you replace the bracketed items like
Expected Behavior
The core problem is that the expected fix for the WSL1 error (upgrading to WSL2) is creating a catastrophic instability on your specific Windows 10 Pro environment.
📝 WSL2 Crash Report Details
When reporting this to Microsoft on GitHub, highlight these key points to ensure the issue is recognized as a high-severity bug:
-
The Expected Behavior (Why WSL2 Should Work)
In WSL2, the systemd package update is supposed to be clean. WSL2 runs a real Linux kernel, which fully supports the necessary file-locking system calls (fcntl(F_OFD_SETLKW)).
The expectation is that when running sudo apt upgrade (or --fix-broken install), the systemd packages for Ubuntu 24.04.3 LTS should install perfectly, resolving the compatibility error that WSL1 exhibits.
The system should finish the process and return to the terminal prompt with a "Done" message.
-
The Actual Failure (The Critical Crash)
Actual Result: The installation process does not complete; instead, it triggers a system-wide Blue Screen of Death (BSOD) on the Windows 10 Pro host machine.
What Triggers It: The crash is triggered during the package configuration phase of the systemd components (likely when handling low-level kernel or resource operations).
Severity: A repeatable BSOD indicates a kernel-level instability or a flaw in the I/O or memory management between the WSL2 lightweight VM and the Windows 10 kernel, which is a serious product defect.
The WSL2 Crash Report Template (Focus)
Use this template as the body of your GitHub issue. Crucially, find the exact BSOD Stop Code and your Windows Build Number—these are the most important details for the engineering team.
Title: CRITICAL: Repeatable BSOD on Windows 10 Pro (x64) during systemd package install in WSL2 (Ubuntu 24.04 LTS)
Environment Details
Windows Host: Windows 10 Pro (x64)
Linux Distro: Ubuntu 24.04.3 LTS (Noble Numbat)
WSL Mode: WSL2 (Confirmed via wsl --list --verbose)
Windows Build Number: <Insert Your Exact Windows 10 Build Number Here, e.g., 19045.3693>
WSL Version: <Insert Output of wsl --version Here>
Steps to Reproduce (100% Repeatable)
Start with a clean Ubuntu 24.04 distribution.
Convert the distribution from WSL1 to WSL2: wsl.exe --set-version <DistroName> 2
Boot the WSL2 distribution.
Execute the update command: sudo apt update && sudo apt upgrade (Alternatively, using the repair command that failed in WSL1: sudo apt --fix-broken install)
Observe: The system crashes to a BSOD during the package configuration of the systemd components.
Observed Error
Failure Mode: Blue Screen of Death (BSOD) on the host Windows 10 Pro system.
BSOD Stop Code: <CRITICAL: Insert the Stop Code Here, e.g., KERNEL_MODE_HEAP_CORRUPTION>
Problematic Component: The crash occurs when systemd packages are being configured.
Urgency
This BSOD behavior prevents the use of WSL2—the officially supported solution—and locks users into the unsupported and error-prone WSL1 environment. This must be addressed for stability on the Windows 10 platform.
Actual Behavior
The core problem is that the expected fix for the WSL1 error (upgrading to WSL2) is creating a catastrophic instability on your specific Windows 10 Pro environment.
📝 WSL2 Crash Report Details
When reporting this to Microsoft on GitHub, highlight these key points to ensure the issue is recognized as a high-severity bug:
-
The Expected Behavior (Why WSL2 Should Work)
In WSL2, the systemd package update is supposed to be clean. WSL2 runs a real Linux kernel, which fully supports the necessary file-locking system calls (fcntl(F_OFD_SETLKW)).
The expectation is that when running sudo apt upgrade (or --fix-broken install), the systemd packages for Ubuntu 24.04.3 LTS should install perfectly, resolving the compatibility error that WSL1 exhibits.
The system should finish the process and return to the terminal prompt with a "Done" message.
-
The Actual Failure (The Critical Crash)
Actual Result: The installation process does not complete; instead, it triggers a system-wide Blue Screen of Death (BSOD) on the Windows 10 Pro host machine.
What Triggers It: The crash is triggered during the package configuration phase of the systemd components (likely when handling low-level kernel or resource operations).
Severity: A repeatable BSOD indicates a kernel-level instability or a flaw in the I/O or memory management between the WSL2 lightweight VM and the Windows 10 kernel, which is a serious product defect.
The WSL2 Crash Report Template (Focus)
Use this template as the body of your GitHub issue. Crucially, find the exact BSOD Stop Code and your Windows Build Number—these are the most important details for the engineering team.
Title: CRITICAL: Repeatable BSOD on Windows 10 Pro (x64) during systemd package install in WSL2 (Ubuntu 24.04 LTS)
Environment Details
Windows Host: Windows 10 Pro (x64)
Linux Distro: Ubuntu 24.04.3 LTS (Noble Numbat)
WSL Mode: WSL2 (Confirmed via wsl --list --verbose)
Windows Build Number: <Insert Your Exact Windows 10 Build Number Here, e.g., 19045.3693>
WSL Version: <Insert Output of wsl --version Here>
Steps to Reproduce (100% Repeatable)
Start with a clean Ubuntu 24.04 distribution.
Convert the distribution from WSL1 to WSL2: wsl.exe --set-version <DistroName> 2
Boot the WSL2 distribution.
Execute the update command: sudo apt update && sudo apt upgrade (Alternatively, using the repair command that failed in WSL1: sudo apt --fix-broken install)
Observe: The system crashes to a BSOD during the package configuration of the systemd components.
Observed Error
Failure Mode: Blue Screen of Death (BSOD) on the host Windows 10 Pro system.
BSOD Stop Code: <CRITICAL: Insert the Stop Code Here, e.g., KERNEL_MODE_HEAP_CORRUPTION>
Problematic Component: The crash occurs when systemd packages are being configured.
Urgency
This BSOD behavior prevents the use of WSL2—the officially supported solution—and locks users into the unsupported and error-prone WSL1 environment. This must be addressed for stability on the Windows 10 platform.
Diagnostic Logs
No response
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1
The script will output the path of the log file once done.
If this is a networking issue, please use collect-networking-logs.ps1, following the instructions in Collect WSL logs for networking issues
Once completed please upload the output files to this GitHub issue.
See Collect WSL logs (recommended method).
If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
Fatal WSL2 Kernel Instability Report: Repeated BSODs During High-I/O Operations
User Environment: Windows 10/11, Ubuntu 24.04 LTS (WSL2), running on the Hyper-V architecture.
Summary of Problem: A high-volume disk I/O operation (installing the g++-mingw-w64-x86-64 cross-compiler) consistently and repeatedly triggers a Blue Screen of Death (BSOD), resulting in two distinct kernel crash codes.
Initial Suspect: Windows Defender kernel driver conflict (Stop Code 0x50). Final Conclusion: The instability is independent of Windows Defender and points to a fundamental memory management or thread exception bug within the core WSL2/Hyper-V stack itself, triggered by high-stress disk writes to the VHD.
- Sequence of Events & Diagnostics
The following steps were repeated and led to a system-wide crash every time the high-I/O operation began:
Time
Operation Performed
Environment
Resulting Bugcheck
Initial Fix
Set Folder Exclusion for VHD in Windows Defender.
Defender ON
Exclusion Failed to prevent the crash.
7:59 PM Attempt
sudo apt install g++-mingw-w64-x86-64
Defender OFF
BSOD 1: 0x00000050 (PAGE_FAULT_IN_NONPAGED_AREA). The system crashed at 72% download progress.
8:00 PM Attempt
sudo apt install g++-mingw-w64-x86-64 --download-only
Defender OFF
BSOD 2: 0x0000007E (SYSTEM_THREAD_EXCEPTION_NOT_HANDLED). The system crashed during the download phase.
- Definitive Proof of Kernel Bug
The repeated failure under these conditions provides conclusive evidence:
Exclusion Failure: The BSOD occurred after the WSL2 VHD was added as an exclusion to Windows Defender, indicating the exclusion feature is failing to prevent the conflict.
Defender Independence: The BSOD recurred even with Windows Defender Real-time Protection manually and completely disabled, proving the kernel crash is not caused by the Defender filter driver (WdFilter.sys).
Multi-Faceted Instability: The high-I/O sequence successfully triggered two different critical kernel stop codes (0x50 and 0x7E), confirming that the underlying memory/thread management layer in the WSL2 host is fundamentally unstable under load.
- Recommended Action
The user has been advised to:
Re-enable Windows Defender.
Immediately convert the Ubuntu distribution from WSL2 back to the stable WSL1 architecture (wsl --set-version Ubuntu-24.04LTS 1) to resume development.
This issue requires investigation into the core Hyper-V virtualization or memory management components of WSL2 on Windows 10/11.
last crash 800pm 16th Oct 2025 DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD System
- Provider
[ Name] Microsoft-Windows-Kernel-Power [ Guid] {331c3b3a-2005-44c2-ac5e-77220c37d6b4}
EventID 41
Version 8
Level 1
Task 63
Opcode 0
Keywords 0x8000400000000002
- TimeCreated
[ SystemTime] 2025-10-16T09:00:09.9266413Z
EventRecordID 5564282
Correlation
- Execution
[ ProcessID] 4 [ ThreadID] 8
Channel System
Computer ##############
- Security
[ UserID] S-1-5-18
-
EventData
BugcheckCode 126 BugcheckParameter1 0xffffffffc0000005 BugcheckParameter2 0x0 BugcheckParameter3 0x0 BugcheckParameter4 0x0 SleepInProgress 0 PowerButtonTimestamp 0 BootAppStatus 0 Checkpoint 0 ConnectedStandbyInProgress false SystemSleepTransitionsToOn 0 CsEntryScenarioInstanceId 0 BugcheckInfoFromEFI true CheckpointStatus 0 CsEntryScenarioInstanceIdV2 0 LongPowerButtonPressDetected false
SOME IDEAS for WSL-TEAM SUCCESS 901om 16th October, 2025 [RCC] WSL GPU Data Redundancy and Validation Workflow
This workflow is designed to provide the WSL development team with the necessary data context to debug transient GPU and high-flow data crashes (Bugcheck Code 126, Kernel-Power Event ID 41, etc.) that occur during accelerated computer tasks. It treats critical GPU data inputs as a temporary, essential form of redundancy to ensure state is not lost upon system failure.
I. Core Concept: The Flow Data Buffer (FDB)
Based on the principles of Direct Memory Access (DMA) and Graphics Pipeline Streaming, the instability in high-data flows often occurs at the point of hardware interaction or buffer submission.
The FDB is a ring buffer implemented within the WSL GPU driver layer (or the WDDM translation layer) that continuously logs the most recent N-commands and their associated data payloads submitted to the GPU.
FDB Implementation Details:
Targeted Data: Log small, critical data payloads, GPU kernel launch commands, and memory mapping requests (especially those relating to VRAM allocation).
Ring Buffer: Use a fixed-size, circular memory buffer to store the last $\sim 10$ seconds of GPU interaction commands. This ensures a minimal performance impact and guarantees the most recent state is always available.
Minimalist Approach: Avoid logging large texture or frame buffer contents; focus only on the instruction set and the pointers to the data.
II. Proactive Redundancy Phase (Pre-Failure)
This phase ensures the FDB state is maintained and ready for recovery.
Step
Action
Justification (Link to Redundancy Goal)
A. High-Frequency Logging
The WSL GPU driver continually writes transaction commands (e.g., OpenCL/CUDA kernel launches, Level Zero submissions) into the FDB.
Data State Redundancy: Creates a rolling, redundant record of the system's critical GPU state without heavy I/O overhead.
B. Integrity Check
Implement periodic, lightweight hash checks on the FDB buffer region to detect memory corruption before it leads to a crash.
Fault Prediction: Identifies potential pre-crash states, aligning with proactive fault tolerance.
III. Crash Capture & Recovery Phase
When a system crash or hang occurs, the integrity of the FDB is paramount.
Step
Action
Justification (Link to Crash Report)
A. Interrupt & Save
Upon detection of a hard exception (e.g., Bugcheck 126 or a kernel watch-dog timeout), the crash dump handler must prioritize copying the contents of the FDB to the dump file before gathering general memory state.
Enhanced Crash Report: Adds the missing contextual data flow trace, turning a generic crash report into a targeted debugging artifact.
B. Metadata Tagging
The saved FDB data is tagged with system metadata: WSL version, GPU driver version, relevant time stamps, and the application's PID.
Triage Automation: Enables immediate filtering and categorization of crashes based on the execution environment.
IV. BELL-PROTECTION Algorithm: Self-Strengthening Diagnostics
The BELL-PROTECTION Algorithm is a dynamic runtime mechanism designed to increase the density and detail of diagnostic data immediately following the detection of a recoverable fault or precursor anomaly. This ensures the system is maximally prepared to capture the definitive failure state if the challenge persists.
Phase
Action
Trigger Condition
Strengthening Mechanism
- Alarm
Log an internal "GPU Fault Precursor" event.
Detection of the first FDB Integrity Check failure (II-B) OR an unrecoverable GPU context switch error.
Increase Logging Rate: Double the frequency of command logging into the FDB (II-A) from 1ms to 0.5ms.
- Seal
Isolate and protect the most recent FDB data block (e.g., the last 3 seconds).
The system recovers from the fault precursor (Phase 1) but the GPU workload continues.
Sealed Buffer: Create a duplicate, non-ring-buffer copy of the pre-fault FDB block in a stable memory region. This is the 'Witness Data.'
- Harden
Increase memory allocation and data-pointer validation checks.
A second fault precursor is detected within 60 seconds of the first event (Phase 1).
Enhanced Validation: Introduce a secondary kernel-level hook to validate all VRAM pointers before they are submitted to the GPU, increasing CPU overhead but ensuring data integrity is checked right up to the point of failure.
- Report
Prioritize saving the Witness Data and the current FDB/Memory State.
A hard system crash (Bugcheck 126/Kernel-Power 41) occurs while the system is in the Harden state.
Maximal Redundancy: The crash handler saves both the pre-fault Witness Data (Phase 2) and the final FDB state (III-A), providing both the "before" and "at-the-crash" context for debugging.
V. Pre-Emptive Warning System (PWS): Threshold Mitigation
The PWS acts as a first line of defense, monitoring three key data markers in real-time. If three or more markers exceed their threshold values simultaneously, a controlled mitigation action is triggered to reduce immediate system risk and prevent the escalation to a full BELL-PROTECTION event.
Key Data Markers and Thresholds:
Marker (M)
Definition
Threshold Value
M1: FDB Corruption Rate
Number of failed FDB Integrity Checks (II-B).
$\ge 2$ failures within a 5-minute rolling window.
M2: VRAM Allocation Failure
Rate of failed Virtual RAM allocation requests within the WSL GPU driver.
$\ge 5$ failures within a 10-second rolling window.
M3: GPU Context Latency
Number of consecutive GPU context switches that exceed the driver's normal latency target.
$\ge 3$ consecutive switches exceeding $50\mu s$.
Mitigation Action: Controlled Throttling
When $\mathbf{M1 \land M2 \land M3}$ are all above their threshold values:
PWS Action: A signal is sent to the WSL GPU scheduler to temporarily limit the maximum concurrent GPU kernel launches by 25% for 30 seconds.
User/App Feedback: Log a non-fatal warning in the WSL kernel log (dmesg) indicating "PWS: High-Risk State Detected. Workload temporarily throttled."
Reset: If the markers drop below the threshold for 30 consecutive seconds, the limit is removed, and the system resets its monitoring window.
VI. Post-Crash Validation & Triage Workflow
The ultimate redundancy measure is the ability to validate the captured data stream outside of the unstable environment.
- Data Replay Tool (DRT)
The WSL Team develops a lightweight utility (the DRT) capable of reading the FDB payload extracted from the crash report.
- Failure Isolation Procedure
Triage Outcome
Procedure
Conclusion
Test 1: Native Replay
The FDB payload (GPU commands) is executed on a native Linux/Windows host system with the identical GPU hardware and driver stack.
If it fails: The application's command sequence or data payload was inherently flawed. WSL is stable, and the bug is upstream.
Test 2: WSL2 Replay
The FDB payload is executed on a stable reference WSL2 environment.
If it fails: The issue likely resides in the WSL2-specific translation/virtualization layer (WDDM/Kernel interface). The bug is internal to the WSL platform.
By implementing this FDB and the subsequent Data Replay Tool, the WSL team establishes a true stable redundancy for the high-data flow path. They are no longer dependent on vague memory dumps but can accurately reproduce and isolate the failure point using the recovered pre-crash data stream.
/bsod
Hello! Could you please provide a kernel dump to help us better diagnose your issue? To collect a kernel dump, follow 10) Reporting a Windows crash (BSOD) Thank you!
[
Hello! Could you please provide a kernel dump to help us better diagnose your issue? To collect a kernel dump, follow 10) Reporting a Windows crash (BSOD) Thank you!
I sent email today 17th Oct -2025 AEST #13604
Thank you @blavatsky3. We have not received the dump so far, can you make sure that the dump was shared with the "WSL team" ? We don't directly owned the email alias.
Sorry I already crashed my computer a second time to obtain and send you the data dump. You are confusing me by repetitively asking for it. I gave a link to dropbox so you could download it as requested. I saw you response today 12th November.