You are not logged in.

#1 2012-11-06 14:56:13

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Gnome 3.6, fuse and gvfs

Hi all, i upgraded to Gnome 3.6 and noticed i now have some problems accessing network resources (samba): today's gvfs update completely broken my ability to browse remote shares deeper than the first level, i'm able to look at the root of the shares however, so this completely borked my workflow since i'm using geany/gedit on a samba shares.
Also, i'm unable to find where the real .gvfs folder is, for example when mounting remote shares via Nautilus: i know that was moved to /run/user/1000/gvfs but now there is a 0-length file with odd permissions, such as:

[manuel@amsterdam:/run/user/1000]
$ ls -la
d????????? ? ?      ?       ?            ? gvfs
drwx------ 2 manuel users  40 Nov  6 15:40 gvfs-burn
drwx------ 2 manuel users 120 Nov  6 15:39 keyring-UyaOnu

Also whenever i try to open a file on a remote server via geany or gedit their processes hangs and this call trace shows up in the journalctl:

Nov 06 15:21:38 amsterdam kernel: INFO: task geany:1491 blocked for more than 120 seconds.
Nov 06 15:21:38 amsterdam kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Nov 06 15:21:38 amsterdam kernel: geany           D 0000000000000075     0  1491      1 0x00000004
Nov 06 15:21:38 amsterdam kernel:  ffff8800bb945b18 0000000000000082 ffff8800b4674080 ffff8800bb945fd8
Nov 06 15:21:38 amsterdam kernel:  ffff8800bb945fd8 ffff8800bb945fd8 ffff880135a74890 ffff8800b4674080
Nov 06 15:21:38 amsterdam kernel:  0000000000013e00 0000000000000001 ffff88012f806858 ffff880115123d00
Nov 06 15:21:38 amsterdam kernel: Call Trace:
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8108bbe2>] ? default_wake_function+0x12/0x20
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff81082995>] ? __wake_up_common+0x55/0x90
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8106871f>] ? recalc_sigpending+0x1f/0x60
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff810696c7>] ? __set_task_blocked+0x37/0x80
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff81491b79>] schedule+0x29/0x70
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01ab6f5>] fuse_request_send+0x135/0x2b0 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8107a4d0>] ? abort_exclusive_wait+0xb0/0xb0
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01b33d5>] fuse_do_open+0xd5/0x170 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01b35d6>] fuse_open_common+0x66/0x80 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01b3600>] fuse_open+0x10/0x20 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8117d883>] do_dentry_open+0x203/0x290
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01b35f0>] ? fuse_open_common+0x80/0x80 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8117dc45>] finish_open+0x35/0x50
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8118e886>] do_last+0x316/0xea0
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8118ba6d>] ? link_path_walk+0x23d/0x950
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8118ce59>] ? path_lookupat+0x169/0x7f0
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8118f4ca>] path_openat+0xba/0x520
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8118ae63>] ? putname+0x33/0x50
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8118fbf8>] ? user_path_at_empty+0x68/0xa0
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01b0bac>] ? fuse_update_attributes+0x3c/0x90 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8118fc91>] do_filp_open+0x41/0xa0
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8119c766>] ? alloc_fd+0xd6/0x120
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8117e9d6>] do_sys_open+0xf6/0x1e0
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8117eae1>] sys_open+0x21/0x30
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff81499f2d>] system_call_fastpath+0x1a/0x1f

ANY idea? Is it only me?

<edit>
Machine is up-to-date with latest packages
</edit>

Last edited by bmanuel (2012-11-06 14:56:41)

Offline

#2 2012-11-12 15:42:52

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Gnome 3.6, fuse and gvfs

Nov 06 15:21:38 amsterdam kernel:  [<ffffffff81491b79>] schedule+0x29/0x70
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01ab6f5>] fuse_request_send+0x135/0x2b0 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffff8107a4d0>] ? abort_exclusive_wait+0xb0/0xb0
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01b33d5>] fuse_do_open+0xd5/0x170 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01b35d6>] fuse_open_common+0x66/0x80 [fuse]
Nov 06 15:21:38 amsterdam kernel:  [<ffffffffa01b3600>] fuse_open+0x10/0x20 [fuse]

This kernel stack says that your process tries to send a message to fuse daemon, but fuse daemon does not respond. I see several reasons why it happens
1) Remote machine does not respond.

2) Try to upgrade fuse to 2.9.2 using ABS. 2.9.1 contains a known issue https://bbs.archlinux.org/viewtopic.php?id=146157

3) a deadlock in gvfsd-fuse program (the fuse daemon). Check its stack trace. Find its pid first

$ PID=$(pidof gvfsd-fuse); echo $PID

Then show its kernel stack trace

$ cat /proc/$PID/stack

and then show its user stack trace. I usually use gdb, but maybe there are easier ways to achieve the same

gdb /usr/lib/gvfs/gvfsd-fuse $PID

It will load gdb where you can check the user-space program, e.g. show all stacks, switch to interesting one, show its stacktrace:

info threads
thread 6
backtrace

Just find a stack that looks suspicious (e.g. waits for response from the remove machine).


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2012-11-12 15:45:33

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Gnome 3.6, fuse and gvfs

It also makes sense to check if anyone else on this forum has similar issues, e.g. this post looks somewhat similar https://bbs.archlinux.org/viewtopic.php?id=148694


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#4 2012-11-15 14:10:14

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Gnome 3.6, fuse and gvfs

Thank you anatolik, much appreciated!
Yes i should take a look at that backtrace but since i'm on a much important deadline i just setup some etc/fstab+mount.cifs so that i can continue working on that project: i didn't think about AUR's 2.9.2, that is something i'm going to try, thanks for the tip!
I don't think i could go with the gdb route since the last times it happened the whole machine was basically frozen/sluggish as hell, i tried to launch top but that never came up so i couldn't see nothing there.
I read the 2.9.1 problem thread dates back to July but i never experienced it before now, anyway thank you for your help!

Offline

#5 2012-11-15 14:34:08

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Gnome 3.6, fuse and gvfs

bmanuel wrote:

I don't think i could go with the gdb route since the last times it happened the whole machine was basically frozen/sluggish as hell, i tried to launch top but that never came up so i couldn't see nothing there.

gvfs is a Gnome filesystem and it should affect only Gnome functionality. So for the debug you can use Ctrl+Alt+2 and login to terminal directly. You could also try SSH from a remote machine.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#6 2012-11-15 14:51:54

bmanuel
Member
Registered: 2011-10-06
Posts: 106

Re: Gnome 3.6, fuse and gvfs

Yeah i didn't tried SSH since there wasn't a machine available, but the VT was just pitch black as well o_O

Offline

#7 2012-11-15 15:12:23

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Gnome 3.6, fuse and gvfs

bmanuel wrote:

the VT was just pitch black as well o_O

Hm... weird. It sounds more like a deadlock in kernel (maybe in VFS, maybe in fuse), but not a fuse userspace problem. In this case SysRQ might help (this is a logging mechanism activated by non-masked interruption and works even in case of serious kernel deadlocks). Check this useful document how to use SysRQ http://kernel.org/doc/Documentation/sysrq.txt (most likely you need to press ALT-SysRq-<command key>). Following sysrq commands should be useful 'w' - print all uninterruptable tasks, 'l' - print all active cpu stacks, 't' - print all current tasks. Most likely 'w' will show something suspicious.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

Board footer

Powered by FluxBB