[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
Please disregard the post above. I found the real problem. https://bugs.launchpad.net/ubuntu/+source/php5/+bug/877894 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
I used byobu 4.37-0ubuntu1 in Ubuntu Server 11.10 64 bit. I left byobu running. But every few hours it will automatically close saying pipe: Too many open files y. Ulimit -n was 1024. I upgraded to 5.16-0ubuntu1~ppa5 and the problem still existed. I raised ulimit -n to 4096. Instead of crashing it will go into an infinite loop using 100% CPU. These were 2 backtraces from the infinite loop. #0 0x7f7ac5ad25f3 in select () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x004447bc in ?? () #2 0x00404e3f in ?? () #3 0x7f7ac5a1730d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #4 0x004057a9 in ?? () #5 0x7fffe7cad3f8 in ?? () #6 0x001c in ?? () #7 0x0006 in ?? () #8 0x7fffe7cad7f6 in ?? () #9 0x7fffe7cad7fd in ?? () #10 0x7fffe7cad800 in ?? () #11 0x7fffe7cad806 in ?? () #12 0x7fffe7cad809 in ?? () #13 0x7fffe7cad82c in ?? () #14 0x in ?? () #0 0x7f7ac5aef8b0 in __read_chk () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x0041ec7e in ?? () #2 0x00444853 in ?? () #3 0x00404e3f in ?? () #4 0x7f7ac5a1730d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x004057a9 in ?? () #6 0x7fffe7cad3f8 in ?? () #7 0x001c in ?? () #8 0x0006 in ?? () #9 0x7fffe7cad7f6 in ?? () #10 0x7fffe7cad7fd in ?? () #11 0x7fffe7cad800 in ?? () #12 0x7fffe7cad806 in ?? () #13 0x7fffe7cad809 in ?? () #14 0x7fffe7cad82c in ?? () #15 0x in ?? () -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
Okay, I added a couple of ulimit checks to the byobu -v path. It costs a fork (0.01s) for each of the shell outs to ulimit, which shouldn't be necessary in the default code path. However, I can see this being useful if someone runs 'byobu -v'. Thanks for the information. Ping me if you guys find any other ulimit values/limits worth testing! Cheers! ** Changed in: byobu Status: Triaged = In Progress ** Changed in: byobu (Ubuntu) Status: Triaged = In Progress ** Changed in: byobu Status: In Progress = Fix Committed ** Changed in: byobu (Ubuntu) Status: In Progress = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
** Changed in: byobu Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
This bug was fixed in the package byobu - 4.46-0ubuntu1 --- byobu (4.46-0ubuntu1) precise; urgency=low * debian/control: LP: #887344 - promote tmux to a 'recommends'; will 'depend' on it soon * === added directory etc/profile.d, etc/byobu/Makefile.am, etc/profile.d/Makefile.am, etc/profile.d/Z97-byobu.sh, Makefile.am: - LP: #586546 - Enable any user to remotely opt into launching byobu by default, using an LC_BYOBU=1 environment variable, which is transmitted over SSH * configure.ac, debian/install, etc/byobu/Makefile.am, etc/profile.d/Makefile.am: - fix installations to /etc * usr/bin/byobu, usr/bin/byobu-reconnect-sockets, usr/share/byobu/profiles/tmux: LP: #883637 - fix reconnection to SESSION_MANAGER and DBUS_SESSION_BUS_ADDRESS - add C-F5 key to tmux profile * usr/bin/byobu-ctrl-a, usr/share/byobu/profiles/tmux: LP: #887387 - support F12 as escape key in tmux mode - reorder byobu-ctrl-a to offer screen first, then emacs mode - make byobu-ctrl-a slighty more compatible with tmux (not quite there yet...) * usr/bin/byobu: LP: #713879 - add ulimit checks to byobu -v * usr/lib/byobu/.constants: - don't use UTF8 C an F for now * usr/lib/byobu/network: LP: #880410 - localize some variables, fix variable colision with cpu_temp * debian/control: - bump standards version * debian/install, debian/rules, etc/byobu/Makefile.am, etc/profile.d/Makefile.am: - fighting with autoconf to get shtuff installing in /etc, argh -- Dustin Kirkland kirkl...@ubuntu.com Mon, 31 Oct 2011 09:46:46 -0400 ** Changed in: byobu (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
** Changed in: byobu Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
Just as a point of reference: $ dpkg-query --show byobu byobu 4.37-0ubuntu1 $ bhome=/home/smoser/t/byobu-home $ mkdir -p $bhome $ i=1; while :; do i=$(($i+1)); echo -n = $i =:; \ HOME=$bhome sh -c ulimit -n $i exec byobu true break; done === 2 ===:/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24 === 3 ===:/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24 === 4 ===:/bin/sh: 3: Invalid argument === 5 ===:/bin/sh: 3: Invalid argument === 6 ===:/bin/sh: 3: Invalid argument === 7 ===:/bin/sh: 3: Invalid argument === 8 ===:/bin/sh: 3: Invalid argument === 9 ===:/bin/sh: 3: Invalid argument === 10 ===:/bin/sh: 3: Invalid argument === 11 ===:.: 41: 3: Too many open files === 12 ===:.: 39: 3: Too many open files === 13 ===:.: 37: 3: Too many open files === 14 ===:=== 15 ===:[screen is terminating] What the above shows is that 'ulimit -n 15' worked. Anything less than that was insufficient. The alternate 'HOME' was just to get default byobu configuration. By comparison, 'screen true' will run with 5. Just information. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
Interesting. On the machine I've tested it, the maximum number of open files (-n) was 1024, but the issue showed up anyway. What's more an issue, I guess, is the -u limit (max user processes) which is set at 24. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
Okay, I can put a ulimit check in byobu's startup. ** Changed in: byobu (Ubuntu) Status: Fix Released = Triaged ** Changed in: byobu Status: Fix Released = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
I added an entry to the manpage saying: +Byobu requires a suitable \fBulimit\fP(3) values to run. If you get an error at startup saying, 'pipe: too many open files', then check your ulimit -a values, as your open files or max user processes are too low. In this case, you will probably need to run simple \fBscreen\fP(1) ** Also affects: byobu (Ubuntu) Importance: Undecided Status: New ** Changed in: byobu (Ubuntu) Status: New = Fix Committed ** Changed in: byobu Status: Triaged = Fix Committed ** Changed in: byobu (Ubuntu) Importance: Undecided = Medium ** Changed in: byobu Importance: High = Medium ** Changed in: byobu Assignee: (unassigned) = Dustin Kirkland (kirkland) ** Changed in: byobu (Ubuntu) Assignee: (unassigned) = Dustin Kirkland (kirkland) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
I think that's the best I can do for now. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
This bug was fixed in the package byobu - 4.43-0ubuntu1 --- byobu (4.43-0ubuntu1) precise; urgency=low [ Dustin Kirkland ] * usr/bin/byobu, usr/lib/byobu/ip_address, usr/share/man/man1/byobu.1: - support IP_EXTERNAL fetching, LP: #873736 - put ip address in the terminal title bar, since we ran out of room for it in tmux * usr/bin/byobu-select-session: LP: #869390 - fix select session to obey BYOBU_BACKEND * configure.ac, usr/bin/Makefile.am: LP: #869377 - provide byobu-tmux and byobu-screen symlinks * configure.ac, README: LP: #861291 - configure should not change files under vcs control - compiling users need to ensure that BYOBU_PREFIX is set in their environment * usr/bin/byobu-launcher-install, usr/bin/byobu-launcher-uninstall: - LP: #861534 - ensure launcher command removed from each file before installing * usr/lib/byobu/.dirs: - use /dev/shm for cache, LP: #872551, #869279 - search and use a shared dir when possible * usr/lib/byobu/battery: LP: #851100 - rework the battery logic to use /sys instead of /proc * usr/share/man/man1/byobu.1: LP: #713879 - note too many files open ulimit error in documentation [ Daniel Hahler ] * usr/bin/byobu, usr/bin/byobu-launcher-install, usr/bin/byobu- launcher-uninstall: Use BYOBU_PREFIX explicitly, LP: #861302 * debian/rules, README: LP: #854868 - refactor autoconf into debian/rules [Scott Moser] * usr/lib/byobu/.shutil: fix rounding error in fpdiv, LP: #869282 -- Dustin Kirkland kirkl...@ubuntu.com Fri, 21 Oct 2011 13:43:57 -0500 ** Branch linked: lp:byobu ** Changed in: byobu (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 713879] Re: byobu crashes on start 'pipe: too many open files'
** Branch linked: lp:ubuntu/byobu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/713879 Title: byobu crashes on start 'pipe: too many open files' To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/713879/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs