WSL: Completely freeze and zombify WSL with tmux and oh-my-zsh
- A brief description
Under specific but easy to reproduce conditions, tmux and oh-my-zsh will freeze the entire WSL and become unkillable even from the Windows task manager. It also becomes impossible to stop the LxssManager service, which gets stuck at the “Stopping” phase, and it is even unkillable by killing the service’s PID with taskkill /f /PID in an administrative command prompt. The only way to kill it is by rebooting (I haven’t tried elevating my commandprompt from administrator to NT Authority\System, maybe that would work, since even administrative taskkill is being told access denied.
- Your Windows build number
Build 14926 (happens on earlier builds too, at least since 14905. Don’t remember if it happened in anniversary)
- Steps / All commands required to reproduce the error from a brand new installation
From a clean install of WSL:
Install dependencies:
sudo apt install tmux git curl zsh
Run the oh-my-zsh install script
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
While running the script, it will ask for your user password in order to change your default shell. This does not actually do anything with WSL, so whatever.
Now run tmux with tmux. Inside of tmux, you will have a bash prompt. From here, run zsh with zsh.
Now hold down the enter key for a while, continually entering an empty line, which should begin to scroll the screen. Eventually it will freeze and become totally unkillable, even with the Windows task manager, and even if you attempt to manually stop the LxssManager service with either sc or from the administrative tools snap-in.
- Strace of the failing command Freezes, so no strace.
- Required packages and commands to install tmux, git, curl, zsh (commands to install oh-my-zsh covered above)
By the way, this is definitely not a console issue, because it happens even if you try to do it from an X terminal.
Also, I tested this without oh-my-zsh, and it didn’t freeze. When I looked at what oh-my-zsh does while screenscrolling outside of tmux, I noticed that intermittently, it’s printing something that says “git:()”. I think this might be related to the problem.

About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 20 (4 by maintainers)
The bad news: this bug looks to continue to happen in build 14951.
The good news: I can not get this to reproduce on an internal build. We have made quite a few fixes which have not made it out to the Insider builds yet.
One interesting bit, I did see it display “git:()” once in testing. Not certain what’s causing that.
Never mind. Still broken. Just got it to deadlock in 14942 as soon as I re-added completion and compfix.
@russalex Seems good now. I worked all day with oh-my-zsh (with the completion and compfix libs re-added), and I haven’t hit a deadlock. I didn’t do the “enter key stress” test this time, but I am sure you guys have (and there is another issue open related to this anyway), so I am going to go ahead and close.
@fpqc Sorry, missed that 😃