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 778752 - often but not always gvfsd-smb-browse gets stuck on login
often but not always gvfsd-smb-browse gets stuck on login
Status: RESOLVED NOTGNOME
Product: gvfs
Classification: Core
Component: smb backend
1.31.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2017-02-16 09:50 UTC by Hussam Al-Tayeb
Modified: 2017-02-21 21:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hussam Al-Tayeb 2017-02-16 09:50:35 UTC
Sometimes on first login (for example now after I rebooted for a kernel update), after I open nautilus and go to other locations, I see this.
https://i.imgur.com/GDWy10j.png
it gets stuck permanently like that.
Then after I kill gvfsd-smb-browse, the 'windows network' icon appears and the spinner stops. there are no windows networks I can browse but it would be nice if it didn't get stuck.


(gdb) thread apply all bt

Thread 5 (Thread 0x7f2ea5037700 (LWP 1054))

  • #0 sigsuspend
  • #1 tdb_runtime_check_for_robust_mutexes
  • #2 tdb_wrap_open
  • #3 0x00007f2eb4e49b21 in
  • #4 gencache_parse
  • #5 gencache_get_data_blob
  • #6 gencache_get
  • #7 sitename_fetch
  • #8 resolve_name
  • #9 0x00007f2eb762a5e2 in
  • #10 do_mount
    at gvfsbackendsmbbrowse.c line 913
  • #11 g_vfs_job_run
    at gvfsjob.c line 197
  • #12 g_thread_pool_thread_proxy
    at gthreadpool.c line 307
  • #13 g_thread_proxy
    at gthread.c line 784
  • #14 start_thread
  • #15 clone

Comment 1 Ondrej Holy 2017-02-17 07:40:18 UTC
Thanks for your report.

This is probably the following race condition in samba:
https://lists.samba.org/archive/samba-technical/2016-March/113109.html

I haven't read the whole thread, but some patches are attached there, so it might be already fixed. Closing as NOTGNOME, but please let us know if you find anything relevant...
Comment 2 Hussam Al-Tayeb 2017-02-17 10:10:40 UTC
The patches do not apply to common/mutex.c in tdb 1.3.12 
According to https://lists.samba.org/archive/samba-technical/2016-March/113269.html, the fix was included in a new release. The latest release according to https://www.samba.org/ftp/tdb/ is 1.3.12 so I will file a bug report today at samba's bug tracker and post the bug id here in case you are interested.
Thank you very much for your help.
Comment 3 Ondrej Holy 2017-02-17 10:41:55 UTC
Thanks!
Comment 4 Hussam Al-Tayeb 2017-02-21 21:21:42 UTC
I forgot to post the link here https://bugzilla.samba.org/show_bug.cgi?id=12593 
Sorry.