microsoft / microsoft/WSL

WSL 2.6.3.0: Terminal crash after hibernation/sleep with [process exited with code 1]

Open
#14,055 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft Windows [Version 10.0.26200.7462]

### WSL Version

2.6.3.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

6.6.87.2

### Distro Version

Ubuntu 24.04.3

### Other Software

_No response_

### Repro Steps

1) Laptop goes into hibernation or sleep mode
2) Laptop resumes/wakes up
3) All open WSL terminals are already crashed
4) When opening a new WSL terminal, it starts correctly and executes commands normally
5) After ~30 seconds to a few minutes, the terminal crashes with the error:
[processo terminato con codice 1 (0x00000001)]
È ora possibile chiudere il terminale con CTRL+D oppure premere INVIO per riavviarlo.

NOTE: reverted WSL2 to version 2.5.10.0 and all works as expected.

### Expected Behavior

No crash or connection lost.

### Actual Behavior

All tabs crashed after wake up, VS Code connection is lost. The new opened tabs after a while crashes with error:
[processo terminato con codice 1 (0x00000001)]
È ora possibile chiudere il terminale con CTRL+D oppure premere INVIO per riavviarlo.

### Diagnostic Logs

[WUDFHost.exe.3992.dmp.gz](https://github.com/user-attachments/files/24611766/WUDFHost.exe.3992.dmp.gz)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the sleep or hibernation sequence with WSL 2.6.3.0, Ubuntu 24.04.3, and kernel 6.6.87.2, then inspect WUDFHost.exe.3992.dmp.gz and compare behavior with WSL 2.5.10.0. Done means terminals remain usable after resume and newly opened terminals do not later exit with code 1.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.