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 689410 - tracker-miner-fs 0.14.4 crashed with SIGSEGV in block_source()
tracker-miner-fs 0.14.4 crashed with SIGSEGV in block_source()
Status: RESOLVED OBSOLETE
Product: tracker
Classification: Core
Component: General
0.14.x
Other Linux
: Normal major
: ---
Assigned To: tracker-general
tracker-general
Depends on:
Blocks:
 
 
Reported: 2012-12-01 12:04 UTC by melchiaros
Modified: 2016-05-09 00:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description melchiaros 2012-12-01 12:04:27 UTC
This report was orginally filed on launchpad

https://bugs.launchpad.net/ubuntu/+source/tracker/+bug/1085387

a stacktrace is available and will be paste as comment here.

The affected archive could not be uploaded to GNOME bugzilla(to big), but could be downloaded from the launchpad report.

The header of the original report will be copied here


----------------------------------------(original description):

This crash happends on extracting a tar.bz2 archive(magento - a shopping system).

The archive will be attached to this report.

Steps tp reproduce:

1.Start nautilus
2.Navigate to the magento-1.7.0.2.tar.bz2 archive
3.Right mouse click on the file -> extract here
4.See tracker crashing after extraction has finished.

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: tracker-miner-fs 0.14.4-0ubuntu1
ProcVersionSignature: Ubuntu 3.7.0-4.12-generic 3.7.0-rc7
Uname: Linux 3.7.0-4-generic x86_64
ApportVersion: 2.6.3-0ubuntu2
Architecture: amd64
Date: Sat Dec 1 12:42:52 2012
ExecutablePath: /usr/lib/tracker/tracker-miner-fs
InstallationDate: Installed on 2012-07-22 (131 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120722)
MarkForUpload: True
ProcCmdline: /usr/lib/tracker/tracker-miner-fs
ProcEnviron:
 PATH=(custom, no username)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x7fad501fb090: mov (%rbx),%rdi
 PC (0x7fad501fb090) ok
 source "(%rbx)" (0x00000080) not located in a known VMA region (needed readable region)!
 destination "%rdi" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: tracker
StacktraceTop:
 ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 main ()
