Bug#909375: Bug #909375: Re: nautilus: Trace/breakpoint trap

Bernhard Übelacker bernhardu at mailbox.org
Sun Sep 23 13:33:36 BST 2018


Hello Christoph Anton Mitterer,
I just tried to reproduce this issue.

It looks like this issue got introduced in upstream commit [1].
There an error message got added that leads to an immediate process exit.
This error is shown when file /usr/share/tracker/domain-ontologies/default.rule
is not found that belongs to package "tracker".

Therefore a workaround would possibly be to install the package "tracker".

Attached is a patch that converts the call to "g_error" to the
error handling style used some lines above with "g_error_new".

With just libtracker-sparql-2.0-0 built using that patch,
nautilus just writes some warning but opens and is usable,
without having package "tracker" installed.

Could not find any entry in upstream issue tracker [2].
But I think in the end this should be forwarded and fixed upstream.

Kind regards,
Bernhard




[1] https://gitlab.gnome.org/GNOME/tracker/commit/ee07c990a6c3835ee90a7b5c5c1c630a8b228e4c
[2] https://gitlab.gnome.org/GNOME/tracker/issues

333                             if (path_for_tests == NULL) {
334                                     g_error ("Unable to find default domain ontology rule %s", path);
335                             }


(gdb) bt
#0  0x00007f6225d969f5 in _g_log_abort () at ../../../../glib/gmessages.c:554
#1  0x00007f6225d97a9d in g_log_default_handler (log_domain=log_domain at entry=0x7f622242b47e "Tracker", log_level=log_level at entry=6, message=message at entry=0x55a46f7df6c0 "Unable to find default domain ontology rule /usr/share/tracker/domain-ontologies/default.rule", unused_data=unused_data at entry=0x0) at ../../../../glib/gmessages.c:3111
#2  0x00007f6225d97cef in g_logv (log_domain=0x7f622242b47e "Tracker", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args at entry=0x7ffd58cf4a80) at ../../../../glib/gmessages.c:1350
#3  0x00007f6225d97edf in g_log (log_domain=log_domain at entry=0x7f622242b47e "Tracker", log_level=log_level at entry=G_LOG_LEVEL_ERROR, format=format at entry=0x7f622242bc58 "Unable to find default domain ontology rule %s") at ../../../../glib/gmessages.c:1413
#4  0x00007f6222427041 in tracker_domain_ontology_initable_init (initable=<optimized out>, cancellable=<optimized out>, error=0x7ffd58cf4ce8) at tracker-domain-ontology.c:334
#5  0x00007f62251fc6e7 in g_initable_new_valist (object_type=<optimized out>, first_property_name=0x7f622242b9f3 "name", var_args=0x7ffd58cf4bf0, cancellable=0x0, error=0x7ffd58cf4ce8) at ../../../../gio/ginitable.c:248
#6  0x00007f62251fc799 in g_initable_new (object_type=<optimized out>, cancellable=cancellable at entry=0x0, error=error at entry=0x7ffd58cf4ce8, first_property_name=first_property_name at entry=0x7f622242b9f3 "name") at ../../../../gio/ginitable.c:162
#7  0x00007f6222427333 in tracker_domain_ontology_new (domain_name=<optimized out>, cancellable=cancellable at entry=0x0, error=error at entry=0x7ffd58cf4ce8) at tracker-domain-ontology.c:431
#8  0x00007f6224900c0b in tracker_sparql_backend_construct (object_type=<optimized out>, error=error at entry=0x7ffd58cf4d40) at tracker-backend.vala:35
#9  0x00007f6224901395 in tracker_sparql_backend_new (error=error at entry=0x7ffd58cf4d40) at tracker-backend.vala:33
#10 0x00007f622490142b in tracker_sparql_backend_get (cancellable=cancellable at entry=0x55a46f7d29a0, error=error at entry=0x7ffd58cf4d80) at tracker-backend.vala:229
#11 0x00007f62249016fe in tracker_sparql_backend_get_internal (cancellable=cancellable at entry=0x55a46f7d29a0, error=error at entry=0x7ffd58cf4dc0) at tracker-backend.vala:247
#12 0x00007f6224901cfe in tracker_sparql_connection_get (cancellable=cancellable at entry=0x55a46f7d29a0, error=error at entry=0x7ffd58cf4df0) at tracker-backend.vala:333
#13 0x000055a46e896870 in start_query_or_update (callback=callback at entry=0x55a46e896fd0 <on_get_starred_files_query_callback>, user_data=user_data at entry=0x55a46f7d39c0, is_query=is_query at entry=1, cancellable=cancellable at entry=0x55a46f7d29a0, query=<optimized out>) at ../src/nautilus-tag-manager.c:146
#14 0x000055a46e897387 in nautilus_tag_manager_query_starred_files (cancellable=0x55a46f7d29a0, self=0x55a46f7d39c0) at ../src/nautilus-tag-manager.c:431
#15 nautilus_tag_manager_set_cancellable (self=0x55a46f7d39c0, cancellable=0x55a46f7d29a0) at ../src/nautilus-tag-manager.c:872
#16 0x000055a46e8419ba in nautilus_application_init (self=0x55a46f7dc140) at ../src/nautilus-application.c:1124
#17 0x00007f6225178677 in g_type_create_instance (type=<optimized out>) at ../../../../gobject/gtype.c:1864
#18 0x00007f622515b398 in g_object_new_internal (class=class at entry=0x55a46f7daf70, params=params at entry=0x7ffd58cf5150, n_params=n_params at entry=3) at ../../../../gobject/gobject.c:1805
#19 0x00007f622515d224 in g_object_new_valist (object_type=<optimized out>, first_property_name=first_property_name at entry=0x55a46e90c2a8 "application-id", var_args=var_args at entry=0x7ffd58cf52a0) at ../../../../gobject/gobject.c:2128
#20 0x00007f622515d559 in g_object_new (object_type=<optimized out>, first_property_name=first_property_name at entry=0x55a46e90c2a8 "application-id") at ../../../../gobject/gobject.c:1648
#21 0x000055a46e843d2c in nautilus_application_new () at ../src/nautilus-application.c:1605
#22 0x000055a46e84176c in main (argc=1, argv=0x7ffd58cf54a8) at ../src/nautilus-main.c:76
-------------- next part --------------

# buster -> unstable

apt update
apt dist-upgrade
reboot

apt install mc systemd-coredump xserver-xorg gnome-session gnome-terminal gdb debian-goodies lz4 dpkg-dev devscripts
apt build-dep tracker

systemctl start gdm3

# login



mkdir nautilus/orig -p
cd    nautilus/orig
apt source nautilus
cd ../..

mkdir tracker/orig -p
cd    tracker/orig
apt source tracker
cd ../..



benutzer at debian:~$ export DISPLAY=:0
benutzer at debian:~$ nautilus

(nautilus:19211): Tracker-ERROR **: 13:32:17.155: Unable to find default domain ontology rule /usr/share/tracker/domain-ontologies/default.rule
Trace/Breakpoint ausgelöst (Speicherabzug geschrieben)




[So Sep 23 13:32:16 2018] traps: nautilus[19211] trap int3 ip:7f6225d969f5 sp:7ffd58cf4930 error:0




root at debian:~# coredumpctl gdb 19211
           PID: 19211 (nautilus)
           UID: 1000 (benutzer)
           GID: 1000 (benutzer)
        Signal: 5 (TRAP)
     Timestamp: Sun 2018-09-23 13:32:17 CEST (1min 27s ago)
  Command Line: nautilus
    Executable: /usr/bin/nautilus
 Control Group: /user.slice/user-1000.slice/session-6.scope
          Unit: session-6.scope
         Slice: user-1000.slice
       Session: 6
     Owner UID: 1000 (benutzer)
       Boot ID: 4ca9002cf0ee4aa1ac48875ec06bf030
    Machine ID: 32f43b50ac8c4b21941bc0b02f8e7811
      Hostname: debian
       Storage: /var/lib/systemd/coredump/core.nautilus.1000.4ca9002cf0ee4aa1ac48875ec06bf030.19211.1537702337000000.lz4
       Message: Process 19211 (nautilus) of user 1000 dumped core.
                
                Stack trace of thread 19211:
                #0  0x00007f6225d969f5 n/a (libglib-2.0.so.0)
                #1  0x00007f6225d97a9d g_log_default_handler (libglib-2.0.so.0)
                #2  0x00007f6225d97cef g_logv (libglib-2.0.so.0)
                #3  0x00007f6225d97edf g_log (libglib-2.0.so.0)
                #4  0x00007f6222427041 n/a (libtracker-common.so.0)
                #5  0x00007f62251fc6e7 g_initable_new_valist (libgio-2.0.so.0)
                #6  0x00007f62251fc799 g_initable_new (libgio-2.0.so.0)
                #7  0x00007f6224900c0b n/a (libtracker-sparql-2.0.so.0)
                #8  0x00007f622490142b n/a (libtracker-sparql-2.0.so.0)
                #9  0x00007f62249016fe n/a (libtracker-sparql-2.0.so.0)
                #10 0x00007f6224901cfe tracker_sparql_connection_get (libtracker-sparql-2.0.so.0)
                #11 0x000055a46e896870 n/a (nautilus)
                #12 0x000055a46e897387 nautilus_tag_manager_set_cancellable (nautilus)
                #13 0x000055a46e8419ba n/a (nautilus)
                #14 0x00007f6225178677 g_type_create_instance (libgobject-2.0.so.0)
                #15 0x00007f622515b398 n/a (libgobject-2.0.so.0)
                #16 0x00007f622515d224 g_object_new_valist (libgobject-2.0.so.0)
                #17 0x00007f622515d559 g_object_new (libgobject-2.0.so.0)
                #18 0x000055a46e843d2c nautilus_application_new (nautilus)
                #19 0x000055a46e84176c main (nautilus)
                #20 0x00007f6224736b17 __libc_start_main (libc.so.6)
                #21 0x000055a46e84180a _start (nautilus)
                
                Stack trace of thread 19212:
                #0  0x00007f6224806cf7 __munmap (libc.so.6)
                #1  0x00007f622479326b n/a (libc.so.6)
                #2  0x00007f6224793974 n/a (libc.so.6)
                #3  0x00007f62247967fd n/a (libc.so.6)
                #4  0x00007f62247976db __libc_malloc (libc.so.6)
                #5  0x00007f6225dd6bb3 n/a (libglib-2.0.so.0)
                #6  0x00007f6225dd7184 g_private_set (libglib-2.0.so.0)
                #7  0x00007f6225db90f8 n/a (libglib-2.0.so.0)
                #8  0x00007f62248d8f2a start_thread (libpthread.so.0)
                #9  0x00007f622480bedf __clone (libc.so.6)
                
                Stack trace of thread 19213:
                #0  0x00007f6224806cf7 __munmap (libc.so.6)
                #1  0x00007f6224793227 n/a (libc.so.6)
                #2  0x00007f6224793974 n/a (libc.so.6)
                #3  0x00007f62247967fd n/a (libc.so.6)
                #4  0x00007f62247976db __libc_malloc (libc.so.6)
                #5  0x00007f6225dd6bb3 n/a (libglib-2.0.so.0)
                #6  0x00007f6225dd7184 g_private_set (libglib-2.0.so.0)
                #7  0x00007f6225db90f8 n/a (libglib-2.0.so.0)
                #8  0x00007f62248d8f2a start_thread (libpthread.so.0)
                #9  0x00007f622480bedf __clone (libc.so.6)
                
                Stack trace of thread 19214:
                #0  0x00007f6224806cf7 __munmap (libc.so.6)
                #1  0x00007f622479326b n/a (libc.so.6)
                #2  0x00007f6224793974 n/a (libc.so.6)
                #3  0x00007f62247967fd n/a (libc.so.6)
                #4  0x00007f62247976db __libc_malloc (libc.so.6)
                #5  0x00007f6225dd6bb3 n/a (libglib-2.0.so.0)
                #6  0x00007f6225dd7184 g_private_set (libglib-2.0.so.0)
                #7  0x00007f6225db90f8 n/a (libglib-2.0.so.0)
                #8  0x00007f62248d8f2a start_thread (libpthread.so.0)
                #9  0x00007f622480bedf __clone (libc.so.6)

