Debian Bug report logs - #448807
gnome-terminal uses excessive memory -- leak suspected

version graph

Package: gnome-terminal; Maintainer for gnome-terminal is Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>; Source for gnome-terminal is src:gnome-terminal (PTS, buildd, popcon).

Reported by: "ariana strangelove" <astrangelove@gmail.com>

Date: Thu, 1 Nov 2007 05:33:01 UTC

Severity: important

Tags: moreinfo

Found in versions gnome-terminal/2.18.1-1, gnome-terminal/2.22.0-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, gpastore@debian.org (Guilherme de S. Pastore):
Bug#448807; Package gnome-terminal. (full text, mbox, link).


Acknowledgement sent to "ariana strangelove" <astrangelove@gmail.com>:
New Bug report received and forwarded. Copy sent to gpastore@debian.org (Guilherme de S. Pastore). (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "ariana strangelove" <astrangelove@gmail.com>
To: "Debian Bug Tracking System" <submit@bugs.debian.org>
Subject: gnome-terminal uses excessive memory -- leak suspected
Date: Wed, 31 Oct 2007 23:32:26 -0600
[Message part 1 (text/plain, inline)]
Package: gnome-terminal
Version: 2.18.1-1
Severity: important

I've had gnome-terminal in use for a while with default settings
(scrollback 500 lines or 318kb) and it's using a HUGE amount of memory.
I'm seeint the same from both gnome-panel and galeon so i suspect it
could well be an issue in a library used by all three.  I've looked at
the list for gnome-panel, and this could be related to bug #445340.
Here is it's line from top:
12381 ariana    19   4  458m 368m  13m R  1.0 24.3  12:09.19
gnome-terminal

I am going to also report against galeon and reference this and #445340,
feel free to consolidate if you this they are the same bug.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (700, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-3-k7 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnome-terminal depends on:
ii  gnome-control-center        1:2.18.1-1   utilities to configure the
GNOME d
ii  gnome-terminal-data         2.18.1-1     Data files for the GNOME
terminal
ii  libatk1.0-0                 1.20.0-1     The ATK accessibility toolkit
ii  libbonobo2-0                2.20.0-1     Bonobo CORBA interfaces library
ii  libc6                       2.6.1-1+b1   GNU C Library: Shared libraries
ii  libgconf2-4                 2.20.0-1     GNOME configuration database
syste
ii  libglade2-0                 1:2.6.2-1    library to load .glade files at
ru
ii  libglib2.0-0                2.14.1-5     The GLib library of C routines
ii  libgnome2-0                 2.20.1.1-1   The GNOME 2 library - runtime
file
ii  libgnomeui-0                2.18.1-2     The GNOME 2 libraries (User
Interf
ii  libgnomevfs2-0              1:2.20.0-3   GNOME Virtual File System
(runtime
ii  libgtk2.0-0                 2.10.13-1    The GTK+ graphical user
interface
ii  liborbit2                   1:2.14.7-0.1 libraries for ORBit2 - a CORBA
ORB
ii  libpango1.0-0               1.18.2-1     Layout and rendering of
internatio
ii  libpopt0                    1.10-3       lib for parsing cmdline
parameters
ii  libstartup-notification0    0.9-1        library for program launch
feedbac
ii  libvte9                     1:0.16.9-1   Terminal emulator widget for
GTK+
ii  libx11-6                    2:1.0.3-7    X11 client-side library
ii  libxrender1                 1:0.9.4-1    X Rendering Extension client
libra
ii  scrollkeeper                0.3.14-13    A free electronic cataloging
syste

Versions of packages gnome-terminal recommends:
ii  yelp                          2.14.3-2   Help browser for GNOME 2

-- no debconf information
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, gpastore@debian.org (Guilherme de S. Pastore):
Bug#448807; Package gnome-terminal. (full text, mbox, link).


Acknowledgement sent to Loïc Minier <lool@dooz.org>:
Extra info received and forwarded to list. Copy sent to gpastore@debian.org (Guilherme de S. Pastore). (full text, mbox, link).


Message #10 received at 448807@bugs.debian.org (full text, mbox, reply):

From: Loïc Minier <lool@dooz.org>
To: ariana strangelove <astrangelove@gmail.com>, 448807@bugs.debian.org
Subject: Re: Bug#448807: gnome-terminal uses excessive memory -- leak suspected
Date: Wed, 14 Nov 2007 09:47:58 +0100
On Wed, Oct 31, 2007, ariana strangelove wrote:
> I've had gnome-terminal in use for a while with default settings
> (scrollback 500 lines or 318kb) and it's using a HUGE amount of memory.
> I'm seeint the same from both gnome-panel and galeon so i suspect it
> could well be an issue in a library used by all three.  I've looked at
> the list for gnome-panel, and this could be related to bug #445340.
> Here is it's line from top:
> 12381 ariana    19   4  458m 368m  13m R  1.0 24.3  12:09.19
> gnome-terminal

 Could you check with 2.18.2?  If it still leaks for you, please run
 gnome-terminal in valgrind and see whether you can identify the leak.

   Thanks,
-- 
Loïc Minier




Information forwarded to debian-bugs-dist@lists.debian.org, gpastore@debian.org (Guilherme de S. Pastore):
Bug#448807; Package gnome-terminal. (full text, mbox, link).


Acknowledgement sent to Soeren Sonnenburg <bugreports@nn7.de>:
Extra info received and forwarded to list. Copy sent to gpastore@debian.org (Guilherme de S. Pastore). (full text, mbox, link).


Message #15 received at 448807@bugs.debian.org (full text, mbox, reply):

From: Soeren Sonnenburg <bugreports@nn7.de>
To: Debian Bug Tracking System <448807@bugs.debian.org>
Subject: looks like this bug is still alive and kicking
Date: Sun, 06 Apr 2008 20:28:23 +0200
Package: gnome-terminal
Version: 2.22.0-1
Followup-For: Bug #448807

at least I've seen it here again... not sure how reproducible it is
though. if I find the time I will do some more investigations.


-- System Information:
Debian Release: lenny/sid
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-rc8-sonne (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnome-terminal depends on:
ii  gnome-control-center       1:2.22.0-2    utilities to configure the GNOME d
ii  gnome-terminal-data        2.22.0-1      Data files for the GNOME terminal 
ii  libatk1.0-0                1.22.0-1      The ATK accessibility toolkit
ii  libbonobo2-0               2.22.0-1      Bonobo CORBA interfaces library
ii  libc6                      2.7-10        GNU C Library: Shared libraries
ii  libgconf2-4                2.22.0-1      GNOME configuration database syste
ii  libglade2-0                1:2.6.2-1     library to load .glade files at ru
ii  libglib2.0-0               2.16.2-1      The GLib library of C routines
ii  libgnome2-0                2.22.0-1      The GNOME 2 library - runtime file
ii  libgnomeui-0               2.22.0.1-1    The GNOME 2 libraries (User Interf
ii  libgtk2.0-0                2.12.9-2      The GTK+ graphical user interface 
ii  liborbit2                  1:2.14.12-0.1 libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0              1.20.0-1      Layout and rendering of internatio
ii  libstartup-notification0   0.9-1         library for program launch feedbac
ii  libvte9                    1:0.16.13-1   Terminal emulator widget for GTK+ 
ii  libx11-6                   2:1.0.3-7     X11 client-side library
ii  libxrender1                1:0.9.4-1     X Rendering Extension client libra
ii  scrollkeeper               0.3.14-16     A free electronic cataloging syste

Versions of packages gnome-terminal recommends:
ii  yelp                          2.22.0-1   Help browser for GNOME 2

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, gpastore@debian.org (Guilherme de S. Pastore):
Bug#448807; Package gnome-terminal. (Wed, 03 Dec 2008 13:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Enrico Zini <enrico@enricozini.org>:
Extra info received and forwarded to list. Copy sent to gpastore@debian.org (Guilherme de S. Pastore). (Wed, 03 Dec 2008 13:03:02 GMT) (full text, mbox, link).


Message #20 received at 448807@bugs.debian.org (full text, mbox, reply):

From: Enrico Zini <enrico@enricozini.org>
To: 448807@bugs.debian.org
Subject: gnome-terminal memory management
Date: Wed, 3 Dec 2008 13:02:46 +0000
[Message part 1 (text/plain, inline)]
Hello,

I experience the same memory hogging with gnome-terminal.  In fact, in
my system, long-running gnome-terminals are the applications that use up
the highest amount of memory.

I did set scrollback to large values (50000 lines, 32421Kb), but the
memory used hardly matches that.  The terminal I'm using, with 3 tabs
open, has this memory footprint at the moment:

  VIRT  RES  SHR
  666m  63m  11m

I can go in every tab and type 'reset' to clear the scrollback: it
spends maybe a minute messing through swap, it clears the scrollback,
and it leaves the memory usage unchanged.

I tried to monitor (via ps aux) the memory usage of a terminal with
several tabs open, as I was closing them one by one:

$ ps axuwww|grep 26142 (repeated)
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
enrico   26142  0.0  9.3 571008 191252 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 191420 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 191476 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 191536 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 191748 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 191940 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 192328 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 192424 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 192964 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.3 571008 193096 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.4 571008 193312 ?       Sl   Oct16  22:13 gnome-terminal
enrico   26142  0.0  9.4 571008 193544 ?       Sl   Oct16  22:13 gnome-terminal

Closing tabs, the memory usage seems to go UP instead of down.

I ran "valgrind --leak-check=full gnome-terminal", then I opened a new
tab, generated some backscroll with a "find /", closed the tab and
closed the terminal.  Please find attached the results, this is the
summary:

==24563== LEAK SUMMARY:
==24563==    definitely lost: 37,962 bytes in 66 blocks.
==24563==    indirectly lost: 110,480 bytes in 3,455 blocks.
==24563==      possibly lost: 170,000 bytes in 145 blocks.
==24563==    still reachable: 63,587,633 bytes in 91,734 blocks.
==24563==         suppressed: 0 bytes in 0 blocks.
 

Ciao,

Enrico

-- 
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enrico@debian.org>
[valgrind.txt (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, gpastore@debian.org (Guilherme de S. Pastore):
Bug#448807; Package gnome-terminal. (Fri, 23 Jan 2009 13:57:02 GMT) (full text, mbox, link).


Acknowledgement sent to 448807@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to gpastore@debian.org (Guilherme de S. Pastore). (Fri, 23 Jan 2009 13:57:02 GMT) (full text, mbox, link).


Message #25 received at 448807@bugs.debian.org (full text, mbox, reply):

From: Josselin Mouette <joss@debian.org>
To: Enrico Zini <enrico@enricozini.org>, 448807@bugs.debian.org
Cc: ariana strangelove <astrangelove@gmail.com>
Subject: Re: Bug#448807: gnome-terminal memory management
Date: Fri, 23 Jan 2009 14:53:57 +0100
[Message part 1 (text/plain, inline)]
Le mercredi 03 décembre 2008 à 13:02 +0000, Enrico Zini a écrit :
> Hello,
> 
> I experience the same memory hogging with gnome-terminal.  In fact, in
> my system, long-running gnome-terminals are the applications that use up
> the highest amount of memory.
> 
> I did set scrollback to large values (50000 lines, 32421Kb), but the
> memory used hardly matches that.  The terminal I'm using, with 3 tabs
> open, has this memory footprint at the moment:
> 
>   VIRT  RES  SHR
>   666m  63m  11m

Could you please try again with gnome-terminal 2.24 which lies in
experimental? This is a full rewrite and it seems to use less memory
than that.

Thanks,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#448807; Package gnome-terminal. (Tue, 11 Feb 2014 22:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to althaser <althaser@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>. (Tue, 11 Feb 2014 22:21:04 GMT) (full text, mbox, link).


Message #30 received at 448807@bugs.debian.org (full text, mbox, reply):

From: althaser <althaser@gmail.com>
To: 448807@bugs.debian.org, astrangelove@gmail.com, bugreports@nn7.de, enrico@enricozini.org
Cc: Loïc Minier <lool@dooz.org>, joss@debian.org
Subject: Re: Bug#448807: gnome-terminal memory management
Date: Tue, 11 Feb 2014 22:18:42 +0000
[Message part 1 (text/plain, inline)]
Hey,

Could you please try to reproduce this issue with newer version
like 3.10.1-1 ?

thanks
althaser
[Message part 2 (text/html, inline)]

Added tag(s) moreinfo. Request was from Laurent Bigonville <bigon@debian.org> to control@bugs.debian.org. (Mon, 10 Sep 2018 07:30:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Oct 26 09:53:57 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.