Hello again,

so now I've installed some debugging packages of the dependencies:
        tracker-dbg, libglib2.0-0-dbg, libffi6-dbg, libsqlite3-0-dbg
Here is new backtrace:

(gdb) bt
#0  0x00007f6f65bfb38a in sqlite3Utf8Read (pz=pz@entry=0x7ffd4cc99c10) at 
sqlite3.c:22429
#1  0x00007f6f65bfe1dc in patternCompare (zPattern=0x223b963 "72* *", 
    zString=0x2369329 "\n25 29\n25 29\n27 34\n45 
55\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n- -\n- -\n- 55\n47 
55\n40\n32\n32\n32\n35\n41 47\n35 40\n35 40\n35 40\n41 42\n53 55\n41 47\n41 
47\n47 55\n49 50\n59\n53 55 59\n53 55 59\n56 
57\n15\n10\n11\n00\n00\n00\n00\n00\n00\n00\n"..., 
pInfo=pInfo@entry=0x7f6f65c93f58 <globInfo>, esc=esc@entry=0) at sqlite3.c:94878
#2  0x00007f6f65bfe43a in patternCompare (zPattern=0x223b962 "+72* *", 
    zString=0x2369328 "9\n25 29\n25 29\n27 34\n45 
55\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n- -\n- -\n- 55\n47 
55\n40\n32\n32\n32\n35\n41 47\n35 40\n35 40\n35 40\n41 42\n53 55\n41 47\n41 
47\n47 55\n49 50\n59\n53 55 59\n53 55 59\n56 
57\n15\n10\n11\n00\n00\n00\n00\n00\n00\n00"..., 
pInfo=pInfo@entry=0x7f6f65c93f58 <globInfo>, esc=esc@entry=0) at sqlite3.c:94829
#3  0x00007f6f65bfe43a in patternCompare (zPattern=0x223b960 "*2+72* *", 
    zString=0x2363098 "\n06\n06\n06\n06\n06\n06\n04\n13\n13\n13\n13\n03\n31 
43\n28 43\n31 46\n16 26\n16 26\n16 26\n16 26\n16 26\n16 26\n16 26\n16 26\n16 
26\n16 26\n16 26\n16 26\n13 23\n28 43\n28 43\n28 43\n28 
43\n12\n18\n16\n15\n13\n11\n09\nmontag-freitag (ferien"..., 
pInfo=pInfo@entry=0x7f6f65c93f58 <globInfo>, esc=esc@entry=0) at sqlite3.c:94829
#4  0x00007f6f65bfe43a in patternCompare (zPattern=0x223b95d "2*6*2+72* *", 
    zString=0x2354237 "2 22\n12 22\n12 22\n12 22\n12 22\n12 22\n12 22\n12 
22\n12 22\n12 22\n16 31\n16 31\n16 31\n16 31\n16 39\n46\n46\n46\n32 42\n32 
42\n32 42\n32 42\n32 42\n32 42\n32 42\n32 42\n32 42\n32 42\n32 
42\n46\n46\n46\n46\n52\n52\n52\n52\n52\n52\n52\n52\n"..., 
pInfo=pInfo@entry=0x7f6f65c93f58 <globInfo>, esc=esc@entry=0) at sqlite3.c:94829
#5  0x00007f6f65bfe43a in patternCompare (zPattern=0x223b95a "0*12*6*2+72* *", 
zPattern@entry=0x223b958 "*30*12*6*2+72* *", 
    zString=0x234f159 "0 40 50\n00 10 20 30 40 50\n04 19 34 49\n04 19 34 49\n04 
27 49\n55\n04 19 34 49\n04 19 34 49\n00 10 20 30 40 50\n00 10 20 30 40 50\n00 
10 20 30 40 50\n00 10 20 30 40 50\n00 10 20 30 40 50\n00 10 20 30 40 50\n00 10 
"..., 
    zString@entry=0x234d818 
"26a\n26\n25\n25\n24\n23\n22\n20\n19\n18\n18\n17\n16\n14\n13\n12\n10\n09\ner\n07\nrs\n05\n03
 02\n86\nst\ndt\nu\ngroß-enzersdorf\nkagran ●\n27 29\nfahrzeit in 
