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 418302 - gnome-terminal leaks copious amounts of memory
gnome-terminal leaks copious amounts of memory
Status: RESOLVED DUPLICATE of bug 375319
Product: gnome-terminal
Classification: Core
Component: general
2.18.x
Other All
: Normal critical
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-14 17:43 UTC by Brian J. Murrell
Modified: 2007-03-14 17:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
output from valgrind --tool=memcheck --leak-check=yes --num-callers=50 gnome-terminal (107.19 KB, text/plain)
2007-03-14 17:45 UTC, Brian J. Murrell
Details

Description Brian J. Murrell 2007-03-14 17:43:55 UTC
Please describe the problem:
On my system, Ubuntu feisty, after an update of the last day or two, gnome-terminal is leaking lots of memory.  Currently it's using 305m/175m of RSS/Real memory on my system.

Find attached a valgrind log of a very short gnome-terminal session in which I simply perform commands in a bash shell that displays lots of output.

Steps to reproduce:
1. start gnome-terminal with valgrind
2. hexdump -C <lots of files>
3. see valgrind output


Actual results:
==1393== LEAK SUMMARY:

==1393==    definitely lost: 1,312,109 bytes in 2,924 blocks.

==1393==    indirectly lost: 35,586 bytes in 1,763 blocks.

==1393==      possibly lost: 185,692 bytes in 227 blocks.

==1393==    still reachable: 2,500,839 bytes in 26,832 blocks.

==1393==         suppressed: 1,772 bytes in 52 blocks.



Expected results:
Uhm.  No leaking?  :-)

Does this happen every time?
Sure.

Other information:
Comment 1 Brian J. Murrell 2007-03-14 17:45:53 UTC
Created attachment 84588 [details]
output from valgrind --tool=memcheck --leak-check=yes --num-callers=50 gnome-terminal
Comment 2 Brian J. Murrell 2007-03-14 17:46:39 UTC
gnome-panel seems to be leaking memory too, although I don't have valgrind proof of where.  Perhaps it's the same issue.
Comment 3 Chris Wilson 2007-03-14 17:53:50 UTC
Quoting Li Yuan in bug 410461 comment 9, «Yes, there will be leak after the user's at-spi-registryd crashed. This can be fixed by the patch of #375319.»

It's a dupe of bug 410461 which was marked as a dupe of bug 375319...

I guess restarting the session should be enough to restart the daemon and for the leak to disappear.

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