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

"whereis" locks up #92

Open
markusbkk opened this issue Nov 12, 2022 · 1 comment
Open

"whereis" locks up #92

markusbkk opened this issue Nov 12, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@markusbkk
Copy link

I think this might be an inherent issue with the reliance on FUSE, but running something like whereis go locks up the shell. The longer it runs, the more it locks it up and the harder it is to kill the process.

@stapelberg
Copy link
Member

You can run it under strace to see what’s going on:

strace -fvy whereis go

It seems like the whereis program starts searching /src at some point, which is a mountpoint that is backed by lazily downloading distri packages over the internet. For example, to see the source of whereis, you can cat /src/util-linux-amd64-2.32.1-7/misc-utils/whereis.c

I assume that your system is slowing down the more packages are being downloaded/mounted. It might be that resources aren’t freed quickly enough (or at all) in some places in the code.

I haven’t looked in more detail at this. Perhaps there is a way to configure whereis (or other parts of the system) to prevent this.

@stapelberg stapelberg added enhancement New feature or request help wanted Extra attention is needed labels Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants