Hang while running ls on a directory containing a symlink
$ swh fs mount /tmp/foobar/
$ ls -lh /tmp/foobar/origin/https%3A%2F%2Fgithub.com%2FProgVal%2FLimnoria/2020-03-06/snapshot/refs%2Fheads%2Ftesting/root/
-> it hangs forever.
after a while, I killed swh-fuse, and got this:
ls: cannot read symbolic link '/tmp/foobar/origin/https%3A%2F%2Fgithub.com%2FProgVal%2FLimnoria/2020-03-06/snapshot/refs%2Fheads%2Ftesting/root/supybot': Software caused connection abort
ls: cannot access '/tmp/foobar/origin/https%3A%2F%2Fgithub.com%2FProgVal%2FLimnoria/2020-03-06/snapshot/refs%2Fheads%2Ftesting/root/test': Transport endpoint is not connected
ls: reading directory '/tmp/foobar/origin/https%3A%2F%2Fgithub.com%2FProgVal%2FLimnoria/2020-03-06/snapshot/refs%2Fheads%2Ftesting/root/': Transport endpoint is not connected
total 0
-rw-r--r-- 1 dev dev 1.3K Dec 2 15:12 CONTRIBUTING.md
-rw-r--r-- 1 dev dev 70K Dec 2 15:12 ChangeLog
-rw-r--r-- 1 dev dev 1.7K Dec 2 15:12 LICENSE.md
-rw-r--r-- 1 dev dev 117 Dec 2 15:12 MANIFEST.in
-rw-r--r-- 1 dev dev 983 Dec 2 15:12 Makefile
-rw-r--r-- 1 dev dev 2.3K Dec 2 15:12 README.md
-rw-r--r-- 1 dev dev 17K Dec 2 15:12 RELNOTES
dr-xr-xr-x 1 dev dev 0 Dec 2 15:12 locales
dr-xr-xr-x 1 dev dev 0 Dec 2 15:12 man
dr-xr-xr-x 1 dev dev 0 Dec 2 15:12 plugins
-rw-r--r-- 1 dev dev 90 Dec 2 15:12 requirements.txt
dr-xr-xr-x 1 dev dev 0 Dec 2 15:12 sandbox
dr-xr-xr-x 1 dev dev 0 Dec 2 15:12 scripts
-rw-r--r-- 1 dev dev 8.8K Dec 2 15:12 setup.py
dr-xr-xr-x 1 dev dev 0 Dec 2 15:12 src
l--------- 1 dev dev 3 Dec 2 15:12 supybot
d????????? ? ? ? ? ? test
so it looks like the hang was caused by reading supybot
, which is a symlink to a dir.
Migrated from T2842 (view on Phabricator)