WSL icon indicating copy to clipboard operation
WSL copied to clipboard

mv empty subfolder causes deadlock

Open ghost opened this issue 10 years ago • 26 comments

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

ghost avatar Jul 20 '16 10:07 ghost

Confirming, also tested on 14393.0

xilun avatar Jul 20 '16 22:07 xilun

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

benhillis avatar Jul 20 '16 22:07 benhillis

Arg deadlocks are not fun. Good luck! ;)

xilun avatar Jul 20 '16 22:07 xilun

When I use mv command in bash. deadlock for me.

lscgzwd avatar Jul 30 '16 06:07 lscgzwd

Thanks for reporting this issue, this issue has been fixed internally and will be in a future flight.

JasonLinMS avatar Aug 01 '16 21:08 JasonLinMS

I can confirm it's fixed on build 14901. Thanks!

onomatopellan avatar Aug 12 '16 21:08 onomatopellan

Fixed in 14901 and later.

benhillis avatar Sep 12 '16 15:09 benhillis

This one has been marked as fixed for a while. Closing.

russalex avatar Nov 16 '16 21:11 russalex

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 avatar Jan 20 '17 00:01 EvanCarroll

@EvanCarroll - What Windows version are you running?

benhillis avatar Jan 20 '17 00:01 benhillis

Windows 10.

EvanCarroll avatar Jan 20 '17 06:01 EvanCarroll

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).

JasonLinMS avatar Jan 20 '17 09:01 JasonLinMS

Having the same issue: 1607/14393.693

tmcdonnell87 avatar Jan 22 '17 20:01 tmcdonnell87

I'm having the same issue, winver reports 1607/14393.693.

StochasticTinkr avatar Feb 09 '17 23:02 StochasticTinkr

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.

JasonLinMS avatar Feb 09 '17 23:02 JasonLinMS

Thanks for the update @JasonLinMS. Too bad the fix won't come out in a regular windows update :(

lkgarrison avatar Feb 27 '17 22:02 lkgarrison

@lkgarrison - Fear not, Creator's update is coming soon.

benhillis avatar Feb 28 '17 02:02 benhillis

"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 avatar Mar 24 '17 22:03 whorfin

@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?

aseering avatar Mar 24 '17 23:03 aseering

@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.

doodead avatar Mar 24 '17 23:03 doodead