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

Crashes by too many open file when installing ffmpeg on brand new Linux + linuxbrew installation. #11530

Closed
2 tasks done
gonejack opened this issue Jun 13, 2021 · 5 comments
Closed
2 tasks done
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age

Comments

@gonejack
Copy link

brew config output

HOMEBREW_VERSION: 3.1.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: 33e71c99dc40c0a134a236fffe2594ae6572d83c
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/linuxbrew-core
Core tap HEAD: 1d3dffbc2efe34c267ac64f6272fa98a8ad2ca37
Core tap last commit: 4 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0.0
HOMEBREW_MAKE_JOBS: 2
http_proxy: http://192.168.8.102:1090
https_proxy: http://192.168.8.102:1090
Homebrew Ruby: 2.6.3 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: dual-core 64-bit haswell
Clang: N/A
Git: 2.25.1 => /bin/git
Curl: 7.68.0 => /usr/bin/curl
Kernel: Linux 5.8.0-55-generic x86_64 GNU/Linux
OS: Ubuntu 20.04.2 LTS (focal)
Host glibc: 2.31
/usr/bin/gcc: 9.3.0
/usr/bin/ruby: 2.7.0
glibc: N/A
gcc@5: N/A
xorg: N/A

brew doctor output

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  guile@2

  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?

brew install ffmpeg

What happened (include all command output)?

==> Pouring libmpc--1.2.1.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/libmpc/1.2.1: 14 files, 549.9KB
==> Installing ffmpeg dependency: zstd
==> Pouring zstd--1.5.0.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/zstd/1.5.0: 31 files, 3.2MB
==> Installing ffmpeg dependency: binutils
==> Pouring binutils--2.36.1.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/binutils/2.36.1: 4,617 files, 265.4MB
==> Installing ffmpeg dependency: gcc
==> Pouring gcc--11.1.0_1.x86_64_linux.bottle.tar.gz
==> Creating the GCC specs file: /home/linuxbrew/.linuxbrew/Cellar/gcc/11.1.0_1/lib/gcc/11/gcc/x86_64-pc-linux-gnu/11.1.0/specs
🍺 /home/linuxbrew/.linuxbrew/Cellar/gcc/11.1.0_1: 2,192 files, 347.8MB
==> Installing ffmpeg dependency: hwloc
==> Pouring hwloc--2.4.1.x86_64_linux.bottle.tar.gz
🍺 /home/linuxbrew/.linuxbrew/Cellar/hwloc/2.4.1: 934 files, 10.1MB
==> Installing ffmpeg dependency: open-mpi
==> Pouring open-mpi--4.1.1_2.x86_64_linux.bottle.tar.gz
Error: Too many open files @ rb_sysopen - /home/linuxbrew/.linuxbrew/Cellar/open-mpi/4.1.1_2/lib/openmpi/mca_osc_pt2pt.so

What did you expect to happen?

Should not killed by system.

Step-by-step reproduction instructions (by running brew commands)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew install ffmpeg
@gonejack gonejack added the bug Reproducible Homebrew/brew bug label Jun 13, 2021
@MikeMcQuaid
Copy link
Member

What's the output of ulimit?

@gonejack
Copy link
Author

@MikeMcQuaid

~$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 15392
max locked memory       (kbytes, -l) 65536
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 15392
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

@MikeMcQuaid
Copy link
Member

@gonejack try to increase the maximum open files. That value is pretty low.

@gonejack
Copy link
Author

I don't think so, it's system default of brand new installation, could you check if there unclosed file leaks in memory?

@MikeMcQuaid
Copy link
Member

We've not had any other reports here. Your system defaults may need tweaked.

@github-actions github-actions bot added the outdated PR was locked due to age label Jul 15, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

2 participants