GNOME Bugzilla – Bug 646867
Memory leak on gvfsd "listMounts" dbus call
Last modified: 2011-04-15 11:22:57 UTC
Created attachment 185243 [details] python testcase demonstrating the bug Whenever something calls the gvfsd "listMounts" call on dbus, gvfsd leaks some memory. It's not a huge amount normally but on my system two factors conspired to make the overall impact huge: Firstly, my gvfs is clogged with http URLs I clicked on in pidgin, and secondly, gnome-system-monitor calls listMounts 17 times for every refresh of it's display. A valgrind log and python testcase are attached. The python testcase causes gvfsd to use hundreds of mb of ram within seconds by just calling listMounts on a loop. Bug can be found in 1.6.4 and 1.7.3 (ubuntu maverick and natty respectively.)
Created attachment 185244 [details] valgrind log showing the memory leak valgrind log showing the leak. it's the big one at the end - 1.5GB in 20 minutes, and this was without the testcase. log is from gvfsd 1.6.4.
original Ubuntu bug: https://bugs.launchpad.net/ubuntu/bugs/751523
above link does not work, try this one: https://bugs.launchpad.net/ubuntu/+source/gnome-system-monitor/+bug/751523
Good catch, fixed this (and a bunch of other leaks!!!) Commited as: http://git.gnome.org/browse/gvfs/commit/?id=7460f26f9243e6b1745a448b8dc05b15d12aa86e