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 519867 - gvfsd-smb leaks memory size of files copied
gvfsd-smb leaks memory size of files copied
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: smb backend
git master
Other Linux
: Normal major
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-03-02 10:18 UTC by Travis Watkins
Modified: 2008-05-01 20:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Travis Watkins 2008-03-02 10:18:20 UTC
"After copying some files from a smb:// share to my local disk, I noticed that the gvfsd-smb process does use 1,1GB memory, the same amount as the size of the copied files. It seems that all the copied files are in memory now and *stay* there. The copy command has successfully finished."

https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/196991
Comment 1 David Zeuthen (not reading bugmail) 2008-03-02 16:37:32 UTC
I was spending some time yesterday searching for leaks in my gphoto2 backend (seeing the same issue) but didn't find anything. I think it suffers from the same issue. Also, upstream bug report indicates it's a problem in the vfs backend core.
Comment 2 Samuel Lidén Borell 2008-03-02 21:43:56 UTC
I have the same problem with SSH. And it seems that it occurs when using WebDAV too:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/197768
Comment 3 Christian Kellner 2008-03-03 13:22:37 UTC
It was a bug in GVfsJob. We didn't call g_object_unref after a call g_object_ref so we would leak *all* job objects. Fixed with the following svn commit

2008-03-03  Christian Kellner  <gicmo@gnome.org>

	* daemon/gvfsjob.c: (g_vfs_job_try): Make sure the g_object_unref
	call is _before_ the return call.
	Fixes bug #519867
Comment 4 David Zeuthen (not reading bugmail) 2008-03-03 19:39:52 UTC
This stops the leakage in the gphoto2 backend too. Thanks!
Comment 5 Mika Fischer 2008-05-01 20:39:36 UTC
I still have this problem with gvfsd-http on Ubuntu hardy. See http://launchpadlibrarian.net/14071062/Gvfsd-leak.png