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 694783 - libtracker-miner: don't crash when first indexing files out of /home
libtracker-miner: don't crash when first indexing files out of /home
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: tracker-general
Depends on:
Blocks:
 
 
Reported: 2013-02-27 04:35 UTC by Cosimo Cecchi
Modified: 2013-03-08 21:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tracker-miner: don't crash when first indexing files out of /home (1.22 KB, patch)
2013-02-27 04:35 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2013-02-27 04:35:50 UTC
Attached patch fixes a crash in tracker-miner-fs reproducible (also with tracker-control -f) when indexing e.g. a file in a subdirectory of /opt.
Comment 1 Cosimo Cecchi 2013-02-27 04:35:52 UTC
Created attachment 237493 [details] [review]
tracker-miner: don't crash when first indexing files out of /home

If tracker_miner_manager_index_file() is called with a path outside of
the home directory, we'll end up recursing up to the file system root,
to create the parent directory objects.

When the tree we're passed is the filesystem root, and the file is
exactly equal to it, we should return the tree root immediately, or
we'll crash later in the while loop.
Comment 2 Martyn Russell 2013-03-01 16:21:47 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

This should be in 0.15.3 and 0.14.6. Thanks Cosimo! :)