GNOME Bugzilla – Bug 418302
gnome-terminal leaks copious amounts of memory
Last modified: 2007-03-14 17:53:50 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:
Created attachment 84588 [details] output from valgrind --tool=memcheck --leak-check=yes --num-callers=50 gnome-terminal
gnome-panel seems to be leaking memory too, although I don't have valgrind proof of where. Perhaps it's the same issue.
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 ***