> Thanks for reporting it. Can you use 'strace' to find out which system call is
> hanging? That would help isolate whether the bug is in 'du' or is in the
> kernel.
It may have been imprecise of me to say it "hung" - in the sense of hanging on a
single system call or operation. Rather, it stopped generating output when it
hit
that directory - presumably because it was spending mass amounts of time
examining the
files and directories under the sshfs_mount directory.
When I ran: strace du -sx ~/sshfs_mount
it generated tons of output (until I Ctrl/C'd it) and seemed to be "fstat"ing
files on
the remote system that do not exist. For example:
--- Cut Here ---
openat(4, "..",
O_RDONLY|O_NOCTTY|O_NONBLOCK|O_LARGEFILE|O_NOFOLLOW|O_CLOEXEC|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0700, st_size=13, ...}) = 0
close(4) = 0
fstatat64(3, "groff_1.23.0-3build2_amd64.deb", {st_mode=S_IFREG|0644,
st_size=11721486, ...}, AT_SYMLINK_NOFOLLOW) = 0
fstatat64(3, "etc", {st_mode=S_IFDIR|0755, st_size=3, ...},
AT_SYMLINK_NOFOLLOW) = 0
--- Cut Here ---
I can assure you that the groff "deb" file does not exist - either on the local
system
or the remote one (the one sshfs is connected to) (*). In fact, these are all
ARM
systems, so no idea where the amd64 "deb" file is coming from.
(*) Not only that, but sshfs should not be giving it access to anywhere on the
remote
system that is outside of my $HOME, yet it was "fstat"ing files from the system
directories (including "app-defaults", which is under /etc/X11).
> At some point we might ask whether you can reproduce the bug with the latest
> stable
> Coreutils <https://ftp.gnu.org/gnu/coreutils/coreutils-9.7.tar.xz> but the
> 'strace'
> is an easy thing to check first.
No problem. I will probably get and build the latest du at some point and test
that.
By the way, and just out of curiosity, what method does "du" use to figure out
if
something is a mountpoint (and thus to be skipped if -x was supplied on the cmd
line) ?
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
Note that they always end up in my Spam file anyway, so it is annoying to have
to
periodically clean that out.