Bug 333529 - Crash in Xapian::TermIterator::skip_to
Summary: Crash in Xapian::TermIterator::skip_to
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Baloo
Classification: Frameworks and Libraries
Component: Baloo File Daemon (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords: drkonqi
: 333538 333614 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-17 09:48 UTC by miflab
Modified: 2014-11-27 14:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description miflab 2014-04-17 09:48:51 UTC
Application: dolphin (4.13.0)
KDE Platform Version: 4.13.0 (Compiled from sources)
Qt Version: 4.8.5
Operating System: Linux 3.14.1-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
Open Dolphin application
Select some file
Click on "Add Tags" or "Add Comment"
Add some tag(s)/commment
Press "Ok"

Use latest version of KDE and Baloo (4.13), builded from sources in Gentoo.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f93d63857c0 (LWP 19073))]

Thread 3 (Thread 0x7f93d13ea700 (LWP 19092)):
#0  0x0000003bd801185d in ?? () from /lib64/ld-linux-x86-64.so.2
#1  0x0000003bd8001162 in ?? () from /lib64/ld-linux-x86-64.so.2
#2  0x0000003bdc8798b4 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3  0x0000003bdc9a68b5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x0000003bda44755d in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#5  0x0000003bda447dd3 in ?? () from /usr/lib64/libglib-2.0.so.0
#6  0x0000003bda447fbc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#7  0x0000003bdc9a6626 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#8  0x0000003bdc97872f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x0000003bdc978a25 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#10 0x0000003bdc87851f in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#11 0x0000003bdc95a0f3 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#12 0x0000003bdc87ab5f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#13 0x0000003bd8c08073 in start_thread () from /lib64/libpthread.so.0
#14 0x0000003bd84e807d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f93d0b3c700 (LWP 19095)):
#0  0x0000003bd84de9fd in poll () from /lib64/libc.so.6
#1  0x0000003bda447eb4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x0000003bda447fbc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x0000003bdc9a6626 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x0000003bdc97872f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x0000003bdc978a25 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x0000003bdc87851f in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x0000003bdc87ab5f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x0000003bd8c08073 in start_thread () from /lib64/libpthread.so.0
#9  0x0000003bd84e807d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f93d63857c0 (LWP 19073)):
[KCrash Handler]
#5  0x0000003bed46e727 in Xapian::TermIterator::skip_to(std::string const&) () from /usr/lib64/libxapian-1.3.so.1
#6  0x0000003bf5a0c204 in Baloo::XapianDocument::removeTermStartsWith(QByteArray const&) () from /usr/lib64/libbalooxapian.so.4
#7  0x0000003bf5e0ddbf in Baloo::FileModifyJob::doStart() () from /usr/lib64/libbaloofiles.so.4
#8  0x0000003bdc9919ae in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x0000003be11c64fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#10 0x0000003be11ccac0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x0000003be4e3ea5a in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#12 0x0000003bdc979acd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#13 0x0000003bdc97cb1f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#14 0x0000003bdc9a6d43 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#15 0x0000003bda447bc6 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#16 0x0000003bda447f18 in ?? () from /usr/lib64/libglib-2.0.so.0
#17 0x0000003bda447fbc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#18 0x0000003bdc9a6605 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#19 0x0000003be1262436 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#20 0x0000003bdc97872f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#21 0x0000003bdc978a25 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x0000003bdc97db3b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#23 0x0000003bf7650467 in kdemain () from /usr/lib64/libkdeinit4_dolphin.so
#24 0x0000003bd8421a65 in __libc_start_main () from /lib64/libc.so.6
#25 0x000000000040076e in _start ()

Reported using DrKonqi
Comment 1 Vishesh Handa 2014-04-25 16:08:20 UTC
*** Bug 333614 has been marked as a duplicate of this bug. ***
Comment 2 Jekyll Wu 2014-04-29 13:52:44 UTC
*** Bug 333538 has been marked as a duplicate of this bug. ***
Comment 3 Michael Palimaka 2014-11-27 12:11:53 UTC
We established downstream that the crash only occurs with >=xapian-1.3
Comment 4 Vishesh Handa 2014-11-27 13:13:27 UTC
Thanks for the info Michael. All of the reports do seem to come from Gentoo as well. I'll mark the bug as DOWNSTREAM.
Comment 5 Michael Palimaka 2014-11-27 13:25:43 UTC
(In reply to Vishesh Handa from comment #4)
> Thanks for the info Michael. All of the reports do seem to come from Gentoo
> as well. I'll mark the bug as DOWNSTREAM.

I guess no other distro encountered this yet since they don't package xapian-1.3.

I'm a bit confused why this is a downstream issue though - does baloo explicitly support only xapian-1.2? We work around the issue downstream by restricting the xapian version, but that's just hiding the issue.
Comment 6 Vishesh Handa 2014-11-27 14:02:11 UTC
(In reply to Michael Palimaka from comment #5)
> (In reply to Vishesh Handa from comment #4)
> > Thanks for the info Michael. All of the reports do seem to come from Gentoo
> > as well. I'll mark the bug as DOWNSTREAM.
> 
> I guess no other distro encountered this yet since they don't package
> xapian-1.3.
> 
> I'm a bit confused why this is a downstream issue though - does baloo
> explicitly support only xapian-1.2? We work around the issue downstream by
> restricting the xapian version, but that's just hiding the issue.

The Xapian 1.3 series is their development series. It's not meant for stable use and they can infact change the file structure in incompatible ways among multiple 1.3 releases. The Xapian developers do not recommend using it in our case.

It is also a matter of what we can test and reliably provide. All KDE developers are currently using Xapian 1.2 series and actively testing it. If you want I can try and add an explicit check for the 1.2 series in baloo's cmake.
Comment 7 Michael Palimaka 2014-11-27 14:28:56 UTC
That's fine, it just wasn't clear if it was supported or not. Thanks for information.