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 643268 - gvfsd-metadata terminated with segfault
gvfsd-metadata terminated with segfault
Status: RESOLVED DUPLICATE of bug 598561
Product: gvfs
Classification: Core
Component: metadata
1.6.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-25 05:37 UTC by Paul Wise
Modified: 2011-05-25 08:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Checks return value of meta_tree_init() (1.27 KB, patch)
2011-04-16 01:34 UTC, Matthew W. S. Bell
none Details | Review

Description Paul Wise 2011-02-25 05:37:13 UTC
I didn't notice but gvfsd-metadata crashed twice and generated two core dumps:

$ gdb --core /var/cache/corefiles/core-29437-1000-1000-11-1298295051-chianamo-gvfsd-metadata /usr/lib/gvfs/gvfsd-metadata 
GNU gdb (GDB) 7.2-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/gvfs/gvfsd-metadata...Reading symbols from /usr/lib/debug/usr/lib/gvfs/gvfsd-metadata...done.
done.
[New Thread 29437]

warning: Can't read pathname for load map: Input/output error.

warning: .dynamic section for "/lib/libudev.so.0" is not at the expected address (wrong library or version mismatch?)

warning: .dynamic section for "/lib/libpcre.so.3" is not at the expected address (wrong library or version mismatch?)
Reading symbols from /usr/lib/libgobject-2.0.so.0...Reading symbols from /usr/lib/debug/usr/lib/libgobject-2.0.so.0.2400.2...done.
done.
Loaded symbols for /usr/lib/libgobject-2.0.so.0
Reading symbols from /lib/libglib-2.0.so.0...Reading symbols from /usr/lib/debug/lib/libglib-2.0.so.0.2400.2...done.
done.
Loaded symbols for /lib/libglib-2.0.so.0
Reading symbols from /lib/libudev.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libudev.so.0
Reading symbols from /lib/libdbus-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libdbus-1.so.3
Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/libpthread-2.11.2.so...done.
done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/gvfs/libgvfscommon.so...Reading symbols from /usr/lib/debug/usr/lib/gvfs/libgvfscommon.so...done.
done.
Loaded symbols for /usr/lib/gvfs/libgvfscommon.so
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.11.2.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libgthread-2.0.so.0...Reading symbols from /usr/lib/debug/usr/lib/libgthread-2.0.so.0.2400.2...done.
done.
Loaded symbols for /usr/lib/libgthread-2.0.so.0
Reading symbols from /lib/librt.so.1...Reading symbols from /usr/lib/debug/lib/librt-2.11.2.so...done.
done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.11.2.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib/libgio-2.0.so.0...Reading symbols from /usr/lib/debug/usr/lib/libgio-2.0.so.0.2400.2...done.
done.
Loaded symbols for /usr/lib/libgio-2.0.so.0
Reading symbols from /usr/lib/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /usr/lib/libgmodule-2.0.so.0...Reading symbols from /usr/lib/debug/usr/lib/libgmodule-2.0.so.0.2400.2...done.
done.
Loaded symbols for /usr/lib/libgmodule-2.0.so.0
Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.11.2.so...done.
done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libresolv.so.2...Reading symbols from /usr/lib/debug/lib/libresolv-2.11.2.so...done.
done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/libz.so.1...Reading symbols from /usr/lib/debug/usr/lib/libz.so.1.2.3.4...done.
done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libselinux.so.1
Core was generated by `/usr/lib/gvfs/gvfsd-metadata'.
Program terminated with signal 11, Segmentation fault.

Thread 1 (Thread 29437)

  • #0 verify_metadata_block
    at metatree.c line 223
  • #1 copy_tree_to_builder
    at metatree.c line 2196
  • #2 meta_tree_flush_locked
    at metatree.c line 2357
  • #3 meta_tree_flush
    at metatree.c line 2378
  • #4 writeout_timeout
    at meta-daemon.c line 61
  • #5 g_timeout_dispatch
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 3396
  • #6 g_main_dispatch
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 1960
  • #7 IA__g_main_context_dispatch
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 2513
  • #8 g_main_context_iterate
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 2591
  • #9 IA__g_main_loop_run
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 2799
  • #10 main
    at meta-daemon.c line 783
  • #0 verify_metadata_block
    at metatree.c line 223

Thread 1 (Thread 6724)

  • #0 verify_metadata_block
    at metatree.c line 223
  • #1 copy_tree_to_builder
    at metatree.c line 2196
  • #2 meta_tree_flush_locked
    at metatree.c line 2357
  • #3 meta_tree_flush
    at metatree.c line 2378
  • #4 writeout_timeout
    at meta-daemon.c line 61
  • #5 g_timeout_dispatch
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 3396
  • #6 g_main_dispatch
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 1960
  • #7 IA__g_main_context_dispatch
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 2513
  • #8 g_main_context_iterate
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 2591
  • #9 IA__g_main_loop_run
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c line 2799
  • #10 main
    at meta-daemon.c line 783

Comment 1 Matthew W. S. Bell 2011-04-15 20:58:19 UTC
gvfsd-metadata is terminating with a SIGSEGV several times per day for me, with similar looking backtraces. The issue seems to be that tree->root is NULL.
Comment 2 Matthew W. S. Bell 2011-04-16 01:34:08 UTC
Created attachment 186060 [details] [review]
Checks return value of meta_tree_init()
Comment 3 Matthew W. S. Bell 2011-04-16 01:35:12 UTC
This patch seems to help.
Comment 4 Martin Pitt 2011-05-25 08:51:09 UTC

*** This bug has been marked as a duplicate of bug 598561 ***