FS#69167 - [tracker3-miners] libtracker-miner-3.0.so constant segfaults

Attached to Project: Arch Linux
Opened by Ícar N. S. (juxuanu) - Friday, 01 January 2021, 11:57 GMT
Last edited by Balló György (City-busz) - Sunday, 18 June 2023, 09:34 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
My dmesg is being spammed with

[ 2263.147370] tracker-miner-f[6393]: segfault at 0 ip 00007f1b48d64c8a sp 00007fff247c6350 error 4 in libtracker-miner-3.0.so[7f1b48d53000+1a000]
[ 2263.147392] Code: 00 00 48 89 c6 48 89 18 48 83 c4 08 5b 5d ff 25 a4 69 01 00 66 66 2e 0f 1f 84 00 00 00 00 00 90 48 83 ec 08 ff 15 76 6e 01 00 <48> 8b 00 48 83 c4 08 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00
[ 2263.147475] audit: type=1701 audit(1609499674.102:626): auid=1000 uid=1000 gid=1000 ses=2 pid=6393 comm="tracker-miner-f" exe="/usr/lib/tracker-miner-fs-3" sig=11 res=1
[ 2263.167627] audit: type=1334 audit(1609499674.122:627): prog-id=164 op=LOAD
[ 2263.167708] audit: type=1334 audit(1609499674.122:628): prog-id=165 op=LOAD
[ 2263.169288] audit: type=1130 audit(1609499674.122:629): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@67-6754-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 2264.122546] audit: type=1131 audit(1609499675.075:630): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@67-6754-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 2264.249862] audit: type=1334 audit(1609499675.205:631): prog-id=165 op=UNLOAD
[ 2264.249870] audit: type=1334 audit(1609499675.205:632): prog-id=164 op=UNLOAD

Additional info:
* package version: extra/tracker3-miners 3.0.3-2
* link to upstream bug report, if any: https://gitlab.gnome.org/GNOME/tracker/-/issues/281

As you can see in the upstream bug report I filed myself, after updating, the segfaults disappeared. But today I noticed they've come back. Maybe is a matter of a rebuild, again?
This task depends upon