GNU gdb (Debian 8.1-4+b1) 8.1
Copyright (C) 2018 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/nautilus...(no debugging symbols found)...done.
[New LWP 19211]
[New LWP 19212]
[New LWP 19213]
[New LWP 19214]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `nautilus'.
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
#0  0x00007f6225d969f5 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
[Current thread is 1 (Thread 0x7f621cd5cac0 (LWP 19211))]
(gdb) bt
#0  0x00007f6225d969f5 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f6225d97a9d in g_log_default_handler () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6225d97cef in g_logv () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6225d97edf in g_log () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f6222427041 in ?? () from /usr/lib/x86_64-linux-gnu/tracker-2.0/libtracker-common.so.0
#5  0x00007f62251fc6e7 in g_initable_new_valist () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007f62251fc799 in g_initable_new () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#7  0x00007f6224900c0b in ?? () from /usr/lib/x86_64-linux-gnu/libtracker-sparql-2.0.so.0
#8  0x00007f622490142b in ?? () from /usr/lib/x86_64-linux-gnu/libtracker-sparql-2.0.so.0
#9  0x00007f62249016fe in ?? () from /usr/lib/x86_64-linux-gnu/libtracker-sparql-2.0.so.0
#10 0x00007f6224901cfe in tracker_sparql_connection_get () from /usr/lib/x86_64-linux-gnu/libtracker-sparql-2.0.so.0
#11 0x000055a46e896870 in ?? ()
#12 0x000055a46e897387 in nautilus_tag_manager_set_cancellable ()
#13 0x000055a46e8419ba in ?? ()
#14 0x00007f6225178677 in g_type_create_instance () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007f622515b398 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007f622515d224 in g_object_new_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007f622515d559 in g_object_new () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x000055a46e843d2c in nautilus_application_new ()
#19 0x000055a46e84176c in main ()









cat /var/lib/systemd/coredump/core.nautilus.1000.4ca9002cf0ee4aa1ac48875ec06bf030.19211.1537702337000000.lz4 | unlz4 > /tmp/core
find-dbgsym-packages /tmp/core

root at debian:~# find-dbgsym-packages /tmp/core 
libacl1-dbgsym libarchive13-dbgsym libatk-bridge2.0-0-dbgsym libatk1.0-0-dbgsym libatspi2.0-0-dbgsym libattr1-dbgsym libblkid1-dbgsym libbsd0-dbgsym libbz2-1.0-dbgsym libcairo-gobject2-dbgsym libcairo2-dbgsym libcom-err2-dbgsym libdatrie1-dbgsym libdbus-1-3-dbgsym libepoxy0-dbgsym libexpat1-dbgsym libffi6-dbg libfontconfig1-dbgsym libfreetype6-dbgsym libfribidi0-dbgsym libgcc1-dbg libgcrypt20-dbgsym libgdk-pixbuf2.0-0-dbgsym libglib2.0-0-dbgsym libgnome-autoar-0-0-dbgsym libgpg-error0-dbgsym libgraphite2-3-dbgsym libgtk-3-0-dbgsym libharfbuzz0b-dbgsym libicu60-dbgsym libidn2-0-dbgsym libjson-glib-1.0-0-dbgsym libkeyutils1-dbgsym libkrb5-dbg liblz4-1-dbgsym liblzma5-dbgsym liblzo2-2-dbgsym libmount1-dbgsym libnautilus-extension1a-dbgsym libnettle6-dbgsym libpango-1.0-0-dbgsym libpangocairo-1.0-0-dbgsym libpangoft2-1.0-0-dbgsym libpcre3-dbg libpixman-1-0-dbgsym libpng16-16-dbgsym libpsl5-dbgsym libseccomp2-dbgsym libselinux1-dbgsym libsoup2.4-1-dbgsym libsqlite3-0-dbgsym libstdc++6-8-dbg libstemmer0d-dbg libsystemd0-dbgsym libthai0-dbgsym libtracker-sparql-2.0-0-dbgsym libunistring2-dbgsym libuuid1-dbgsym libwayland-client0-dbgsym libwayland-cursor0-dbgsym libwayland-egl1-dbgsym libx11-6-dbgsym libxau6-dbg libxcb-render0-dbgsym libxcb-shm0-dbgsym libxcb1-dbgsym libxcomposite1-dbg libxcursor1-dbgsym libxdamage1-dbgsym libxdmcp6-dbg libxext6-dbg libxfixes3-dbgsym libxi6-dbgsym libxinerama1-dbgsym libxkbcommon0-dbgsym libxml2-dbg libxrandr2-dbgsym libxrender1-dbgsym nautilus-dbgsym zlib1g-dbg

apt install $(find-dbgsym-packages /tmp/core)



set height 0
set width 0
set pagination off
directory /home/benutzer/nautilus/orig/nautilus-3.30.0/src
directory /home/benutzer/tracker/orig/tracker-2.1.4/src/libtracker-common


(gdb) bt
#0  0x00007f6225d969f5 in _g_log_abort () at ../../../../glib/gmessages.c:554
#1  0x00007f6225d97a9d in g_log_default_handler (log_domain=log_domain at entry=0x7f622242b47e "Tracker", log_level=log_level at entry=6, message=message at entry=0x55a46f7df6c0 "Unable to find default domain ontology rule /usr/share/tracker/domain-ontologies/default.rule", unused_data=unused_data at entry=0x0) at ../../../../glib/gmessages.c:3111
#2  0x00007f6225d97cef in g_logv (log_domain=0x7f622242b47e "Tracker", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args at entry=0x7ffd58cf4a80) at ../../../../glib/gmessages.c:1350
#3  0x00007f6225d97edf in g_log (log_domain=log_domain at entry=0x7f622242b47e "Tracker", log_level=log_level at entry=G_LOG_LEVEL_ERROR, format=format at entry=0x7f622242bc58 "Unable to find default domain ontology rule %s") at ../../../../glib/gmessages.c:1413
#4  0x00007f6222427041 in tracker_domain_ontology_initable_init (initable=<optimized out>, cancellable=<optimized out>, error=0x7ffd58cf4ce8) at tracker-domain-ontology.c:334
#5  0x00007f62251fc6e7 in g_initable_new_valist (object_type=<optimized out>, first_property_name=0x7f622242b9f3 "name", var_args=0x7ffd58cf4bf0, cancellable=0x0, error=0x7ffd58cf4ce8) at ../../../../gio/ginitable.c:248
#6  0x00007f62251fc799 in g_initable_new (object_type=<optimized out>, cancellable=cancellable at entry=0x0, error=error at entry=0x7ffd58cf4ce8, first_property_name=first_property_name at entry=0x7f622242b9f3 "name") at ../../../../gio/ginitable.c:162
#7  0x00007f6222427333 in tracker_domain_ontology_new (domain_name=<optimized out>, cancellable=cancellable at entry=0x0, error=error at entry=0x7ffd58cf4ce8) at tracker-domain-ontology.c:431
#8  0x00007f6224900c0b in tracker_sparql_backend_construct (object_type=<optimized out>, error=error at entry=0x7ffd58cf4d40) at tracker-backend.vala:35
#9  0x00007f6224901395 in tracker_sparql_backend_new (error=error at entry=0x7ffd58cf4d40) at tracker-backend.vala:33
#10 0x00007f622490142b in tracker_sparql_backend_get (cancellable=cancellable at entry=0x55a46f7d29a0, error=error at entry=0x7ffd58cf4d80) at tracker-backend.vala:229
#11 0x00007f62249016fe in tracker_sparql_backend_get_internal (cancellable=cancellable at entry=0x55a46f7d29a0, error=error at entry=0x7ffd58cf4dc0) at tracker-backend.vala:247
#12 0x00007f6224901cfe in tracker_sparql_connection_get (cancellable=cancellable at entry=0x55a46f7d29a0, error=error at entry=0x7ffd58cf4df0) at tracker-backend.vala:333
#13 0x000055a46e896870 in start_query_or_update (callback=callback at entry=0x55a46e896fd0 <on_get_starred_files_query_callback>, user_data=user_data at entry=0x55a46f7d39c0, is_query=is_query at entry=1, cancellable=cancellable at entry=0x55a46f7d29a0, query=<optimized out>) at ../src/nautilus-tag-manager.c:146
#14 0x000055a46e897387 in nautilus_tag_manager_query_starred_files (cancellable=0x55a46f7d29a0, self=0x55a46f7d39c0) at ../src/nautilus-tag-manager.c:431
#15 nautilus_tag_manager_set_cancellable (self=0x55a46f7d39c0, cancellable=0x55a46f7d29a0) at ../src/nautilus-tag-manager.c:872
#16 0x000055a46e8419ba in nautilus_application_init (self=0x55a46f7dc140) at ../src/nautilus-application.c:1124
#17 0x00007f6225178677 in g_type_create_instance (type=<optimized out>) at ../../../../gobject/gtype.c:1864
#18 0x00007f622515b398 in g_object_new_internal (class=class at entry=0x55a46f7daf70, params=params at entry=0x7ffd58cf5150, n_params=n_params at entry=3) at ../../../../gobject/gobject.c:1805
#19 0x00007f622515d224 in g_object_new_valist (object_type=<optimized out>, first_property_name=first_property_name at entry=0x55a46e90c2a8 "application-id", var_args=var_args at entry=0x7ffd58cf52a0) at ../../../../gobject/gobject.c:2128
#20 0x00007f622515d559 in g_object_new (object_type=<optimized out>, first_property_name=first_property_name at entry=0x55a46e90c2a8 "application-id") at ../../../../gobject/gobject.c:1648
#21 0x000055a46e843d2c in nautilus_application_new () at ../src/nautilus-application.c:1605
#22 0x000055a46e84176c in main (argc=1, argv=0x7ffd58cf54a8) at ../src/nautilus-main.c:76

(gdb) list tracker-domain-ontology.c:290,336
290
291     static gboolean
292     tracker_domain_ontology_initable_init (GInitable     *initable,
293                                            GCancellable  *cancellable,
294                                            GError       **error)
295     {
296             TrackerDomainOntology *domain_ontology;
297             TrackerDomainOntologyPrivate *priv;
298             GError *inner_error = NULL;
299             GKeyFile *key_file = NULL;
300             gchar *path, *path_for_tests;
301
302             domain_ontology = TRACKER_DOMAIN_ONTOLOGY (initable);
303             priv = tracker_domain_ontology_get_instance_private (domain_ontology);
304
305             if (priv->name && priv->name[0] == '/') {
306                     if (!g_file_test (priv->name, G_FILE_TEST_IS_REGULAR)) {
307                             inner_error = g_error_new (G_KEY_FILE_ERROR,
308                                                        G_KEY_FILE_ERROR_NOT_FOUND,
309                                                        "Could not find rule at '%s'",
310                                                        priv->name);
311                             goto end;
312                     }
313
314                     path = g_strdup (priv->name);
315             } else if (priv->name) {
316                     path = find_rule_in_data_dirs (priv->name);
317
318                     if (!path) {
319                             inner_error = g_error_new (G_KEY_FILE_ERROR,
320                                                        G_KEY_FILE_ERROR_NOT_FOUND,
321                                                        "Could not find rule '%s' in data dirs",
322                                                        priv->name);
323                             goto end;
324                     }
325             } else {
326                     path = g_build_filename (SHAREDIR, "tracker", "domain-ontologies",
327                                              DEFAULT_RULE, NULL);
328
329                     if (!g_file_test (path, G_FILE_TEST_IS_REGULAR)) {
330                             /* This is only for uninstalled tests */
331                             path_for_tests = g_strdup (g_getenv ("TRACKER_TEST_DOMAIN_ONTOLOGY_RULE"));
332
333                             if (path_for_tests == NULL) {
334                                     g_error ("Unable to find default domain ontology rule %s", path);
335                             }
336


...


(gdb) list ../src/nautilus-tag-manager.c:135,150
135
136     static void
137     start_query_or_update (GString             *query,
138                            GAsyncReadyCallback  callback,
139                            gpointer             user_data,
140                            gboolean             is_query,
141                            GCancellable        *cancellable)
142     {
143         g_autoptr (GError) error = NULL;
144         TrackerSparqlConnection *connection;
145
146         connection = tracker_sparql_connection_get (cancellable, &error);
147         if (!connection)
148         {
149             if (error)
150             {

(gdb) list ../src/nautilus-tag-manager.c:419,439
419
420     static void
421     nautilus_tag_manager_query_starred_files (NautilusTagManager *self,
422                                               GCancellable       *cancellable)
423     {
424         GString *query;
425
426         self->cancellable = cancellable;
427
428         query = g_string_new ("SELECT ?url tracker:id(?urn) "
429                               "WHERE { ?urn nie:url ?url ; nao:hasTag " STARRED_TAG "}");
430
431         start_query_or_update (query,
432                                on_get_starred_files_query_callback,
433                                self,
434                                TRUE,
435                                cancellable);
436
437         g_string_free (query, TRUE);
438     }
439

(gdb) list ../src/nautilus-tag-manager.c:867,878
867
868     void
869     nautilus_tag_manager_set_cancellable (NautilusTagManager *self,
870                                           GCancellable       *cancellable)
871     {
872         nautilus_tag_manager_query_starred_files (self, cancellable);
873
874         self->notifier = tracker_notifier_new (NULL,
875                                                TRACKER_NOTIFIER_FLAG_QUERY_LOCATION,
876                                                cancellable,
877                                                &self->notifier_error);
878

(gdb) list ../src/nautilus-application.c:1081,1127
1081
1082    static void
1083    nautilus_application_init (NautilusApplication *self)
1084    {
...
1111        NautilusApplicationPrivate *priv;
1112
1113        priv = nautilus_application_get_instance_private (self);
1114
1115        priv->notifications = g_hash_table_new_full (g_str_hash,
1116                                                     g_str_equal,
1117                                                     g_free,
1118                                                     NULL);
1119
1120        priv->undo_manager = nautilus_file_undo_manager_new ();
1121
1122        priv->tag_manager_cancellable = g_cancellable_new ();
1123        priv->tag_manager = nautilus_tag_manager_get ();
1124        nautilus_tag_manager_set_cancellable (priv->tag_manager,
1125                                              priv->tag_manager_cancellable);
1126
1127        g_application_add_main_option_entries (G_APPLICATION (self), options);



https://packages.debian.org/search?searchon=contents&keywords=default.rule&mode=path&suite=unstable&arch=any
Datei 	Pakete
/usr/share/tracker/domain-ontologies/default.rule 	tracker



https://gitlab.gnome.org/GNOME/tracker/blame/master/src/libtracker-common/tracker-domain-ontology.c

https://gitlab.gnome.org/GNOME/tracker/commit/ee07c990a6c3835ee90a7b5c5c1c630a8b228e4c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 909375-Replace-g_error-by-g_error_new.patch
Type: text/x-patch
Size: 847 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20180923/00cb4fe5/attachment-0001.bin>


More information about the pkg-gnome-maintainers mailing list