-
Notifications
You must be signed in to change notification settings - Fork 55
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
[Question]: lsof regression in amazonlinux:2023 ? #123
Comments
I'll include a minimal reproduction below. I don't have an Ubuntu installation to test this against personally, but I worked closely with @eddelbuettel to verify that this does indeed fail on his machine running Ubuntu 24.10: docker run --rm -it amazonlinux:2023 /bin/bash
# Inside the container:
dnf install -y lsof
lsof The final command hangs. This was not reproducible with Docker Desktop running on Apple Silicon macOS. Interestingly, this is reproducible for me (Docker Desktop, Apple Silicon, macOS) if I run docker run --rm -it amazonlinux:2023 /bin/bash
# Inside the container:
dnf install -y lsof strace
strace lsof That produces the following output (truncated at start and finish):
It keeps trying to close every file descriptor in sequence. I let it run for a while and it got into the hundreds of thousands before I killed the process. For both @eddelbuettel and myself, running Both @eddelbuettel and I tried reproducing with a plain docker run --rm -it ubuntu:latest /bin/bash
# Inside the container:
apt-get update
apt-get install -y lsof strace
strace lsof There is no endless loop of |
For completeness the kernel running under this (vanilla) Ubuntu 24.10 instance is edd@rob:~$ uname -a
Linux rob 6.11.0-13-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Sat Nov 30 23:51:51 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
edd@rob:~$ |
…10 (#11166) * Ubuntu 24.10 lets lsof loop endlessly, adding ulimit help Cf issue amazonlinux/container-images#123 * Update docker/start_s3rver.sh --------- Co-authored-by: Nathan Sarang-Walters <[email protected]>
Product
Amazon Linux 2023
What is your question?
lsof
is used to determine if a to-be-launched service is running already.So a launcher script tries
lsof -i :5000
. This now hangs even in a minimalamazonlinux:2023
container running under Ubuntu 24.10 unless we also runulimit -Sn 1024
(or some other larger number).The fact that it hangs stalls use of depoyment of PrairieLearn which has relied on AL for several years. I am CCing @nwalters512 who heads the tech side of things there and helped me debug.
We also verified that e.g. on standard
debian:12
orubuntu:latest
container,lsof -i :5000
runs fine (returning immediately). But somehowamazonlinux:2023
needs theulimit
call.The text was updated successfully, but these errors were encountered: