Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stucked when adding path in WSL1 #104

Open
skt041959 opened this issue May 5, 2020 · 3 comments
Open

stucked when adding path in WSL1 #104

skt041959 opened this issue May 5, 2020 · 3 comments

Comments

@skt041959
Copy link

I'm using z.lua with zsh in WSL1 with ArchWSL (https://github.com/yuk7/ArchWSL).
It stucked when adding path like /usr/sbin/lua /home/xxx/.zplug/repos/skywind3000/z.lua/z.lua --add /mnt/c/Users/xxx

Debugged with strace, it's calling endless file rename.

rename("/home/xxx/.zlua.1588668768WOvPRf58", "/home/xxx/.zlua.1588668768WOvPRf58") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768hrxphh6v", "/home/xxx/.zlua.1588668768hrxphh6v") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768hFq83JGx", "/home/xxx/.zlua.1588668768hFq83JGx") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768hAoLFwYb", "/home/xxx/.zlua.1588668768hAoLFwYb") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768AKqSpmQM", "/home/xxx/.zlua.1588668768AKqSpmQM") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768UE22lynJ", "/home/xxx/.zlua.1588668768UE22lynJ") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.15886687683UIxePlC", "/home/xxx/.zlua.15886687683UIxePlC") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768PPNVClxD", "/home/xxx/.zlua.1588668768PPNVClxD") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768veWbGnob", "/home/xxx/.zlua.1588668768veWbGnob") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768rhTTW7dQ", "/home/xxx/.zlua.1588668768rhTTW7dQ") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768RlDw0oyG", "/home/xxx/.zlua.1588668768RlDw0oyG") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.15886687684Bb7nPAY", "/home/xxx/.zlua.15886687684Bb7nPAY") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768tX0zAeRs", "/home/xxx/.zlua.1588668768tX0zAeRs") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768BkCYhfoz", "/home/xxx/.zlua.1588668768BkCYhfoz") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768Hrl8VZEQ", "/home/xxx/.zlua.1588668768Hrl8VZEQ") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768agNDvOcf", "/home/xxx/.zlua.1588668768agNDvOcf") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768mTVnymV0", "/home/xxx/.zlua.1588668768mTVnymV0") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768MYOu42jB", "/home/xxx/.zlua.1588668768MYOu42jB") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768jKA5kFMB", "/home/xxx/.zlua.1588668768jKA5kFMB") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768lZFXoi3Q", "/home/xxx/.zlua.1588668768lZFXoi3Q") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.15886687681O3p0PfD", "/home/xxx/.zlua.15886687681O3p0PfD") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768ntximXjL", "/home/xxx/.zlua.1588668768ntximXjL") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768ikHIpTJR", "/home/xxx/.zlua.1588668768ikHIpTJR") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768tPpXxino", "/home/xxx/.zlua.1588668768tPpXxino") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768whUnw0qa", "/home/xxx/.zlua.1588668768whUnw0qa") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768ke8M1iYZ", "/home/xxx/.zlua.1588668768ke8M1iYZ") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768IfixysEh", "/home/xxx/.zlua.1588668768IfixysEh") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.15886687687u5uSiZF", "/home/xxx/.zlua.15886687687u5uSiZF") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768Fut2kZSK", "/home/xxx/.zlua.1588668768Fut2kZSK") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.15886687684QXwyvL7", "/home/xxx/.zlua.15886687684QXwyvL7") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768QuuFcznZ", "/home/xxx/.zlua.1588668768QuuFcznZ") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768kiK2Hj8N", "/home/xxx/.zlua.1588668768kiK2Hj8N") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
rename("/home/xxx/.zlua.1588668768TrF4HYFB", "/home/xxx/.zlua.1588668768TrF4HYFB") = 0
time(NULL)                              = 1588668768 (2020-05-05T16:52:48+0800)
@skywind3000
Copy link
Owner

You have a broken lua, try a new lua or luajit instead.

@meijieru
Copy link

The same issue here. All package has been updated except glibc: ignoring package upgrade (2.30-3 => 2.31-5).
lua -v gives the following output.

Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio

@skywind3000
Copy link
Owner

skywind3000 commented Jun 29, 2020

This is a bug of rename() system call in the latest WSL1 :

microsoft/WSL#5505

Before wsl team fix it, there is a work-around:

  • update z.lua to the latest version
  • install lua-filesystem
sudo apt-get install lua-filesystem

The latest z.lua will utilize lfs module to detect file existence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants