Bug 267728

Summary: Nepomuk crash when previewing files in KIO::RenameDialog with Ark
Product: [Unmaintained] nepomuk Reporter: workingwriter
Component: generalAssignee: Sebastian Trueg <sebastian>
Status: RESOLVED DUPLICATE    
Severity: crash CC: me, peter.penz19, rakuco, trueg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description workingwriter 2011-03-05 17:04:09 UTC
Application: ark (2.16)
KDE Platform Version: 4.6.00 (4.6.0) "release 395"
Qt Version: 4.7.2
Operating System: Linux 2.6.34.7-0.7-default i686
Distribution: "openSUSE 11.3 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:
Downloaded WordPress 3.1 to install into localhost. Extracted archive into /srv/www/htdocs/wordpress (permissions valid for this folder). Had closed existing WordPress install, but browser was still open (so Apache was likely running). Ark asked whether to overwrite existing files; I told it to overwrite all. A few seconds passed before Ark crashed. 

Did the extract a second time, with no issues.

-- Backtrace:
Application: Ark (ark), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4fb9710 (LWP 3147))]

Thread 5 (Thread 0xb1e32b70 (LWP 3163)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5f285b3 in __lll_lock_wait_private () from /lib/libc.so.6
#2  0xb5ebb35f in _L_lock_10260 () from /lib/libc.so.6
#3  0xb5eb9ad6 in free () from /lib/libc.so.6
#4  0xb5616836 in g_free () from /usr/lib/libglib-2.0.so.0
#5  0xb560c523 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb6236a08 in QEventDispatcherGlib::~QEventDispatcherGlib (this=0x82eab00, __in_chrg=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:373
#7  0xb6236b42 in QEventDispatcherGlib::~QEventDispatcherGlib (this=0x82eab00, __in_chrg=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:401
#8  0xb6107b8c in QThreadPrivate::finish (arg=0xb63438b0) at thread/qthread_unix.cpp:356
#9  0xb610898b in ~__pthread_cleanup_class (arg=0xb63438b0) at /usr/include/pthread.h:535
#10 QThreadPrivate::start (arg=0xb63438b0) at thread/qthread_unix.cpp:279
#11 0xb57eeb25 in start_thread () from /lib/libpthread.so.0
#12 0xb5f1a46e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xb1268b70 (LWP 3173)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5f285b3 in __lll_lock_wait_private () from /lib/libc.so.6
#2  0xb5ebb35f in _L_lock_10260 () from /lib/libc.so.6
#3  0xb5eb9ad6 in free () from /lib/libc.so.6
#4  0xb606498f in operator delete(void*) () from /usr/lib/libstdc++.so.6
#5  0xb6236982 in QEventDispatcherGlib::unregisterSocketNotifier (this=0x8229b80, notifier=0xb126830c) at kernel/qeventdispatcher_glib.cpp:503
#6  0xb6224748 in QSocketNotifier::setEnabled (this=0xb126830c, enable=false) at kernel/qsocketnotifier.cpp:298
#7  0xb6235f9e in socketNotifierSourceCheck (source=0x81eace0) at kernel/qeventdispatcher_glib.cpp:92
#8  0xb560f7d0 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#9  0xb5610108 in ?? () from /usr/lib/libglib-2.0.so.0
#10 0xb561060e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#11 0xb623653b in QEventDispatcherGlib::processEvents (this=0x8229b80, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#12 0xb620703d in QEventLoop::processEvents (this=0xb12682b0, flags=...) at kernel/qeventloop.cpp:149
#13 0xb6207269 in QEventLoop::exec (this=0xb12682b0, flags=...) at kernel/qeventloop.cpp:201
#14 0xb6105d39 in QThread::exec (this=0x82fe438) at thread/qthread.cpp:492
#15 0xb61e6a5d in QInotifyFileSystemWatcherEngine::run (this=0x82fe438) at io/qfilesystemwatcher_inotify.cpp:248
#16 0xb6108983 in QThreadPrivate::start (arg=0x82fe438) at thread/qthread_unix.cpp:320
#17 0xb57eeb25 in start_thread () from /lib/libpthread.so.0
#18 0xb5f1a46e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb00feb70 (LWP 3198)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb5f285b3 in __lll_lock_wait_private () from /lib/libc.so.6
#2  0xb5ebb35f in _L_lock_10260 () from /lib/libc.so.6
#3  0xb5eb9ad6 in free () from /lib/libc.so.6
#4  0xb606498f in operator delete(void*) () from /usr/lib/libstdc++.so.6
#5  0xb6236982 in QEventDispatcherGlib::unregisterSocketNotifier (this=0x82bcdd0, notifier=0x82c9e80) at kernel/qeventdispatcher_glib.cpp:503
#6  0xb6224748 in QSocketNotifier::setEnabled (this=0x82c9e80, enable=false) at kernel/qsocketnotifier.cpp:298
#7  0xb5ad8ea3 in QNativeSocketEngine::setReadNotificationEnabled (this=0x82c53d0, enable=false) at socket/qnativesocketengine.cpp:1169
#8  0xb5aeb80d in QAbstractSocket::disconnectFromHostImplementation (this=0x82b7eb0) at socket/qabstractsocket.cpp:2409
#9  0xb5aebe84 in QAbstractSocket::qt_metacall (this=0x82b7eb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xb00fd6ac) at .moc/release-shared/moc_qabstractsocket.cpp:114
#10 0xb5b15383 in QTcpSocket::qt_metacall (this=0x82b7eb0, _c=QMetaObject::InvokeMetaMethod, _id=18, _a=0xb00fd6ac) at .moc/release-shared/moc_qtcpsocket.cpp:64
#11 0xb620e5fd in QMetaObject::metacall (object=0x82b7eb0, cl=QMetaObject::InvokeMetaMethod, idx=18, argv=0xb00fd6ac) at kernel/qmetaobject.cpp:237
#12 0xb6210f09 in QMetaMethod::invoke (this=0xb00fd84c, object=0x82b7eb0, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., 
    val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1578
#13 0xb62124e3 in QMetaObject::invokeMethod (obj=0x82b7eb0, member=0xb5b27c40 "disconnectFromHostImplementation", type=Qt::DirectConnection, ret=..., val0=..., val1=..., val2=..., val3=..., 
    val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1151
#14 0xb5ae5320 in invokeMethod (this=0x82b7eb0) at ../../src/corelib/kernel/qobjectdefs.h:408
#15 QAbstractSocket::disconnectFromHost (this=0x82b7eb0) at socket/qabstractsocket.cpp:2373
#16 0xb5ae53e2 in QAbstractSocket::close (this=0x82b7eb0) at socket/qabstractsocket.cpp:2351
#17 0xb5aeb76e in QAbstractSocket::waitForReadyRead (this=0x82b7eb0, msecs=600000) at socket/qabstractsocket.cpp:1875
#18 0xb5af4c33 in QLocalSocket::waitForReadyRead (this=0x81ebc90, msecs=600000) at socket/qlocalsocket_unix.cpp:576
#19 0xb526a8c5 in ?? () from /usr/lib/libsopranoclient.so.1
#20 0xb526c158 in ?? () from /usr/lib/libsopranoclient.so.1
#21 0xb5c68c61 in Nepomuk::MainModel::executeQuery (this=0x8316fc8, query=..., language=Soprano::Query::QueryLanguageSparql, userQueryLanguage=...)
    at /usr/src/debug/kdelibs-4.6.0/nepomuk/core/nepomukmainmodel.cpp:212
#22 0xb5308e9f in Soprano::FilterModel::executeQuery(QString const&, Soprano::Query::QueryLanguage, QString const&) const () from /usr/lib/libsoprano.so.4
#23 0xb5c87856 in Nepomuk::Types::EntityPrivate::load (this=0xb0902438) at /usr/src/debug/kdelibs-4.6.0/nepomuk/types/entity.cpp:76
#24 0xb5c60718 in Nepomuk::Types::EntityPrivate::init (this=0xb0902438) at /usr/src/debug/kdelibs-4.6.0/nepomuk/types/entity.cpp:51
#25 0xb5c60acd in Nepomuk::Types::Entity::label (this=0xb00fe284, language=...) at /usr/src/debug/kdelibs-4.6.0/nepomuk/types/entity.cpp:190
#26 0xb5c60bc2 in Nepomuk::Types::Entity::label (this=0xb00fe284, language=...) at /usr/src/debug/kdelibs-4.6.0/nepomuk/types/entity.cpp:211
#27 0xb5c0d8f1 in Nepomuk::Utils::formatPropertyValue (property=..., value=..., resources=..., flags=...) at /usr/src/debug/kdelibs-4.6.0/nepomuk/utils/utils.cpp:143
#28 0xb7659356 in KLoadFileMetaDataThread::run (this=0x83669b0) at /usr/src/debug/kdelibs-4.6.0/kio/kfile/kloadfilemetadatathread.cpp:128
#29 0xb6108983 in QThreadPrivate::start (arg=0x83669b0) at thread/qthread_unix.cpp:320
#30 0xb57eeb25 in start_thread () from /lib/libpthread.so.0
#31 0xb5f1a46e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xaf8fdb70 (LWP 3199)):
[KCrash Handler]
#7  0xb5eb6778 in _int_malloc () from /lib/libc.so.6
#8  0xb5eb8403 in _int_realloc () from /lib/libc.so.6
#9  0xb5eb9c43 in realloc () from /lib/libc.so.6
#10 0xb61025f3 in qRealloc (ptr=0x81fbd88, size=32) at global/qmalloc.cpp:65
#11 0xb610acb3 in QByteArray::realloc (this=0xaf8fce28, alloc=12) at tools/qbytearray.cpp:1440
#12 0xb610bd72 in QByteArray::append (this=0xaf8fce28, ch=58 ':') at tools/qbytearray.cpp:1660
#13 0xb61c254d in operator+= (this=0xaf8fcea0, options=...) at ../../src/corelib/tools/qbytearray.h:488
#14 QUrlPrivate::toEncoded (this=0xaf8fcea0, options=...) at io/qurl.cpp:3910
#15 0xb61c1f4d in QUrlPrivate::normalized (this=0x8573700) at io/qurl.cpp:4059
#16 0xb61c379a in QUrl::operator== (this=0xb0902444, url=@0xaf8fd0b8) at io/qurl.cpp:5959
#17 0xb5c60efd in Nepomuk::Types::Entity::operator== (this=0xaf8fd284, other=...) at /usr/src/debug/kdelibs-4.6.0/nepomuk/types/entity.cpp:313
#18 0xb5c0decd in Nepomuk::Utils::formatPropertyValue (property=..., value=..., resources=..., flags=...) at /usr/src/debug/kdelibs-4.6.0/nepomuk/utils/utils.cpp:125
#19 0xb7659356 in KLoadFileMetaDataThread::run (this=0x81b7498) at /usr/src/debug/kdelibs-4.6.0/kio/kfile/kloadfilemetadatathread.cpp:128
#20 0xb6108983 in QThreadPrivate::start (arg=0x81b7498) at thread/qthread_unix.cpp:320
#21 0xb57eeb25 in start_thread () from /lib/libpthread.so.0
#22 0xb5f1a46e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4fb9710 (LWP 3147)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb57f3125 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb5f2824c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6109070 in wait (this=0x81e8828, mutex=0x81e8810, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x81e8828, mutex=0x81e8810, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb6108075 in QThread::wait (this=0x83669b0, time=4294967295) at thread/qthread_unix.cpp:722
#6  0xb76b70ef in KFileMetaDataProvider::Private::~Private (this=0x81ee338, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kio/kfile/kfilemetadataprovider.cpp:175
#7  0xb76b71f1 in KFileMetaDataProvider::~KFileMetaDataProvider (this=0x84b70b0, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kio/kfile/kfilemetadataprovider.cpp:368
#8  0xb76b7232 in KFileMetaDataProvider::~KFileMetaDataProvider (this=0x84b70b0, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kio/kfile/kfilemetadataprovider.cpp:369
#9  0xb621bac4 in QObjectPrivate::deleteChildren (this=0x816df10) at kernel/qobject.cpp:1955
#10 0xb67968d3 in QWidget::~QWidget (this=0x8296980, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#11 0xb75fe2f0 in KFileMetaDataWidget::~KFileMetaDataWidget (this=0x8296980, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kio/kfile/kfilemetadatawidget.cpp:323
#12 0xb75fe332 in KFileMetaDataWidget::~KFileMetaDataWidget (this=0x8296980, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kio/kfile/kfilemetadatawidget.cpp:326
#13 0xb621bac4 in QObjectPrivate::deleteChildren (this=0x846b0e8) at kernel/qobject.cpp:1955
#14 0xb67968d3 in QWidget::~QWidget (this=0x82fe598, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#15 0xb6796bc2 in QWidget::~QWidget (this=0x82fe598, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1651
#16 0xb621bac4 in QObjectPrivate::deleteChildren (this=0x855bb00) at kernel/qobject.cpp:1955
#17 0xb67968d3 in QWidget::~QWidget (this=0x81861a8, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#18 0xb6796bc2 in QWidget::~QWidget (this=0x81861a8, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1651
#19 0xb621bac4 in QObjectPrivate::deleteChildren (this=0x84a5658) at kernel/qobject.cpp:1955
#20 0xb67968d3 in QWidget::~QWidget (this=0x8239988, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#21 0xb6bb51ef in QFrame::~QFrame (this=0x8239988, __in_chrg=<value optimized out>) at widgets/qframe.cpp:240
#22 0xb6c47394 in QAbstractScrollArea::~QAbstractScrollArea (this=0x8239988, __in_chrg=<value optimized out>) at widgets/qabstractscrollarea.cpp:521
#23 0xb6c4c24f in QScrollArea::~QScrollArea (this=0x8239988, __in_chrg=<value optimized out>) at widgets/qscrollarea.cpp:174
#24 0xb6c4c292 in QScrollArea::~QScrollArea (this=0x8239988, __in_chrg=<value optimized out>) at widgets/qscrollarea.cpp:176
#25 0xb621bac4 in QObjectPrivate::deleteChildren (this=0x84c37b8) at kernel/qobject.cpp:1955
#26 0xb67968d3 in QWidget::~QWidget (this=0x8194b08, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#27 0xb6c8d324 in QDialog::~QDialog (this=0x8194b08, __in_chrg=<value optimized out>) at dialogs/qdialog.cpp:318
#28 0xb7576a71 in KIO::RenameDialog::~RenameDialog (this=0x8194b08, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kio/kio/renamedialog.cpp:359
#29 0xb7576ac2 in KIO::RenameDialog::~RenameDialog (this=0x8194b08, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kio/kio/renamedialog.cpp:363
#30 0xb788751b in Kerfuffle::OverwriteQuery::execute() () from /usr/lib/libkerfuffle.so.4
#31 0xb2963dc8 in ?? () from /usr/lib/kde4/arkpart.so
#32 0xb620e5fd in QMetaObject::metacall (object=0x8366ce8, cl=QMetaObject::InvokeMetaMethod, idx=34, argv=0x84efda8) at kernel/qmetaobject.cpp:237
#33 0xb62190e5 in QMetaCallEvent::placeMetaCall (this=0x8218878, object=0x8366ce8) at kernel/qobject.cpp:535
#34 0xb621d37f in QObject::event (this=0x8366ce8, e=0x8218878) at kernel/qobject.cpp:1217
#35 0xb67406e4 in QApplicationPrivate::notify_helper (this=0x80796b8, receiver=0x8366ce8, e=0x8218878) at kernel/qapplication.cpp:4462
#36 0xb67494a7 in QApplication::notify (this=0xbfdfcfbc, receiver=0x8366ce8, e=0x8218878) at kernel/qapplication.cpp:3862
#37 0xb72026c1 in KApplication::notify (this=0xbfdfcfbc, receiver=0x8366ce8, event=0x8218878) at /usr/src/debug/kdelibs-4.6.0/kdeui/kernel/kapplication.cpp:311
#38 0xb6207d5e in QCoreApplication::notifyInternal (this=0xbfdfcfbc, receiver=0x8366ce8, event=0x8218878) at kernel/qcoreapplication.cpp:731
#39 0xb620baec in sendEvent (receiver=0x0, event_type=0, data=0x805f428) at kernel/qcoreapplication.h:215
#40 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x805f428) at kernel/qcoreapplication.cpp:1372
#41 0xb620bc3c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1265
#42 0xb62363b4 in sendPostedEvents (s=0x807c3b8) at kernel/qcoreapplication.h:220
#43 postEventSourceDispatch (s=0x807c3b8) at kernel/qeventdispatcher_glib.cpp:277
#44 0xb560fb49 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#45 0xb5610350 in ?? () from /usr/lib/libglib-2.0.so.0
#46 0xb561060e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#47 0xb623653b in QEventDispatcherGlib::processEvents (this=0x8062e48, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#48 0xb67f71ca in QGuiEventDispatcherGlib::processEvents (this=0x8062e48, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#49 0xb620703d in QEventLoop::processEvents (this=0xbfdfcec4, flags=...) at kernel/qeventloop.cpp:149
#50 0xb6207269 in QEventLoop::exec (this=0xbfdfcec4, flags=...) at kernel/qeventloop.cpp:201
#51 0xb620bd10 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#52 0xb673e3e4 in QApplication::exec () at kernel/qapplication.cpp:3736
#53 0x080546af in _start ()

Reported using DrKonqi
Comment 1 Raphael Kubo da Costa 2011-03-10 20:00:43 UTC
From the backtrace, the crash seems to be Nepomuk-related -- Nepomuk was invoked when the rename dialog popped up and a preview of the files was shown.

I'm reassigning it to the nepomuk product.
Comment 2 Raphael Kubo da Costa 2011-03-10 20:01:45 UTC
I'm also CC'ing Peter Penz, as there are some KFileMetaDataWidget code that he might know about.
Comment 3 Peter Penz 2011-03-10 21:35:38 UTC
I'm quite sure such kind of issues don't occur anymore as we use a custom process now to read the metadata (see http://ppenz.blogspot.com/2011/03/dont-crash-when-reading-metadata.html - KFileMetaDataWidget uses this approach on master). Usually deleting KFileMetaDataWidget while metadata is read should not crash also in KDE 4.6 but judging from the backtrace we have a case here...
Comment 4 Sebastian Trueg 2011-09-18 09:47:32 UTC

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