Closed by  Balló György (City-busz)
Sunday, 18 June 2023, 09:34 GMT
Reason for closing:  No response
Additional comments about closing:  probably fixed
Comment by Jan Alexander Steffens (heftig) - Friday, 01 January 2021, 16:32 GMT
Rebuilding doesn't produce any code changes.
Comment by Ícar N. S. (juxuanu) - Friday, 01 January 2021, 16:34 GMT
Then I'm guessing I should ask upstream the issue to be reopened? Any other suggestions on how to find the source of the problem?
Comment by Jan Alexander Steffens (heftig) - Friday, 01 January 2021, 16:37 GMT
Rebuild tracker3-miners with debug symbols according to https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces and get a backtrace from coredumpctl after the next crash.
Comment by Michael Wallner (mike) - Sunday, 10 January 2021, 12:05 GMT
```
PID: 437833 (tracker-miner-f)
UID: 1000 (mike)
GID: 100 (users)
Signal: 11 (SEGV)
Timestamp: Sun 2021-01-10 13:03:21 CET (17s ago)
Command Line: /usr/lib/tracker-miner-fs-3
Executable: /usr/lib/tracker-miner-fs-3
Control Group: /user.slice/user-1000.slice/user@1000.service/background.slice/tracker-miner-fs-3.service
Unit: user@1000.service
User Unit: tracker-miner-fs-3.service
Slice: user-1000.slice
Owner UID: 1000 (mike)
Boot ID: ff712af8236e4e5096d550af5a7756a5
Machine ID: 0030c32956b948d3988f7705c924e423
Hostname: smugmug
Storage: /var/lib/systemd/coredump/core.tracker-miner-f.1000.ff712af8236e4e5096d550af5a7756a5.437833.1610280201000000.zst
Message: Process 437833 (tracker-miner-f) of user 1000 dumped core.

Stack trace of thread 437833:
#0 0x00007f9d58310c8a tracker_sparql_task_get_sparql (libtracker-miner-3.0.so + 0x1dc8a)
#1 0x00007f9d58307d8b n/a (libtracker-miner-3.0.so + 0x14d8b)
#2 0x00007f9d580900f4 n/a (libgio-2.0.so.0 + 0xa10f4)
#3 0x00007f9d58094639 n/a (libgio-2.0.so.0 + 0xa5639)
#4 0x00007f9d5831083b n/a (libtracker-miner-3.0.so + 0x1d83b)
#5 0x00007f9d580900f4 n/a (libgio-2.0.so.0 + 0xa10f4)
#6 0x00007f9d58090129 n/a (libgio-2.0.so.0 + 0xa1129)
#7 0x00007f9d581fda84 g_main_context_dispatch (libglib-2.0.so.0 + 0x52a84)
#8 0x00007f9d582519b1 n/a (libglib-2.0.so.0 + 0xa69b1)
#9 0x00007f9d581fcfd3 g_main_loop_run (libglib-2.0.so.0 + 0x51fd3)
#10 0x0000559d8baebe4a main (tracker-miner-fs-3 + 0x9e4a)
#11 0x00007f9d57bc8152 __libc_start_main (libc.so.6 + 0x28152)
#12 0x0000559d8baec26e _start (tracker-miner-fs-3 + 0xa26e)

Stack trace of thread 437836:
#0 0x00007f9d57c9546f __poll (libc.so.6 + 0xf546f)
#1 0x00007f9d5825193f n/a (libglib-2.0.so.0 + 0xa693f)
#2 0x00007f9d581fc2b1 g_main_context_iteration (libglib-2.0.so.0 + 0x512b1)
#3 0x00007f9d53663c0e n/a (libdconfsettings.so + 0x5c0e)
#4 0x00007f9d5822aec1 n/a (libglib-2.0.so.0 + 0x7fec1)
#5 0x00007f9d57a4a3e9 start_thread (libpthread.so.0 + 0x93e9)
#6 0x00007f9d57ca0293 __clone (libc.so.6 + 0x100293)

Stack trace of thread 437834:
#0 0x00007f9d57c9546f __poll (libc.so.6 + 0xf546f)
#1 0x00007f9d5825193f n/a (libglib-2.0.so.0 + 0xa693f)
#2 0x00007f9d581fc2b1 g_main_context_iteration (libglib-2.0.so.0 + 0x512b1)
#3 0x00007f9d581fc302 n/a (libglib-2.0.so.0 + 0x51302)
#4 0x00007f9d5822aec1 n/a (libglib-2.0.so.0 + 0x7fec1)
#5 0x00007f9d57a4a3e9 start_thread (libpthread.so.0 + 0x93e9)
#6 0x00007f9d57ca0293 __clone (libc.so.6 + 0x100293)

Stack trace of thread 437837:
#0 0x00007f9d57c9ad5d syscall (libc.so.6 + 0xfad5d)
#1 0x00007f9d5824a231 g_cond_wait (libglib-2.0.so.0 + 0x9f231)
#2 0x00007f9d581cd874 n/a (libglib-2.0.so.0 + 0x22874)
#3 0x00007f9d5822dd49 n/a (libglib-2.0.so.0 + 0x82d49)
#4 0x00007f9d5822aec1 n/a (libglib-2.0.so.0 + 0x7fec1)
#5 0x00007f9d57a4a3e9 start_thread (libpthread.so.0 + 0x93e9)
#6 0x00007f9d57ca0293 __clone (libc.so.6 + 0x100293)

Stack trace of thread 437864:
#0 0x00007f9d57c9ad5d syscall (libc.so.6 + 0xfad5d)
#1 0x00007f9d5824aa9b g_cond_wait_until (libglib-2.0.so.0 + 0x9fa9b)
#2 0x00007f9d581cd853 n/a (libglib-2.0.so.0 + 0x22853)
#3 0x00007f9d581cd9e4 g_async_queue_timeout_pop (libglib-2.0.so.0 + 0x229e4)
#4 0x00007f9d5822de1a n/a (libglib-2.0.so.0 + 0x82e1a)
#5 0x00007f9d5822aec1 n/a (libglib-2.0.so.0 + 0x7fec1)
#6 0x00007f9d57a4a3e9 start_thread (libpthread.so.0 + 0x93e9)
#7 0x00007f9d57ca0293 __clone (libc.so.6 + 0x100293)

Stack trace of thread 437835:
#0 0x00007f9d57c9546f __poll (libc.so.6 + 0xf546f)
#1 0x00007f9d5825193f n/a (libglib-2.0.so.0 + 0xa693f)
#2 0x00007f9d581fcfd3 g_main_loop_run (libglib-2.0.so.0 + 0x51fd3)
#3 0x00007f9d580f0fe8 n/a (libgio-2.0.so.0 + 0x101fe8)
#4 0x00007f9d5822aec1 n/a (libglib-2.0.so.0 + 0x7fec1)
#5 0x00007f9d57a4a3e9 start_thread (libpthread.so.0 + 0x93e9)
#6 0x00007f9d57ca0293 __clone (libc.so.6 + 0x100293)
```
Comment by Shaleen Jain (shalzz) - Thursday, 18 March 2021, 04:59 GMT
I have the tracker-miner-fs-3 timing out and restarting continuously:
```
Mar 16 12:03:38 shalzz-thinkpad systemd[1615]: tracker-miner-fs-3.service: start operation timed out. Terminating.
Mar 16 12:03:38 shalzz-thinkpad systemd[1615]: tracker-miner-fs-3.service: Failed with result 'timeout'.
Mar 16 12:03:38 shalzz-thinkpad systemd[1615]: Failed to start Tracker file system data miner.
```

