gnome-terminal "gives too many open files" error after running for a long time, with frequent open/close of terminal window
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Terminal |
Fix Released
|
High
|
|||
vte (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: gnome-terminal
After long usage of gnome-terminal without terminating the process, gnome-terminal gives "too many open files" error when open a new terminal.
Looking at the /proc/xxxx/fd, it seems that all opened /dev/pts/xxx and /dev/ptmx are left unclosed when an terminal window/tab is closed.
what I get from /proc/xxxx/fd is hundreds of opened fd
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 80 -> /dev/ptmx
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 81 -> /dev/pts/29
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 82 -> /dev/ptmx
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 83 -> /dev/pts/30
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 84 -> /dev/ptmx
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 85 -> /dev/pts/31
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 86 -> /dev/ptmx
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 87 -> /dev/pts/32
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 88 -> /dev/ptmx
lrwx------ 1 jeff.zheng users 64 2010-10-19 23:55 89 -> /dev/pts/33
to reproduce, open gnome-terminal, open a new tabe by ctrl+shift+t, then close the newly opened tab, then look at the /proc/xxx/fd, you can see the newly opened fds are left unclosed.
After a long run with frequenct open/close of terminal, you'll "too many open files" error
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gnome-terminal 2.32.0-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Tue Oct 19 23:56:01 2010
ExecutablePath: /usr/bin/
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: gnome-terminal
Changed in gnome-terminal (Ubuntu): | |
status: | New → Confirmed |
Changed in gnome-terminal: | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
Changed in vte (Ubuntu): | |
status: | New → Fix Released |
Here's the opened file list when it starts failing