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 611584 - gvfs won't mount samba share in Ubuntu 10.04 alpha. gvfsd-smb using 100% CPU.
gvfs won't mount samba share in Ubuntu 10.04 alpha. gvfsd-smb using 100% CPU.
Status: RESOLVED DUPLICATE of bug 606902
Product: gvfs
Classification: Core
Component: smb backend
1.5.x
Other Linux
: Normal major
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-02 12:10 UTC by darren
Modified: 2010-04-17 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Stacktrace (9.32 KB, text/plain)
2010-03-19 20:36 UTC, Thomas Poulsen
Details
Stacktrace (9.93 KB, text/plain)
2010-03-24 19:53 UTC, Thomas Poulsen
Details
Stacktrace (9.54 KB, text/plain)
2010-03-26 13:23 UTC, Tomas Bzatek
Details

Description darren 2010-03-02 12:10:54 UTC
Please see launchpad bug here: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/530605

I've been asked to report this upstream.

Trying to mount a samba share using "gvfs-mount smb://server/home". Works fine in Ubuntu 9.10. In the latest 10.04 alpha release this command just hangs about 75% of the time and gvfsd-smb starts using 100% CPU until killed. Once I kill the process I get a dialogue about the server not responding.

I have also tried using "gvfs-mount smb://server.local/home" and get the same results.

This is also reproducible using the menu Places | Connect to Server, but browsing directly to the share in Nautilus via the Network bookmark seems to work all the time.

The share I am connecting to is on a Debian server running samba and I have no problems connecting to this share in Windows or Ubuntu 9.10.

Description: Ubuntu lucid (development branch)
Release: 10.04

gvfs:
  Installed: 1.5.4-0ubuntu1
  Candidate: 1.5.4-0ubuntu1
  Version table:
 *** 1.5.4-0ubuntu1 0
        500 http://gb.archive.ubuntu.com lucid/main Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: i386
CheckboxSubmission: d6a9fb5d438b37af50efc2e4853fca15
CheckboxSystem: edda5d4f616ca792bf437989cb597002
Date: Tue Mar 2 11:11:29 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100224.1)
NonfreeKernelModules: nvidia
Package: gvfs 1.5.4-0ubuntu1
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-14.20-generic-pae
SourcePackage: gvfs
Uname: Linux 2.6.32-14-generic-pae i686

[EDIT] I forgot to mention, I can't find anything in any log file that would explain why this is happening.
Comment 1 Liran Nuna 2010-03-08 03:11:05 UTC
This also occurs for me with gvfs-sftp.

