Bug 238144

Summary: Bug 235166 with soprano debug info
Product: [Applications] dolphin Reporter: Anderson <morais.anderso>
Component: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED DUPLICATE    
Severity: crash CC: frank78ac
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Anderson 2010-05-19 10:44:19 UTC
Application: dolphin (1.4)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
I installed debug info for soprano and reproduced the  Bug 235166 -  "Dolphin crashes during Kubuntu start-up". 

 -- Backtrace:
Application: Dolphin (dolphin), signal: Aborted
__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 0x7f29fe05c760 (LWP 2442))]

Thread 4 (Thread 0x7f29ede3f710 (LWP 2445)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f29f9c893ac in _L_lock_12430 () from /lib/libc.so.6
#2  0x00007f29f9c87e48 in *__GI___libc_free (mem=0x7f29e0000020) at malloc.c:3736
#3  0x00007f29fa35dfdc in QString::free (d=0x7f29e00009d0) at tools/qstring.cpp:1108
#4  0x00007f29fa35e412 in QString::operator= (this=0x109c928, other=...) at tools/qstring.cpp:1282
#5  0x00007f29fa3c4547 in QUrlPrivate::parse (this=0x109c920, parseOptions=QUrlPrivate::ParseAndSet) at io/qurl.cpp:3781
#6  0x00007f29fa3c94be in QUrlPrivate::toEncoded (this=0x109c920, options=) at io/qurl.cpp:3850
#7  0x00007f29fa3c9aed in QUrl::toEncoded (this=<value optimized out>, options=<value optimized out>) at io/qurl.cpp:5605
#8  0x00007f29fcab37e2 in Soprano::soprano_qHash_QUrl (url=...) at ../../soprano/node.cpp:496
#9  0x00007f29fcac354a in QHash<QUrl, QVariant::Type>::findNode (akey=..., ahp=0x80, this=<value optimized out>) at /usr/include/qt4/QtCore/qhash.h:875
#10 0x00007f29fcac3669 in QHash<QUrl, QVariant::Type>::insert (akey=..., avalue=@0x7f29ede3e39c, this=<value optimized out>) at /usr/include/qt4/QtCore/qhash.h:752
#11 0x00007f29fcac80cc in Soprano::LiteralValue::typeFromDataTypeUri (dataTypeUri=...) at ../../soprano/literalvalue.cpp:627
#12 0x00007f29fcac8964 in Soprano::LiteralValue::fromString (value=..., type=...) at ../../soprano/literalvalue.cpp:596
#13 0x00007f29f80863b1 in Soprano::DataStream::readLiteralValue (this=0x7f29ede3e5d0, val=...) at ../../server/datastream.cpp:473
#14 0x00007f29f8086628 in Soprano::DataStream::readNode (this=0x7f29ede3e5d0, node=...) at ../../server/datastream.cpp:491
#15 0x00007f29f808691b in Soprano::DataStream::readBindingSet (this=0x7f29ede3e5d0, set=...) at ../../server/datastream.cpp:544
#16 0x00007f29f8089f7c in Soprano::Client::ClientConnection::queryIteratorCurrent (this=0xe0f310, id=<value optimized out>) at ../../client/clientconnection.cpp:607
#17 0x00007f29f808ee0b in Soprano::Client::ClientQueryResultIteratorBackend::current (this=0x108ea00) at ../../client/clientqueryresultiteratorbackend.cpp:60
#18 0x00007f29f808ea22 in Soprano::Client::ClientQueryResultIteratorBackend::binding (this=0x108ea00, name=<value optimized out>) at ../../client/clientqueryresultiteratorbackend.cpp:100
#19 0x00007f29fcaafc17 in Soprano::QueryResultIterator::binding (this=<value optimized out>, name=...) at ../../soprano/queryresultiterator.cpp:95
#20 0x00007f29fcaafdd9 in Soprano::QueryResultIterator::operator[] (this=0x80, name=) at ../../soprano/queryresultiterator.cpp:89
#21 0x00007f29fcd95a21 in Nepomuk::ResourceData::load (this=<value optimized out>) at ../../../nepomuk/core/resourcedata.cpp:420
#22 0x00007f29fcd961b8 in Nepomuk::ResourceData::property (this=0xe52540, uri=...) at ../../../nepomuk/core/resourcedata.cpp:271
#23 0x00007f29fcdb0ee2 in Nepomuk::Resource::property (this=<value optimized out>, uri=...) at ../../../nepomuk/core/resource.cpp:280
#24 0x00007f29fcdb39d0 in Nepomuk::Resource::rating (this=0x7f29ede3ec80) at ../../../nepomuk/core/resource.cpp:800
#25 0x0000000000465b08 in KLoadMetaDataThread::run (this=0xe4ff60) at ../../../../apps/dolphin/src/panels/information/kloadmetadatathread.cpp:95
#26 0x00007f29fa319775 in QThreadPrivate::start (arg=0xe4ff60) at thread/qthread_unix.cpp:248
#27 0x00007f29f724f9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#28 0x00007f29f9cf069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#29 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f29ed14c710 (LWP 2447)):
[KCrash Handler]
#5  0x00007f29f9c3da75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f29f9c415c0 in *__GI_abort () at abort.c:92
#7  0x00007f29f9c774fb in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#8  0x00007f29f9c815b6 in malloc_printerr (action=3, str=0x7f29f9d537d0 "malloc(): memory corruption (fast)", ptr=<value optimized out>) at malloc.c:6264
#9  0x00007f29f9c858e9 in _int_malloc (av=0x7f29e0000020, bytes=54) at malloc.c:4306
#10 0x00007f29f9c8658e in *__GI___libc_malloc (bytes=54) at malloc.c:3660
#11 0x00007f29fa35c5a5 in QString (this=0x7f29ed14b000, size=11) at tools/qstring.cpp:1027
#12 0x00007f29fa440a5a in QUtf8::convertToUnicode (chars=<value optimized out>, len=10, state=0x0) at codecs/qutfcodec.cpp:169
#13 0x00007f29fa35d75b in QString::fromUtf8 (str=0x98f <Address 0x98f out of bounds>, size=6) at tools/qstring.cpp:3850
#14 0x00007f29fa3beec3 in fromPercentEncodingMutable (ba=0x7f29ed14b010) at io/qurl.cpp:223
#15 0x00007f29fa3c45b3 in QUrlPrivate::parse (this=0x109c920, parseOptions=QUrlPrivate::ParseAndSet) at io/qurl.cpp:3787
#16 0x00007f29fa3c94be in QUrlPrivate::toEncoded (this=0x109c920, options=) at io/qurl.cpp:3850
#17 0x00007f29fa3c9aed in QUrl::toEncoded (this=<value optimized out>, options=<value optimized out>) at io/qurl.cpp:5605
#18 0x00007f29fcab37e2 in Soprano::soprano_qHash_QUrl (url=...) at ../../soprano/node.cpp:496
#19 0x00007f29fcac354a in QHash<QUrl, QVariant::Type>::findNode (akey=..., ahp=0x98f, this=<value optimized out>) at /usr/include/qt4/QtCore/qhash.h:875
#20 0x00007f29fcac3669 in QHash<QUrl, QVariant::Type>::insert (akey=..., avalue=@0x7f29ed14b39c, this=<value optimized out>) at /usr/include/qt4/QtCore/qhash.h:752
#21 0x00007f29fcac80cc in Soprano::LiteralValue::typeFromDataTypeUri (dataTypeUri=...) at ../../soprano/literalvalue.cpp:627
#22 0x00007f29fcac8964 in Soprano::LiteralValue::fromString (value=..., type=...) at ../../soprano/literalvalue.cpp:596
#23 0x00007f29f80863b1 in Soprano::DataStream::readLiteralValue (this=0x7f29ed14b5d0, val=...) at ../../server/datastream.cpp:473
#24 0x00007f29f8086628 in Soprano::DataStream::readNode (this=0x7f29ed14b5d0, node=...) at ../../server/datastream.cpp:491
#25 0x00007f29f808691b in Soprano::DataStream::readBindingSet (this=0x7f29ed14b5d0, set=...) at ../../server/datastream.cpp:544
#26 0x00007f29f8089f7c in Soprano::Client::ClientConnection::queryIteratorCurrent (this=0xe0f310, id=<value optimized out>) at ../../client/clientconnection.cpp:607
#27 0x00007f29f808ee0b in Soprano::Client::ClientQueryResultIteratorBackend::current (this=0x1090120) at ../../client/clientqueryresultiteratorbackend.cpp:60
#28 0x00007f29f808ea22 in Soprano::Client::ClientQueryResultIteratorBackend::binding (this=0x1090120, name=<value optimized out>) at ../../client/clientqueryresultiteratorbackend.cpp:100
#29 0x00007f29fcaafc17 in Soprano::QueryResultIterator::binding (this=<value optimized out>, name=...) at ../../soprano/queryresultiterator.cpp:95
#30 0x00007f29fcaafdd9 in Soprano::QueryResultIterator::operator[] (this=0x98f, name=) at ../../soprano/queryresultiterator.cpp:89
#31 0x00007f29fcd95a21 in Nepomuk::ResourceData::load (this=<value optimized out>) at ../../../nepomuk/core/resourcedata.cpp:420
#32 0x00007f29fcd961b8 in Nepomuk::ResourceData::property (this=0x7f29e8001200, uri=...) at ../../../nepomuk/core/resourcedata.cpp:271
#33 0x00007f29fcdb0ee2 in Nepomuk::Resource::property (this=<value optimized out>, uri=...) at ../../../nepomuk/core/resource.cpp:280
#34 0x00007f29fcdb39d0 in Nepomuk::Resource::rating (this=0x7f29ed14bc80) at ../../../nepomuk/core/resource.cpp:800
#35 0x0000000000465b08 in KLoadMetaDataThread::run (this=0xfd21b0) at ../../../../apps/dolphin/src/panels/information/kloadmetadatathread.cpp:95
#36 0x00007f29fa319775 in QThreadPrivate::start (arg=0xfd21b0) at thread/qthread_unix.cpp:248
#37 0x00007f29f724f9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#38 0x00007f29f9cf069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#39 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f29e7fff710 (LWP 2463)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f29fa318ea3 in QMutexPrivate::wait (this=0xe52830, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f29fa3149e5 in QMutex::lock (this=0xe52598) at thread/qmutex.cpp:167
#3  0x00007f29fcd95747 in QMutexLocker::relock (this=0xe52540) at /usr/include/qt4/QtCore/qmutex.h:120
#4  QMutexLocker (this=0xe52540) at /usr/include/qt4/QtCore/qmutex.h:102
#5  Nepomuk::ResourceData::load (this=0xe52540) at ../../../nepomuk/core/resourcedata.cpp:409
#6  0x00007f29fcd961b8 in Nepomuk::ResourceData::property (this=0xe52540, uri=...) at ../../../nepomuk/core/resourcedata.cpp:271
#7  0x00007f29fcdb0ee2 in Nepomuk::Resource::property (this=<value optimized out>, uri=...) at ../../../nepomuk/core/resource.cpp:280
#8  0x00007f29fcdb39d0 in Nepomuk::Resource::rating (this=0x7f29e7ffec80) at ../../../nepomuk/core/resource.cpp:800
#9  0x0000000000465b08 in KLoadMetaDataThread::run (this=0x1077130) at ../../../../apps/dolphin/src/panels/information/kloadmetadatathread.cpp:95
#10 0x00007f29fa319775 in QThreadPrivate::start (arg=0x1077130) at thread/qthread_unix.cpp:248
#11 0x00007f29f724f9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007f29f9cf069d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f29fe05c760 (LWP 2442)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f29f9c893ac in _L_lock_12430 () from /lib/libc.so.6
#2  0x00007f29f9c87e48 in *__GI___libc_free (mem=0x7f29e0000020) at malloc.c:3736
#3  0x00007f29fa3359c8 in QHashData::free_helper (this=0x109cef0, node_delete=0x7f29fcac8a60 <QHash<QUrl, QVariant::Type>::deleteNode2(QHashData::Node*)>) at tools/qhash.cpp:276
#4  0x00007f29f9c43262 in __run_exit_handlers (status=1) at exit.c:78
#5  *__GI_exit (status=1) at exit.c:100
#6  0x00007f29fb071558 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:734
#7  0x00007f29fbd06288 in KApplication::xioErrhandler (this=0x7ffffbad3c60, dpy=0x9d0fc0) at ../../kdeui/kernel/kapplication.cpp:408
#8  0x00007f29f8c117fe in _XIOError () from /usr/lib/libX11.so.6
#9  0x00007f29f8c19355 in ?? () from /usr/lib/libX11.so.6
#10 0x00007f29f8c19c07 in _XEventsQueued () from /usr/lib/libX11.so.6
#11 0x00007f29f8c0240b in XEventsQueued () from /usr/lib/libX11.so.6
#12 0x00007f29fb0ab62c in x11EventSourceCheck (s=0x9be4f0) at kernel/qguieventdispatcher_glib.cpp:87
#13 0x00007f29f6108b0a in g_main_context_check () from /lib/libglib-2.0.so.0
#14 0x00007f29f61094c3 in ?? () from /lib/libglib-2.0.so.0
#15 0x00007f29f61098fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#16 0x00007f29fa437513 in QEventDispatcherGlib::processEvents (this=0x98f770, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#17 0x00007f29fb0ab46e in QGuiEventDispatcherGlib::processEvents (this=0x7f29e0000020, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#18 0x00007f29fa40c992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#19 0x00007f29fa40cd6c in QEventLoop::exec (this=0x7ffffbad3bb0, flags=) at kernel/qeventloop.cpp:201
#20 0x00007f29fa410aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#21 0x000000000043b1c5 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../../apps/dolphin/src/main.cpp:101

Possible duplicates by query: bug 237507, bug 237403, bug 237309, bug 237064, bug 236975.

Reported using DrKonqi
Comment 1 Frank Reininghaus 2010-05-19 14:48:45 UTC
Thanks for your report! The backtrace indicates that there is a memory corruption problem because there are simultaneous malloc/free calls in different threads at the time of the crash (I've already seen a couple more backtraces which show this pattern). Such issues are quite hard to debug, unfortunately, because the problem could basically be anywhere...
Comment 2 Peter Penz 2010-08-16 19:43:55 UTC

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