Bug 285776

Summary: crash when indexing incomplete files
Product: [Unmaintained] nepomuk Reporter: andreas <andi1069>
Component: fileindexerAssignee: Sebastian Trueg <sebastian>
Status: RESOLVED DUPLICATE    
Severity: crash CC: adaptee, me, trueg
Priority: NOR    
Version: 4.6   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description andreas 2011-11-04 20:10:33 UTC
Application: nepomukservicestub (0.2)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-12-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- Unusual behavior I noticed:
I guess that nepomuk crashs when he indexing incomplete saved files. Files who just jet are written to de disc when nepomuk will read them.

The crash can be reproduced every time.

-- Backtrace:
Application: Nepomuk-Dienst (nepomukservicestub), signal: Segmentation fault
__lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
[Current thread is 1 (Thread 0x7f4a75117780 (LWP 7977))]

Thread 3 (Thread 0x7f4a63fc5700 (LWP 7979)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4a74b1f82b in wait (this=<value optimized out>, mutex=0x26b0840, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x26b0840, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f4a6465541f in Nepomuk::IndexFeeder::run (this=0x26b0820) at ../../../../nepomuk/services/strigi/nepomukindexfeeder.cpp:188
#4  0x00007f4a74b1f175 in QThreadPrivate::start (arg=0x26b0820) at thread/qthread_unix.cpp:320
#5  0x00007f4a724e6d8c in start_thread (arg=0x7f4a63fc5700) at pthread_create.c:304
#6  0x00007f4a727e404d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f4a5b1e1700 (LWP 7980)):
[KCrash Handler]
#6  malloc_consolidate (av=0x7f4a72a8d1c0) at malloc.c:5161
#7  0x00007f4a72777472 in _int_malloc (av=0x7f4a72a8d1c0, bytes=65536) at malloc.c:4373
#8  0x00007f4a7277a31e in __libc_malloc (bytes=65536) at malloc.c:3660
#9  0x00007f4a74b21218 in QByteArray::realloc (this=0x2633fe8, alloc=65504) at tools/qbytearray.cpp:1428
#10 0x00007f4a74b21339 in QByteArray::resize (this=0x2633fe8, size=32768) at tools/qbytearray.cpp:1396
#11 0x00007f4a70e29133 in reserve (this=<value optimized out>, data=0x7f4a5b1e01cc "\021", size=2) at ../../include/QtCore/private/../../../src/corelib/tools/qringbuffer_p.h:158
#12 QAbstractSocket::writeData (this=<value optimized out>, data=0x7f4a5b1e01cc "\021", size=2) at socket/qabstractsocket.cpp:2214
#13 0x00007f4a74ba2d57 in QIODevice::write (this=0x26901b0, data=0x7f4a5b1e01cc "\021", maxSize=<value optimized out>) at io/qiodevice.cpp:1362
#14 0x00007f4a6f376025 in ?? () from /usr/lib/libsopranoclient.so.1
#15 0x00007f4a6f37c30a in ?? () from /usr/lib/libsopranoclient.so.1
#16 0x00007f4a6f37da73 in ?? () from /usr/lib/libsopranoclient.so.1
#17 0x00007f4a73a8a423 in Nepomuk::MainModel::executeQuery (this=0x2635f20, query=..., language=Soprano::Query::QueryLanguageSparql, userQueryLanguage=...) at ../../nepomuk/core/nepomukmainmodel.cpp:212
#18 0x00007f4a6f618507 in Soprano::FilterModel::executeQuery(QString const&, Soprano::Query::QueryLanguage, QString const&) const () from /usr/lib/libsoprano.so.4
#19 0x00007f4a6465399e in Nepomuk::IndexFeeder::clearIndexedDataForResourceUri (res=<value optimized out>) at ../../../../nepomuk/services/strigi/nepomukindexfeeder.cpp:323
#20 0x00007f4a64651aac in Nepomuk::StrigiIndexWriter::startAnalysis (this=0x26b84e0, idx=0x7f4a5b1e0a50) at ../../../../nepomuk/services/strigi/nepomukindexwriter.cpp:403
#21 0x00007f4a64657525 in Nepomuk::Indexer::indexFile (this=<value optimized out>, info=...) at ../../../../nepomuk/services/strigi/nepomukindexer.cpp:127
#22 0x00007f4a6464c38a in Nepomuk::IndexScheduler::analyzeDir (this=0x2688c90, dir_=<value optimized out>, flags=...) at ../../../../nepomuk/services/strigi/indexscheduler.cpp:450
#23 0x00007f4a6464c6ec in Nepomuk::IndexScheduler::run (this=0x2688c90) at ../../../../nepomuk/services/strigi/indexscheduler.cpp:338
#24 0x00007f4a74b1f175 in QThreadPrivate::start (arg=0x2688c90) at thread/qthread_unix.cpp:320
#25 0x00007f4a724e6d8c in start_thread (arg=0x7f4a5b1e1700) at pthread_create.c:304
#26 0x00007f4a727e404d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4a75117780 (LWP 7977)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f4a7277c80f in _L_lock_12013 () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f4a7277a8d8 in __libc_free (mem=0x7f4a72a8d1c0) at malloc.c:3736
#3  0x00007f4a74c30e57 in socketNotifierSourceCheck (source=0x2524d60) at kernel/qeventdispatcher_glib.cpp:92
#4  0x00007f4a71a0a854 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4a71a0b122 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f4a71a0b639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f4a74c313ef in QEventDispatcherGlib::processEvents (this=0x24db4a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#8  0x00007f4a72ffb4de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#9  0x00007f4a74c05882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#10 0x00007f4a74c05abc in QEventLoop::exec (this=0x7fffc6ca3ea0, flags=...) at kernel/qeventloop.cpp:201
#11 0x00007f4a74c09ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#12 0x0000000000403d0f in main (argc=2, argv=<value optimized out>) at ../../../nepomuk/servicestub/main.cpp:167

This bug may be a duplicate of or related to bug 285475.

Possible duplicates by query: bug 285704, bug 285475, bug 284552, bug 283727, bug 283123.

Reported using DrKonqi
Comment 1 Jekyll Wu 2012-07-06 16:48:41 UTC

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