The logs do not indicate anything, and the process gvfs-sftp eats 100% CPU until killed.
Comment 2 timosha 2010-03-11 16:47:23 UTC
Ditto here
Comment 3 jim_kielman 2010-03-12 18:28:20 UTC
Affects me too, on two desktop system, it works on my Compaq Mini 110.
Comment 4 Tomas Bzatek 2010-03-16 16:34:27 UTC
Can you please attach a backtrace of the failing process?
Comment 5 Thomas Poulsen 2010-03-16 20:33:51 UTC
(In reply to comment #4)
> Can you please attach a backtrace of the failing process?

I have the same problem. Also on a Ubuntu 10.04 alpha 3.

A stacktrace of gvfsd-smb while it is using 100% CPU looks like the following:

$ pstack 5191

5191: /usr/lib/gvfs/gvfsd-smb --spawner :1.8 /org/gtk/gvfs/exec_spaw/8
(No symbols found)
0x0057d422: ???? (938d400, 7, ffffffff, 37dff4, 931add0, 37dff4)
0x0030539b: ???? (938d400, 7, ffffffff, 938d400, 7, bfb6ede4) + 60
0x002f7eff: ???? (1, 93123f0, 1, 0, 1, 804a914) + 30
0x002f861f: ???? (931b4c8, 0, 8066aab, 31fafe, 9311b40, 806a57c) + 50
0x080530ba: ???? (4, bfb6ef94, 1, 8066aab, 0, 8066aab) + 10
0x080533c6: ???? (4, bfb6ef94, bfb6efa8, b773d830, bfb6ef50, ffffffff) + 60
0x00c54bd6: ???? (8053370, 4, bfb6ef94, 8066570, 8066560, 45e0b0) + 40491078


The gvfsd-smb process was started by opening a bookmarked samba-share in Nautilus.
Comment 6 Sebastien Bacher 2010-03-16 20:45:27 UTC
you have no symbol there, could you install gvfs-dbgsym gvfs-backends-dbgsym and get a stacktrace with those?
Comment 7 Geoffrey Pursell 2010-03-17 19:14:31 UTC
I'd like to help, but I don't know of an equivalent to pstack on PowerPC or x86_64.
Comment 8 Tomas Bzatek 2010-03-18 13:33:01 UTC
(In reply to comment #7)
> I'd like to help, but I don't know of an equivalent to pstack on PowerPC or
> x86_64.
First install debugging symbols for gvfs and glib2 packages. When the process starts eating 100% CPU, fire up gdb, attach to the process (gdb <executable> <PID>) and grab a backtrace by typing "t a a bt".
Comment 9 darren 2010-03-18 15:51:06 UTC
Here's a stacktrace. The gvfs-smb process was started from a bash script that runs gvfs-mount.


Comment 10 Thomas Poulsen 2010-03-19 07:45:09 UTC
(In reply to comment #6)
> you have no symbol there, could you install gvfs-dbgsym gvfs-backends-dbgsym
> and get a stacktrace with those?

I don't have those packages in Ubuntu.
I have been stuggeling with pkg-create-dbgsym to build them, but unsuccesfull this far.
Hints are appreciated.
Comment 11 darren 2010-03-19 10:34:19 UTC
@Thomas,

Follow these instructions: https://wiki.ubuntu.com/DebuggingProgramCrash

Then: 

sudo apt-get install gvfs-dbgsym gvfs-backends-dbgsym

Run gvfs

gdb <executable> <PID>

t a a bt
Comment 12 Geoffrey Pursell 2010-03-19 14:29:39 UTC
Thanks for the debugging help, guys!

Here's s stack trace from gvfs-sftp:


Comment 13 Geoffrey Pursell 2010-03-19 14:47:37 UTC
Sort of looks to me like it's hanging while trying to talk to gnome-keyring to get a password.
Comment 14 Thomas Poulsen 2010-03-19 20:36:46 UTC
Created attachment 156584 [details]
Stacktrace

Thanks for the instructions Darren.

Here's my stacktrace. 
gvfsd-smb was started by opening a bookmarked samba-share in the "Places" menu in Ubuntu.
Comment 15 joe 2010-03-21 09:50:34 UTC
Don't know if this helps, but after upgrading to ubuntu 10.04Beta I began experiencing the same or a similar problem. I just cleared it a little while ago when I discovered that the upgrade had removed Samba. After installing Samba all is working fine again.
Comment 16 Geoffrey Pursell 2010-03-21 14:15:24 UTC
Unfortunately, that doesn't seem to be quite the problem for me.  I too, started seeing this after upgrading to 10.04 beta, but I still have Samba installed, and it happens for me with sftp, too.
Comment 17 darren 2010-03-21 17:01:17 UTC
I can't see why installing Samba would work as that is the server package rather the client one. Anyway, it doesn't work for me either and it's a Samba share I'm trying to connect to.
Comment 18 joe 2010-03-21 20:27:27 UTC
In addition to installing samba, I found the following installed on a working system and had to install them also.
gvfs-backends
gvfs-bin
gvfs-fuse
nautilus-share

I don't know they were relevant to the problem or not as I was just shooting in the dark, but I no longer have a problem or high cpu usage.
Comment 19 darren 2010-03-21 21:01:26 UTC
No joy, all those packages are already install :(
Comment 20 Stef Walter 2010-03-23 23:35:28 UTC
Thomas, thanks for the stack trace. What would really help is if you install the debug symbols for libdbus, and then again get a stack trace for all threads in that process. Thanks in advance!
Comment 21 Thomas Poulsen 2010-03-24 19:53:50 UTC
Created attachment 157016 [details]
Stacktrace

Here's a new stack trace with dbus symbols.
Hope it helps.
Thank you for looking into this issue.
Comment 22 Tomas Bzatek 2010-03-26 13:23:34 UTC
Created attachment 157161 [details]
Stacktrace

Another stracktrace from https://bugzilla.redhat.com/show_bug.cgi?id=573202#c21
User also reports high CPU usage... going to debug more.
Comment 23 Sebastien Bacher 2010-03-29 14:40:55 UTC
bug #613399 is a similar issue and has a change to try, I've uploaded an update to ubuntu lucid with the change now to give it testing...
Comment 24 Sebastien Bacher 2010-03-29 15:44:08 UTC
the change on this bug seems to not be working
Comment 25 Sebastien Bacher 2010-03-29 15:44:54 UTC
should the bug be reassigned to gnome-keyring?
Comment 26 Thomas Poulsen 2010-03-29 18:51:47 UTC
(In reply to comment #24)
> the change on this bug seems to not be working

Confirmed.
I still have the issue with this version:

$ wajig status libgnome-keyring0
Package                 Installed       Previous        Now             State
=======================-===============-===============-===============-=====
libgnome-keyring0   	2.29.4git20100322-0ubuntu3	2.29.4git20100322-0ubuntu3	2.29.4git20100322-0ubuntu3	install
Comment 27 Tomas Bzatek 2010-03-30 09:10:13 UTC
Also packaged in Fedora, no change.
Comment 28 Stef Walter 2010-04-09 18:54:38 UTC

*** This bug has been marked as a duplicate of bug 606902 ***
Comment 29 Vincent Gerris 2010-04-13 14:14:57 UTC
I still have no clue how to debug.
I have installed debugging stuff, i get problems with those debbs repos.
I can run gdb , bu i do not understand which executable name and pid i need to use to debug this.
If anyone has a link to where this with more info, please let me know.
Comment 30 Thomas Poulsen 2010-04-17 11:33:13 UTC
Works for me in Ubuntu 10.04beta after today's updates.