minuten\nmontag-freitag (schule) montag-freitag (ferien) samstag sonn- "..., 
pInfo=0x7f6f65c93f58 <globInfo>, esc=esc@entry=0) at sqlite3.c:94829
#6  0x00007f6f65c34c54 in likeFunc (context=0x7ffd4cc9a020, argc=2, 
argv=0x2219d90) at sqlite3.c:94962
#7  0x00007f6f65c6ce1b in sqlite3VdbeExec (p=0x7ffd4cc99c10) at sqlite3.c:70577
#8  0x00007f6f65c71ec7 in sqlite3Step (p=<optimized out>) at sqlite3.c:67780
#9  sqlite3_step (pStmt=0x2219878) at sqlite3.c:2310
#10 0x00007f6f663608b1 in stmt_step (stmt=0x2219878) at 
tracker-db-interface-sqlite.c:889
#11 db_cursor_iter_next (cursor=0x20286f0, cancellable=0x0, error=0x0) at 
tracker-db-interface-sqlite.c:2147
#12 0x00000000004048c5 in biji_get_notes_with_strings ()
#13 0x000000000040495f in ?? ()
#14 0x00007f6f618b8dc0 in ffi_call_unix64 () at ../src/x86/unix64.S:76
#15 0x00007f6f618b8828 in ffi_call (cif=cif@entry=0x7ffd4cc9a5b0, fn=<optimized 
out>, rvalue=0x7ffd4cc9a510, avalue=avalue@entry=0x7ffd4cc9a490) at 
../src/x86/ffi64.c:525
#16 0x00007f6f66e77a64 in g_cclosure_marshal_generic (closure=0x20398b0, 
return_gvalue=0x7ffd4cc9a730, n_param_values=<optimized out>, 
param_values=<optimized out>, invocation_hint=<optimized out>, 
    marshal_data=0x0) at 
/build/glib2.0-y6934K/glib2.0-2.42.1/./gobject/gclosure.c:1448
#17 0x00007f6f66e77245 in g_closure_invoke (closure=0x20398b0, 
return_value=0x7ffd4cc9a730, n_param_values=4, param_values=0x2215230, 
invocation_hint=0x7ffd4cc9a780)
    at /build/glib2.0-y6934K/glib2.0-2.42.1/./gobject/gclosure.c:768
#18 0x00007f6f66e88f6c in signal_emit_unlocked_R (node=node@entry=0x21a5920, 
detail=detail@entry=0, instance=instance@entry=0x1f3cf80, 
emission_return=emission_return@entry=0x7ffd4cc9a8b0, 
    instance_and_params=instance_and_params@entry=0x2215230) at 
/build/glib2.0-y6934K/glib2.0-2.42.1/./gobject/gsignal.c:3553
#19 0x00007f6f66e906f1 in g_signal_emitv (instance_and_params=0x2215230, 
signal_id=<optimized out>, detail=0, return_value=0x7ffd4cc9a8b0) at 
/build/glib2.0-y6934K/glib2.0-2.42.1/./gobject/gsignal.c:3048
#20 0x0000000000406278 in ?? ()
#21 0x00007f6f6719d767 in g_dbus_interface_method_dispatch_helper 
(invocation=<optimized out>, method_call_func=<optimized out>, 
interface=<optimized out>)
    at /build/glib2.0-y6934K/glib2.0-2.42.1/./gio/gdbusinterfaceskeleton.c:609
#22 skeleton_intercept_handle_method_call (connection=0x7ffd4cc99c10, 
sender=0x3f <error: Cannot access memory at address 0x3f>, 
    object_path=0x2369328 "9\n25 29\n25 29\n27 34\n45 
55\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n-\n- -\n- -\n- 55\n47 
55\n40\n32\n32\n32\n35\n41 47\n35 40\n35 40\n35 40\n41 42\n53 55\n41 47\n41 
47\n47 55\n49 50\n59\n53 55 59\n53 55 59\n56 
57\n15\n10\n11\n00\n00\n00\n00\n00\n00\n00"..., interface_name=0x0, 
method_name=0x0, parameters=0x0, invocation=0x7f6f58002d70, user_data=0x1f3cf80)
    at /build/glib2.0-y6934K/glib2.0-2.42.1/./gio/gdbusinterfaceskeleton.c:650
#23 0x00007f6f67185bbc in call_in_idle_cb (user_data=0x7f6f58002d70) at 
/build/glib2.0-y6934K/glib2.0-2.42.1/./gio/gdbusconnection.c:4884
#24 0x00007f6f66ba1b6d in g_main_dispatch (context=0x1f06560) at 
/build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmain.c:3111
#25 g_main_context_dispatch (context=context@entry=0x1f06560) at 
/build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmain.c:3710
#26 0x00007f6f66ba1f48 in g_main_context_iterate 
(context=context@entry=0x1f06560, block=block@entry=1, 
dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmain.c:3781
#27 0x00007f6f66ba1ffc in g_main_context_iteration (context=0x1f06560, 
context@entry=0x0, may_block=may_block@entry=1) at 
/build/glib2.0-y6934K/glib2.0-2.42.1/./glib/gmain.c:3842
#28 0x00007f6f6715f20c in g_application_run (application=0x205c890, argc=1, 
argv=0x7ffd4cc9ad08) at 
/build/glib2.0-y6934K/glib2.0-2.42.1/./gio/gapplication.c:2282
#29 0x0000000000403eb0 in main ()

I recognize those patternCompare stings as partial strings which I
entered into the search field, while doing adhoc calculations.  So the
question may be, 
a) should those inputs be sanitized, escaped, filtered before being
passed on to sqlite3? Or 
b) could this be a bug in sqlite3 that should be able to handle those
inputs without looping?

Cheers,
David

-- 
David Ayers - Team Austria
Free Software Foundation Europe (FSFE) []          (http://www.fsfe.org)
Join the Fellowship of FSFE!         [][][]      (https://fsfe.org/join)
Your donation powers our work!         ||       (http://fsfe.org/donate)

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to