Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560592 - =gnome-base/gvfs-1.24.2: gvfsd crashes with error:0
Summary: =gnome-base/gvfs-1.24.2: gvfsd crashes with error:0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://forums.gentoo.org/viewtopic-t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-16 01:49 UTC by Michael Orlitzky
Modified: 2015-10-24 08:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,5.22 KB, text/plain)
2015-09-16 04:19 UTC, Michael Orlitzky
Details
core_backtrace from abrt (core_backtrace,1.63 KB, text/plain)
2015-10-13 15:00 UTC, Michael Orlitzky
Details
backtrace from abrt (backtrace,18.76 KB, text/plain)
2015-10-13 15:03 UTC, Michael Orlitzky
Details
fix-crash-on-no-monitor-impls.patch (fix-crash-on-no-monitor-impls.patch,568 bytes, patch)
2015-10-21 00:14 UTC, Michael Orlitzky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2015-09-16 01:49:03 UTC
The symtom of this problem is that everything takes forever to start: Terminal, emacs, Thunar, etc. Investigating I find the following in my logs:

Sep 15 21:43:25 [kernel] traps: gvfsd[2157] trap int3 ip:38b480f01f5 sp:3c99d55cd20 error:0

Apparently the daemon crashes afterwards, because grsec prevents it from dumping core:

Sep 15 21:43:25 [kernel] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/libexec/gvfsd[gvfsd:2157] uid/euid:1000/1000 gid/egid:1000/1000, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

I found the forum thread in $URL, and tried downgrading to gvfs-1.22.4. After downgrading and killing anything with "gvfs" in the name, things quickly went back to normal: applications launch quickly, my little trash icon came back... normal.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-09-16 03:43:04 UTC
Please recompile gvfs-1.24.2 and relevant dependencies with debugging symbols and attach a gdb backtrace.

Diagnosing a crash in a large user-space program from a few dmesg lines is unfortunately impossible.

Also, please look in your journald entries for anything else related to gvfsd.

Also, assuming you have a non-grsec system around, please check if this issue happens on non-hardened.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-09-16 03:45:33 UTC
app-admin/abrt may be useful for obtaining a backtrace from a crashing daemon if you can't make gvfsd crash from the terminal.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-09-16 03:56:45 UTC
Also, "emerge --info gvfs" please.
Comment 4 Michael Orlitzky gentoo-dev 2015-09-16 04:19:34 UTC
Created attachment 412016 [details]
emerge --info

I'm in the middle of something important and can't rebreak things at the moment, but emerge --info is easy. And here's...

  $ emerge -pv1 =gnome-base/gvfs-1.24.2
  [ebuild     U #] gnome-base/gvfs-1.24.2::gentoo [1.22.4::gentoo] USE="fuse gtk 
  http udev -afp -archive -bluray -cdda -gnome-online-accounts -gphoto2 -ios 
  -libsecret -mtp -nfs% -samba -systemd {-test} -udisks -zeroconf" 0 KiB

There's nothing else in the logs. I can build a grsec-free kernel, but I don't think /that/ will help: the grsec warning is just letting me know that something (gvfsd) tried to dump core. If anything hardened is responsible, it would be the full stack smashing protection -- we compile with -fstack-protector-all.
Comment 5 Pacho Ramos gentoo-dev 2015-09-16 06:35:08 UTC
As a side note, for knowing a bit more about how to take advantage of abrt to catch this crashes, please take a look to https://wiki.gentoo.org/wiki/Project:GNOME/GNOME3-Troubleshooting#Getting_backtraces (and feel free to improve it if you thing something is missing :))
Comment 6 Michael Orlitzky gentoo-dev 2015-10-13 15:00:02 UTC
Created attachment 414504 [details]
core_backtrace from abrt
Comment 7 Michael Orlitzky gentoo-dev 2015-10-13 15:03:53 UTC
Created attachment 414506 [details]
backtrace from abrt

Sorry, I forgot all about this. I rebuilt gvfs, glib, and libffi with vanilla gcc-4.9.3 and all of the debug voodoo. I caught the crash with abrt and generated a backtrace.

Does this have what you need?
Comment 8 Pacho Ramos gentoo-dev 2015-10-17 10:27:06 UTC
nice, thanks

Can you please report the crash to upstream:
https://bugzilla.gnome.org/enter_bug.cgi?product=gvfs

Please paste the backtrace as a comment as their bugzilla is able to find similar traces in that way 

Once that is done, please let us know the link to the bug report for letting us to track the issue

Thanks a lot
Comment 9 Michael Orlitzky gentoo-dev 2015-10-20 19:55:35 UTC
Here's the upstream bug:

https://bugzilla.gnome.org/show_bug.cgi?id=756885
Comment 10 Michael Orlitzky gentoo-dev 2015-10-21 00:14:58 UTC
Created attachment 415054 [details, diff]
fix-crash-on-no-monitor-impls.patch

I haven't rebooted yet, but I killed off my running gvfs processes and the newly-spawned ones seem to work with the patch.
Comment 11 Pacho Ramos gentoo-dev 2015-10-24 08:06:03 UTC
[master 788c905] gnome-base/gvfs: Apply upstream fixes, also including a fix for crash reported in bug #560592 (by Michael Orlitzky); drop old.
 8 files changed, 260 insertions(+), 124 deletions(-)
 create mode 100644 gnome-base/gvfs/files/gvfs-1.24.2-crash-monitor.patch
 create mode 100644 gnome-base/gvfs/files/gvfs-1.24.2-g_warning.patch
 create mode 100644 gnome-base/gvfs/files/gvfs-1.24.2-guard-caches.patch
 create mode 100644 gnome-base/gvfs/files/gvfs-1.24.2-remote-proxy.patch
 create mode 100644 gnome-base/gvfs/files/gvfs-1.24.2-untrashable.patch
 delete mode 100644 gnome-base/gvfs/gvfs-1.22.3.ebuild
 rename gnome-base/gvfs/{gvfs-1.24.1.ebuild => gvfs-1.24.2-r1.ebuild} (81%)