mv empty subfolder causes deadlock
Please use the following bug reporting template to help produce actionable and reproducible issues:
- A brief description Bash crashes when trying to move an empty subdirectory - must restart computer (AFAIK) to recover e.g. root@MACHINE:/mnt/c/bash4/p3/process_content# mv voyage/vc/ .
with vc being an empty subdirectory sends bash into an unrecoverable state
- Expected results I would expect it would move the folder or give an error, or respond to cntrl-c
- Actual results (with terminal output if applicable) I have to actually restart Windows to get bash back
- Your Windows build number Build 14393.0
- Steps / commands required to reproduce the error root@MACHINE:/mnt/c/bash4/p3/process_content# mv voyage/vc/ .
- Strace of the failing command N/A
- Required packages and commands to install windows ubuntu bash
Confirming, also tested on 14393.0
Thanks for reporting this, looks like we have a deadlock due to some incorrect behavior on how we're treating paths with trailing slashes.
This is related to #650
Arg deadlocks are not fun. Good luck! ;)
When I use mv command in bash. deadlock for me.
Thanks for reporting this issue, this issue has been fixed internally and will be in a future flight.
I can confirm it's fixed on build 14901. Thanks!
Fixed in 14901 and later.
This one has been marked as fixed for a while. Closing.
I was able to get it to hang just now with a new version of bash trying to rename a directory on the desktop mv employees_db-full-1.0.6.tar/ employeesdb You can downplay the file here https://launchpadlibrarian.net/24493586/employees_db-full-1.0.6.tar.bz2
@EvanCarroll - What Windows version are you running?
Windows 10.
Which specific build of Windows 10? If you run winver from the Start menu, it should tell you the specific build on the second line (Version XXXX OS Build XXXXX.XXX).
Having the same issue: 1607/14393.693
I'm having the same issue, winver reports 1607/14393.693.
This issue is fixed in 14901 and later, and you guys are on 14393 (Anniversary Update). You would need to be on a Windows Insider build for this to be fixed, or to wait for the Creators Update coming later this year.
Thanks for the update @JasonLinMS. Too bad the fix won't come out in a regular windows update :(
@lkgarrison - Fear not, Creator's update is coming soon.
"Don't worry it's fixed in a major update coming soon" is unsatisfactory for a bug resulting in driver/kernel deadlock on user input. Why is this not an urgent security update for those running lxss?
@whorfin -- why would a hang in a default-off and beta-only feature, where the hang only affects that feature, justify an urgent security update?
@whorfin If you want the last fixes, you have to wait for Creators update or be on an insider build. From what I could gather, WSL is not something modular enough to be updated separately, it's an internal component and is deeply integrated with changes on the Windows kernel.
On Windows insider builds, this has been fixed a long time ago.