Bug 991178
Summary: | [abrt] tracker-0.16.1-3.fc19: g_settings_schema_get_value: Process /usr/libexec/tracker-miner-fs was killed by signal 5 (SIGTRAP) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | clive gerada <cgerada> | ||||||||||||||||
Component: | tracker | Assignee: | Igor Gnatenko <ignatenko> | ||||||||||||||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||
Priority: | unspecified | ||||||||||||||||||
Version: | 19 | CC: | cgerada, dakingun, debarshir, q2dg, stephent98 | ||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||
Target Release: | --- | ||||||||||||||||||
Hardware: | i686 | ||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||
Whiteboard: | abrt_hash:a6a83f01f507558c1363186212e1ecd573c974eb | ||||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||
Last Closed: | 2014-10-14 17:10:45 UTC | Type: | --- | ||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||
Embargoed: | |||||||||||||||||||
Attachments: |
|
Description
clive gerada
2013-08-01 19:11:49 UTC
Created attachment 781716 [details]
File: backtrace
Created attachment 781717 [details]
File: cgroup
Created attachment 781718 [details]
File: core_backtrace
Created attachment 781719 [details]
File: dso_list
Created attachment 781720 [details]
File: environ
Created attachment 781721 [details]
File: limits
Created attachment 781723 [details]
File: maps
The attached backtrace has this message: msg = 0x9834958 "Settings schema 'org.freedesktop.Tracker.Miner.Files' does not contain a key named 'sched-idle'" I'm not a tracker developer, so this is a guess, but what do you get when you verify the tracker package? $ rpm -V tracker The sched-idle key shows up with: $ grep -s sched-idle $(rpm -ql tracker) Binary file /usr/libexec/tracker-extract matches Binary file /usr/libexec/tracker-miner-fs matches /usr/share/glib-2.0/schemas/org.freedesktop.Tracker.Extract.gschema.xml: <key name="sched-idle" enum="org.freedesktop.Tracker.TrackerSchedIdle"> /usr/share/glib-2.0/schemas/org.freedesktop.Tracker.Miner.Files.gschema.xml: <key name="sched-idle" enum="org.freedesktop.Tracker.TrackerSchedIdle"> Tested with: $ rpm -q tracker tracker-0.16.1-3.fc19.x86_64 Here's something else to check: $ gsettings get org.freedesktop.Tracker.Miner.Files sched-idle 'first-index' Attempt to reproduce Bug 991178 by renaming key sched-idle to xsched-idle and recompiling schemas. reporter: libreport-2.1.6 backtrace_rating: 4 cmdline: /usr/libexec/tracker-miner-fs crash_function: g_settings_schema_get_value executable: /usr/libexec/tracker-miner-fs kernel: 3.10.4-300.fc19.x86_64 package: tracker-0.16.1-3.fc19 reason: Process /usr/libexec/tracker-miner-fs was killed by signal 5 (SIGTRAP) runlevel: N 5 uid: 1000 Procedure to reproduce: 1. Open in a text editor: $ sudo vi /usr/share/glib-2.0/schemas/org.freedesktop.Tracker.Miner.Files.gschema.xml 2. Change "sched-idle" to "xsched-idle". 3. Recompile schemas: $ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ 4. Reboot. abrt reports a problem. ps shows that /usr/libexec/tracker-store is running: $ ps -ef | grep -i track Tested with: $ qemu-kvm -m 4096 -hda f19-test-4.img -cdrom ~/xfr/fedora/F19/Fedora-19-x86_64-DVD.iso -vga std -boot menu=on Reinstalling the tracker package appears to restore the sched-idle key in the xml file and in gschemas.compiled. The bug here, IMO, is that tracker is crashing on a missing key, instead of logging an error message and continuing normally using a default value for sched-idle. $ rpm -V tracker $ gsettings get org.freedesktop.Tracker.Miner.Files sched-idle $ sudo yum reinstall tracker $ rpm -V tracker $ gsettings get org.freedesktop.Tracker.Miner.Files sched-idle Files: /usr/share/glib-2.0/schemas/org.freedesktop.Tracker.Miner.Files.gschema.xml /usr/share/glib-2.0/schemas/gschemas.compiled $ rpm -q tracker glib2 tracker-0.16.1-3.fc19.x86_64 glib2-2.36.3-2.fc19.x86_64 Tested with: $ qemu-kvm -m 4096 -hda f19-test-4.img -cdrom ~/xfr/fedora/F19/Fedora-19-x86_64-DVD.iso -vga std -boot menu=on (In reply to Steve Tyler from comment #12) ... > The bug here, IMO, is that tracker is crashing on a missing key, instead of > logging an error message and continuing normally using a default value for > sched-idle. ... The problem isn't with tracker, it is with glib2. The glib2 function g_settings_schema_get_value() calls g_error() when a key cannot be found. The glib2 documentation says: "Error messages are always fatal, resulting in a call to abort() to terminate the application. This function will result in a core dump; don't use it for errors you expect. Using this function indicates a bug in your program, i.e. an assertion failure." https://developer.gnome.org/glib/2.36/glib-Message-Logging.html#g-error Missing keys may be unexpected, but they should not cause the program to dump core and ABRT to report a bug. Missing keys are a configuration bug -- they should be reported in a log file. The appropriate functions are g_warning() and g_critical(): https://developer.gnome.org/glib/2.36/glib-Message-Logging.html#g-warning https://developer.gnome.org/glib/2.36/glib-Message-Logging.html#g-critical Source from glib2-debuginfo-2.36.3-2.fc19.x86_64.rpm: $ less -N usr/src/debug/glib-2.36.3/gio/gsettingsschema.c ... 630 GVariantIter * 631 g_settings_schema_get_value (GSettingsSchema *schema, 632 const gchar *key) 633 { 634 GVariantIter *iter; 635 GVariant *value; 636 637 value = gvdb_table_get_raw_value (schema->table, key); 638 639 if G_UNLIKELY (value == NULL || !g_variant_is_of_type (value, G_VARIANT_TYPE_TUPLE)) 640 g_error ("Settings schema '%s' does not contain a key named '%s'", schema->id, key); 641 642 iter = g_variant_iter_new (value); 643 g_variant_unref (value); 644 645 return iter; 646 } ... Snippet from attached backtrace: ... Thread 1 (Thread 0xb67a9a00 (LWP 1536)): #0 g_logv (log_domain=log_domain@entry=0xb75fd058 "GLib-GIO", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0xb761683c "Settings schema '%s' does not contain a key named '%s'", args=args@entry=0xbff593cc "\020\b\203\t\a\334\005\b\324\377|\267\371\001\067\267\070\022:\267") at gmessages.c:981 ... msg = 0x9834958 "Settings schema 'org.freedesktop.Tracker.Miner.Files' does not contain a key named 'sched-idle'" ... This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. Also seen in tracker-0.16.4-2.fc20 *** Bug 1081722 has been marked as a duplicate of this bug. *** Missing gsettings keys are an indication of a broken system. *** Bug 992918 has been marked as a duplicate of this bug. *** CLOSED |