As well as tracker-extract getting sigsys
```
PID: 4248 (tracker-extract)
UID: 60099 (shalzz)
GID: 60099 (shalzz)
Signal: 31 (SYS)
Timestamp: Tue 2021-03-16 22:52:05 IST (1 day 11h ago)
Command Line: /usr/lib/tracker-extract
Executable: /usr/lib/tracker-extract
Control Group: /user.slice/user-60099.slice/user@60099.service/app.slice/tracker-extract.service
Unit: user@60099.service
User Unit: tracker-extract.service
Slice: user-60099.slice
Owner UID: 60099 (shalzz)
Boot ID: b67dfa84e6be457590857a0b3b4cba0e
Machine ID: 96d456a056f34f3ea2e1197c464517e9
Hostname: shalzz-thinkpad
Storage: /var/lib/systemd/coredump/core.tracker-extract.60099.b67dfa84e6be457590857a0b3b4cba0e.4248.1615915325000000.zst
Message: Process 4248 (tracker-extract) of user 60099 dumped core.

Stack trace of thread 4264:
#0 0x00007f966994357e fstatat (libc.so.6 + 0xef57e)
#1 0x00007f966991bbfe opendir_tail (libc.so.6 + 0xc7bfe)
#2 0x00007f965452f4ee _ZN4GDirC1EPKcb (libpoppler.so.108 + 0x1084ee)
#3 0x00007f96545da881 _ZN12GlobalParams16scanEncodingDirsEv (libpoppler.so.108 + 0x1b3881)
#4 0x00007f96545db311 _ZN12GlobalParamsC1EPKc (libpoppler.so.108 + 0x1b4311)
#5 0x00007f96545db407 _ZN18GlobalParamsIniterC1EPFv13ErrorCategoryxPKcE (libpoppler.so.108 + 0x1b4407)
#6 0x00007f96547b4f8d poppler_document_new_from_data (libpoppler-glib.so.8 + 0x1df8d)
#7 0x00007f96640621f7 tracker_extract_get_metadata (libextract-pdf.so + 0x51f7)
#8 0x000055cb2a3c2617 n/a (tracker-extract + 0xc617)
#9 0x000055cb2a3c6da3 n/a (tracker-extract + 0x10da3)
#10 0x000055cb2a3cdb51 n/a (tracker-extract + 0x17b51)
#11 0x00007f9669b0cfc1 n/a (libglib-2.0.so.0 + 0x80fc1)
#12 0x00007f9668c78299 start_thread (libpthread.so.0 + 0x9299)
#13 0x00007f9669953053 __clone (libc.so.6 + 0xff053)

Stack trace of thread 4250:
#0 0x00007f966994837f __poll (libc.so.6 + 0xf437f)
#1 0x00007f9669b33baf n/a (libglib-2.0.so.0 + 0xa7baf)
#2 0x00007f9669adf0d3 g_main_loop_run (libglib-2.0.so.0 + 0x530d3)
#3 0x00007f9669d21d18 n/a (libgio-2.0.so.0 + 0x101d18)
#4 0x00007f9669b0cfc1 n/a (libglib-2.0.so.0 + 0x80fc1)
#5 0x00007f9668c78299 start_thread (libpthread.so.0 + 0x9299)
#6 0x00007f9669953053 __clone (libc.so.6 + 0xff053)

Stack trace of thread 4253:
#0 0x00007f966994da9d syscall (libc.so.6 + 0xf9a9d)
#1 0x00007f9669b2c3e1 g_cond_wait (libglib-2.0.so.0 + 0xa03e1)
#2 0x00007f9669aaf944 n/a (libglib-2.0.so.0 + 0x23944)
#3 0x00007f9669b0fe49 n/a (libglib-2.0.so.0 + 0x83e49)
#4 0x00007f9669b0cfc1 n/a (libglib-2.0.so.0 + 0x80fc1)
#5 0x00007f9668c78299 start_thread (libpthread.so.0 + 0x9299)
#6 0x00007f9669953053 __clone (libc.so.6 + 0xff053)

Stack trace of thread 4252:
#0 0x00007f966994da9d syscall (libc.so.6 + 0xf9a9d)
#1 0x00007f9669b2c3e1 g_cond_wait (libglib-2.0.so.0 + 0xa03e1)
#2 0x00007f9669aaf944 n/a (libglib-2.0.so.0 + 0x23944)
#3 0x00007f9669b0fe49 n/a (libglib-2.0.so.0 + 0x83e49)
#4 0x00007f9669b0cfc1 n/a (libglib-2.0.so.0 + 0x80fc1)
#5 0x00007f9668c78299 start_thread (libpthread.so.0 + 0x9299)
#6 0x00007f9669953053 __clone (libc.so.6 + 0xff053)

Stack trace of thread 4258:
#0 0x00007f966994da9d syscall (libc.so.6 + 0xf9a9d)
#1 0x00007f9669b2c3e1 g_cond_wait (libglib-2.0.so.0 + 0xa03e1)
#2 0x00007f9669aaf944 n/a (libglib-2.0.so.0 + 0x23944)
#3 0x00007f9669b0fe49 n/a (libglib-2.0.so.0 + 0x83e49)
#4 0x00007f9669b0cfc1 n/a (libglib-2.0.so.0 + 0x80fc1)
#5 0x00007f9668c78299 start_thread (libpthread.so.0 + 0x9299)
#6 0x00007f9669953053 __clone (libc.so.6 + 0xff053)

Stack trace of thread 4254:
#0 0x00007f966994da9d syscall (libc.so.6 + 0xf9a9d)
#1 0x00007f9669b2c3e1 g_cond_wait (libglib-2.0.so.0 + 0xa03e1)
#2 0x00007f9669aaf944 n/a (libglib-2.0.so.0 + 0x23944)
#3 0x00007f9669b0fe49 n/a (libglib-2.0.so.0 + 0x83e49)
#4 0x00007f9669b0cfc1 n/a (libglib-2.0.so.0 + 0x80fc1)
#5 0x00007f9668c78299 start_thread (libpthread.so.0 + 0x9299)
#6 0x00007f9669953053 __clone (libc.so.6 + 0xff053)

Stack trace of thread 4256:
#0 0x00007f966994da9d syscall (libc.so.6 + 0xf9a9d)
#1 0x00007f9669b2c3e1 g_cond_wait (libglib-2.0.so.0 + 0xa03e1)
#2 0x00007f9669aaf944 n/a (libglib-2.0.so.0 + 0x23944)
#3 0x00007f9669b0fe49 n/a (libglib-2.0.so.0 + 0x83e49)
#4 0x00007f9669b0cfc1 n/a (libglib-2.0.so.0 + 0x80fc1)
#5 0x00007f9668c78299 start_thread (libpthread.so.0 + 0x9299)
#6 0x00007f9669953053 __clone (libc.so.6 + 0xff053)

Stack trace of thread 4257:
#0 0x00007f966994da9d syscall (libc.so.6 + 0xf9a9d)
#1 0x00007f9669b2c3e1 g_cond_wait (libglib-2.0.so.0 + 0xa03e1)
#2 0x00007f9669aaf944 n/a (libglib-2.0.so.0 + 0x23944)
#3 0x00007f9669b0fe49 n/a (libglib-2.0.so.0 + 0x83e49)
#4 0x00007f9669b0cfc1 n/a (libglib-2.0.so.0 + 0x80fc1)
#5 0x00007f9668c78299 start_thread (libpthread.so.0 + 0x9299)
#6 0x00007f9669953053 __clone (libc.so.6 + 0xff053)

Stack trace of thread 4259:
```
Comment by Balló György (City-busz) - Friday, 09 June 2023, 00:12 GMT
Is this still happen? Did you report it to upstream again?

Loading...