Bug 365770

Summary: baloo crashes on indexin (re)start
Product: [Frameworks and Libraries] frameworks-baloo Reporter: andreas.heumaier
Component: EngineAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED DUPLICATE    
Severity: crash CC: aspotashev, christoph
Priority: NOR Keywords: drkonqi
Version: 5.18.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: valgrind run from baloo_file

Description andreas.heumaier 2016-07-17 11:54:13 UTC
Application: baloo_file (5.18.0)

Qt Version: 5.5.1
Operating System: Linux 4.4.0-040400rc4-generic x86_64
Distribution: Ubuntu 16.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
alooctl enable
Enabling the File Indexer
aheumaier@redwing:~$ org.kde.baloo: "/home/aheumaier"
Power state changed
KCrash: Attempting to start /usr/bin/baloo_file from kdeinit
sock_file=/run/user/1000/kdeinit5__0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = baloo_file path = /usr/bin pid = 2772
KCrash: Arguments: /usr/bin/baloo_file 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 4 and type 'Read', disabling...
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 5 and type 'Read', disabling...
QSocketNotifier: Invalid socket 13 and type 'Read', disabling...
QSocketNotifier: Invalid socket 7 and type 'Exception', disabling...

-- Backtrace:
Application: Baloo File Indexing Daemon (baloo_file), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5bd31408c0 (LWP 2570))]

Thread 2 (Thread 0x7f5a87ec4700 (LWP 2571)):
[KCrash Handler]
#6  mdb_midl_xmerge (idl=idl@entry=0x7f59e7a76018, merge=merge@entry=0x7f5a8845c010) at midl.c:206
#7  0x00007f5bcf97e76c in mdb_page_alloc (num=num@entry=1, mp=mp@entry=0x7f5a87ec2e40, mc=<optimized out>) at mdb.c:2215
#8  0x00007f5bcf980754 in mdb_page_new (mc=mc@entry=0x7f5a87ec33d0, flags=18, num=num@entry=1, mp=mp@entry=0x7f5a87ec2f00) at mdb.c:6928
#9  0x00007f5bcf980c7c in mdb_page_split (mc=mc@entry=0x7f5a87ec33d0, newkey=newkey@entry=0x7f5a87ec37b0, newdata=0x7f5a87ec37c0, newpgno=newpgno@entry=18446744073709551615, nflags=nflags@entry=0) at mdb.c:8348
#10 0x00007f5bcf983c70 in mdb_cursor_put (mc=0x7f5a87ec33d0, key=0x7f5a87ec37b0, data=0x7f5a87ec37c0, flags=<optimized out>) at mdb.c:6682
#11 0x00007f5bcf986260 in mdb_put (txn=0x246b970, dbi=8, key=key@entry=0x7f5a87ec37b0, data=data@entry=0x7f5a87ec37c0, flags=flags@entry=0) at mdb.c:8759
#12 0x00007f5bd2318629 in Baloo::IdFilenameDB::put (this=this@entry=0x7f5a87ec3830, docId=docId@entry=40549099774213121, path=...) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/idfilenamedb.cpp:75
#13 0x00007f5bd231458a in Baloo::DocumentUrlDB::add (this=this@entry=0x7f5a87ec3af0, id=id@entry=40549099774213121, parentId=parentId@entry=40548764766764033, name=...) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/documenturldb.cpp:135
#14 0x00007f5bd2314916 in Baloo::DocumentUrlDB::put (this=this@entry=0x7f5a87ec3af0, docId=docId@entry=40549099774213121, url=...) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/documenturldb.cpp:69
#15 0x00007f5bd232c0ea in Baloo::WriteTransaction::addDocument (this=0x7f5a80003190, doc=...) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/writetransaction.cpp:56
#16 0x00007f5bd2325fe9 in Baloo::Transaction::addDocument (this=this@entry=0x7f5a87ec3ba0, doc=...) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/engine/transaction.cpp:226
#17 0x000000000041be64 in Baloo::FirstRunIndexer::run (this=0x2546a00) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/file/firstrunindexer.cpp:76
#18 0x00007f5bd1c44343 in QThreadPoolThread::run (this=0x2550330) at thread/qthreadpool.cpp:93
#19 0x00007f5bd1c4784e in QThreadPrivate::start (arg=0x2550330) at thread/qthread_unix.cpp:331
#20 0x00007f5bd08ab6fa in start_thread (arg=0x7f5a87ec4700) at pthread_create.c:333
#21 0x00007f5bd1254b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f5bd31408c0 (LWP 2570)):
#0  0x00007f5bd1248e8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5bce41939c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5bce4194ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5bd1e7ea7f in QEventDispatcherGlib::processEvents (this=0x23ac020, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#4  0x00007f5bd1e25dea in QEventLoop::exec (this=this@entry=0x7ffdb0ba6970, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f5bd1e2de8c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229
#6  0x000000000041698c in main (argc=1, argv=<optimized out>) at /build/baloo-kf5-wIK3t6/baloo-kf5-5.18.0/src/file/main.cpp:88

Possible duplicates by query: bug 352494.

Reported using DrKonqi
Comment 1 andreas.heumaier 2016-07-17 12:04:23 UTC
Created attachment 100133 [details]
valgrind run from baloo_file

See atachment baloo_valgrind.txt
Comment 2 andreas.heumaier 2016-07-17 12:16:25 UTC
Deleting the Index with 
rm  -rf ./.local/share/baloo
resolves the problem.
Comment 3 Christoph Cullmann 2016-09-11 19:56:09 UTC

*** This bug has been marked as a duplicate of bug 353793 ***