After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632689 - gnome-terminal "gives too many open files" error after running for a long time, with frequent open/close of terminal window
gnome-terminal "gives too many open files" error after running for a long tim...
Status: RESOLVED DUPLICATE of bug 632257
Product: vte
Classification: Core
Component: general
0.26.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-20 13:05 UTC by Jeff Zheng
Modified: 2010-10-20 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
error screen shot (22.04 KB, image/png)
2010-10-20 13:05 UTC, Jeff Zheng
Details
fd list in /proc/xxxx/fd when this happens (68.27 KB, text/plain)
2010-10-20 13:08 UTC, Jeff Zheng
Details

Description Jeff Zheng 2010-10-20 13:05:57 UTC
Created attachment 172840 [details]
error screen shot

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
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue Oct 19 23:56:01 2010
ExecutablePath: /usr/bin/gnome-terminal
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
Comment 1 Jeff Zheng 2010-10-20 13:08:05 UTC
Created attachment 172841 [details]
fd list in /proc/xxxx/fd when this happens

fd list in /proc/xxxx/fd when this happens
Comment 2 Christian Persch 2010-10-20 14:55:50 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.

*** This bug has been marked as a duplicate of bug 632257 ***