-
Notifications
You must be signed in to change notification settings - Fork 110
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
[BUG] lsof hangs on Ubuntu 24.10 if executed from within another process #328
Comments
Ubuntu seemed to be using a old version of lsof. Could you please try and use the latest version? |
Reproduction of lsof 4.95.0 on Ubuntu 24.04:
It does not hang there. Could you please provide a strace with timestamps? |
So after a reboot my test script worked with right away, producing this log: strace-lsof-4.95-works.txt So the issue does boil down to some specific curiosity in how the process is called from Zed. However everything works great with 4.99 so perhaps getting Ubuntu's package updated is the real issue here. |
Describe the bug
lsof
directly from terminal always works fine.lsof
from another process, such as from Rust, Python or even a bash script, causes the process to hang.lsof
with-O
or-b
flag still works finelsof
withsudo
still works fine.Another detail is that when running with
-O
or-b
flags, there is a single process that runs for ~10 seconds, but if run without them the process hangs for several minutes and there is also a child process that's always near 100% CPU:To Reproduce
Expected behavior
Final call from given script to finish in several seconds and not to hang for upto 4-6 minutes.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: