skywind3000 / skywind3000/z.lua

stucked when adding path in WSL1

Open
#104 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
3.1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the z.lua script and reproduce the reported add-path command under WSL1 with ArchWSL. Compare its behavior with the repeated self-renames shown by strace; done means adding /mnt/c/Users/xxx completes instead of hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, lua, zsh
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.