Title: tracker-miner-fs crashed with SIGSEGV in g_main_context_dispatch()
UpgradeStatus: Upgraded to raring on 2012-11-15 (15 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers
Comment 1 melchiaros 2012-12-01 12:04:59 UTC


  • #0 block_source
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 2619
  • #1 g_main_dispatch
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 2692
  • #2 g_main_context_dispatch
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 3219
  • #3 g_main_context_iterate
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 3290
  • #4 g_main_loop_run
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 3484
  • #5 main
    at tracker-main.c line 1091

Comment 2 melchiaros 2012-12-01 12:06:07 UTC
.

Thread 1 (Thread 0x7fad5197c840 (LWP 2485))

  • #0 block_source
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 2619
  • #1 g_main_dispatch
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 2692
  • #2 g_main_context_dispatch
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 3219
  • #3 g_main_context_iterate
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 3290
  • #4 g_main_loop_run
    at /build/buildd/glib2.0-2.34.2/./glib/gmain.c line 3484
  • #5 main
    at tracker-main.c line 1091

Comment 3 Martyn Russell 2012-12-03 10:43:51 UTC
Hmm, the stack trace isn't too useful AFAICS.

I tested this here with master (0.15.0 pretty much), there isn't much difference between that and 0.14.4 and I wouldn't expect the two branches to be any different.

Anyway, there is no crash here when I perform the steps you outlined :/ tracker-extract is running the whole time too (which I thought might be part of the problem. Sometimes we have crashes with strange content).

Since I am trying this on 12.10, I can only assume at this point that it's related to newer libraries on that system?

How frequently can you reproduce this?
Comment 4 melchiaros 2012-12-08 09:53:31 UTC
Q:How frequently can you reproduce this?

A: On a Raring 13.04 64bit system:  Always.

Q:Since I am trying this on 12.10, I can only assume at this point that it's
related to newer libraries on that system?

A:Yes, may be that newer libraries causes this. For reproducing purposes it may be helpfull to try it with:

http://cdimage.ubuntu.com/daily-live/current/

for Ubuntu13.04
Comment 5 Martyn Russell 2013-05-01 10:57:02 UTC
I can confirm there is something strange happening on 13.04 with tracker-0.16 branch. The extraction results in some recursive issue in the miner-fs. See:

"""
(lt-tracker-miner-fs:28820): Tracker-WARNING **: File 'file:///home/martyn/Downloads/magento-1.7.0.2/magento/lib' has been reenqueued more than 2 times. It will not be indexed.
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2" . }'
Tracker-Message: Parent 'file:///home/martyn/Downloads/magento-1.7.0.2' not indexed yet
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2" . }'
(lt-tracker-miner-fs:28820): Tracker-DEBUG: Processing file 'file:///home/martyn/Downloads/magento-1.7.0.2'...
Tracker-Message: Could not process 'file:///home/martyn/Downloads/magento-1.7.0.2': Error when getting information for file '/home/martyn/Downloads/magento-1.7.0.2': No such file or directory
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2" . }'
Tracker-Message: Parent 'file:///home/martyn/Downloads/magento-1.7.0.2' not indexed yet

(lt-tracker-miner-fs:28820): Tracker-WARNING **: File 'file:///home/martyn/Downloads/magento-1.7.0.2/magento' has been reenqueued more than 2 times. It will not be indexed.
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2" . }'
(lt-tracker-miner-fs:28820): Tracker-DEBUG: Processing file 'file:///home/martyn/Downloads/magento-1.7.0.2'...
Tracker-Message: Could not process 'file:///home/martyn/Downloads/magento-1.7.0.2': Error when getting information for file '/home/martyn/Downloads/magento-1.7.0.2': No such file or directory
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2/magento/lib/Mage" . }'
Tracker-Message: Parent 'file:///home/martyn/Downloads/magento-1.7.0.2/magento/lib/Mage' not indexed yet
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2/magento/lib" . }'
Tracker-Message: Parent 'file:///home/martyn/Downloads/magento-1.7.0.2/magento/lib' not indexed yet
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2/magento" . }'
Tracker-Message: Parent 'file:///home/martyn/Downloads/magento-1.7.0.2/magento' not indexed yet
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2" . }'
Tracker-Message: Parent 'file:///home/martyn/Downloads/magento-1.7.0.2' not indexed yet
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2" . }'
(lt-tracker-miner-fs:28820): Tracker-DEBUG: Processing file 'file:///home/martyn/Downloads/magento-1.7.0.2'...
Tracker-Message: Could not process 'file:///home/martyn/Downloads/magento-1.7.0.2': Error when getting information for file '/home/martyn/Downloads/magento-1.7.0.2': No such file or directory
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2" . }'
Tracker-Message: Parent 'file:///home/martyn/Downloads/magento-1.7.0.2' not indexed yet

(lt-tracker-miner-fs:28820): Tracker-WARNING **: File 'file:///home/martyn/Downloads/magento-1.7.0.2/magento' has been reenqueued more than 2 times. It will not be indexed.
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2" . }'
(lt-tracker-miner-fs:28820): Tracker-DEBUG: Processing file 'file:///home/martyn/Downloads/magento-1.7.0.2'...
Tracker-Message: Could not process 'file:///home/martyn/Downloads/magento-1.7.0.2': Error when getting information for file '/home/martyn/Downloads/magento-1.7.0.2': No such file or directory
(lt-tracker-miner-fs:28820): Tracker-DEBUG: tracker-backend.vala:75: Tracker.Sparql.Backend.query(): 'select ?url ?u nfo:fileLastModified(?u) where {   ?u a nie:DataObject ;      nie:url ?url ;      nie:url "file:///home/martyn/Downloads/magento-1.7.0.2/magento" . }'
Tracker-Message: Parent 'file:///home/martyn/Downloads/magento-1.7.0.2/magento' not indexed yet
"""

etc.
Comment 6 Sam Thursfield 2013-05-01 16:36:59 UTC
Tried to reproduce this on Fedora 16 / latest jhbuild and I get no crashes or warnings, although the repetition of this message is a little weird:

...
Tracker-INFO:   Found 4436 directories, ignored 0 directories
Tracker-INFO:   Found 11912 files, ignored 14 files
Tracker-INFO:   Found 4436 directories, ignored 0 directories
Tracker-INFO:   Found 11912 files, ignored 14 files
Tracker-INFO:   Found 4436 directories, ignored 0 directories
Tracker-INFO:   Found 11912 files, ignored 14 files
Tracker-INFO:   Found 4436 directories, ignored 0 directories
Tracker-INFO:   Found 11912 files, ignored 14 files
Tracker-INFO:   Found 4436 directories, ignored 0 directories
Tracker-INFO:   Found 11912 files, ignored 14 files
...

I'll try again in an Ubuntu 13.04 VM.
Comment 7 Sam Thursfield 2013-05-02 17:50:59 UTC
On Ubuntu 13.04 I get different symptoms again: none of what Martyn saw:

Tracker-Message: Could not process
'file:///home/martyn/Downloads/magento-1.7.0.2': Error when getting information
for file '/home/martyn/Downloads/magento-1.7.0.2': No such file or directory

but I did see the miner to crash:

Tracker-INFO: Started inspecting 'file:///home/sam/Downloads/magento'
Tracker-INFO:   Queried files after 0.00 seconds
Tracker-INFO:   Queried files after 0.00 seconds
Tracker-INFO:   Queried files after 0.00 seconds

(tracker-miner-fs:4734): GLib-GIO-CRITICAL **: g_file_get_child: assertion `G_IS_FILE (file)' failed

(tracker-miner-fs:4734): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed

(tracker-miner-fs:4734): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(tracker-miner-fs:4734): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

So, seems like it's some kind of ref counting / memory bug, again.
Comment 8 Martyn Russell 2013-05-03 09:02:29 UTC
> (tracker-miner-fs:4734): GLib-GIO-CRITICAL **: g_file_get_child: assertion
> `G_IS_FILE (file)' failed
> 
> (tracker-miner-fs:4734): GLib-GObject-CRITICAL **: g_object_set_qdata_full:
> assertion `G_IS_OBJECT (object)' failed
> 
> (tracker-miner-fs:4734): GLib-GObject-CRITICAL **: g_object_ref: assertion
> `G_IS_OBJECT (object)' failed
> 
> (tracker-miner-fs:4734): GLib-GObject-CRITICAL **: g_object_unref: assertion
> `G_IS_OBJECT (object)' failed
> 
> So, seems like it's some kind of ref counting / memory bug, again.

Sam, thank you for the investigation. I've seen this in a bug report somewhere before, see:

  https://bugzilla.gnome.org/show_bug.cgi?id=689905#c9(In reply to comment #7)
Comment 9 Carlos Garnacho 2016-05-09 00:02:06 UTC
Too long without activity here, lots changed since.