Summary: | KRunner random crash probably due to a nepomuk bug. [_dbus_connection_lock, _dbus_pending_call_get_connection_and_lock, reply_handler_timeout on Thread 1 / Soprano and Nepomuk calls on other threads] | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | Davide Bettio <davide.bettio> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | 2Kmm, alex.merry, andresbajotierra, beneriehm, biasquez, blueowl, ellenshull, grosser.meister.morti, julee.vv, kai, lars, laurent.rineau, lists, mkyral, null, roy.dragseth, salvalemany, tom, xaver.xn, xtroce, xzekecomax, yashabk |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi |
Description
Davide Bettio
2009-10-04 19:41:35 UTC
*** Bug 212157 has been marked as a duplicate of this bug. *** *** Bug 214857 has been marked as a duplicate of this bug. *** *** Bug 215318 has been marked as a duplicate of this bug. *** *** Bug 219957 has been marked as a duplicate of this bug. *** I think this is the same: Thread 5 (Thread 0x7f2cfd160710 (LWP 24864)): [threadweaver waiting for jobs] Thread 4 (Thread 0x7f2cfc95f710 (LWP 24865)): #0 0x00007f2d1c7ccdd0 in pthread_mutex_lock () from /lib/libpthread.so.0 #1 0x00007f2d13d9e718 in _dbus_pthread_mutex_lock () from /usr/lib/libdbus-1.so.3 #2 0x00007f2d13d7f98d in _dbus_connection_lock () from /usr/lib/libdbus-1.so.3 #3 0x00007f2d13d982ad in socket_do_iteration () from /usr/lib/libdbus-1.so.3 #4 0x00007f2d13d9651d in _dbus_transport_do_iteration () from /usr/lib/libdbus-1.so.3 #5 0x00007f2d13d82b0e in _dbus_connection_do_iteration_unlocked () from /usr/lib/libdbus-1.so.3 #6 0x00007f2d13d84e30 in _dbus_connection_block_pending_call () from /usr/lib/libdbus-1.so.3 #7 0x00007f2d13d844c6 in dbus_connection_send_with_reply_and_block () from /usr/lib/libdbus-1.so.3 #8 0x00007f2d13d7e086 in send_no_return_values () from /usr/lib/libdbus-1.so.3 #9 0x00007f2d13d7e247 in dbus_bus_add_match () from /usr/lib/libdbus-1.so.3 #10 0x00007f2d1cef6f83 in q_dbus_bus_add_match (connection=0x18e2df0, rule=0x1c5e4a8 "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.DBus'", error=0x7f2cfc95e390) at /home/kde-devel/src/qt/src/dbus/qdbus_symbols_p.h:88 #11 0x00007f2d1cf0278f in QDBusConnectionPrivate::connectSignal (this=0x1c72f20, key=..., hook=...) at /home/kde-devel/src/qt/src/dbus/qdbusintegrator.cpp:2035 #12 0x00007f2d1cf02566 in QDBusConnectionPrivate::connectSignal (this=0x1c72f20, service=..., path=..., interface=..., name=..., argumentMatch=..., signature=..., receiver=0x7f2cf40ceaa0, slot=0x7f2d1cf3ff80 "1_q_serviceOwnerChanged(QString,QString,QString)") at /home/kde-devel/src/qt/src/dbus/qdbusintegrator.cpp:2013 #13 0x00007f2d1cef0d7e in QDBusConnection::connect (this=0x7f2cf40b0d00, service=..., path=..., interface=..., name=..., argumentMatch=..., signature=..., receiver=0x7f2cf40ceaa0, slot=0x7f2d1cf3ff80 "1_q_serviceOwnerChanged(QString,QString,QString)") at /home/kde-devel/src/qt/src/dbus/qdbusconnection.cpp:623 #14 0x00007f2d1cf1158b in QDBusAbstractInterface (this=0x7f2cf40ceaa0, service=..., path=..., interface=0x7f2d1cf3cb9e "org.freedesktop.DBus", con=..., parent=0x1c72f20) at /home/kde-devel/src/qt/src/dbus/qdbusabstractinterface.cpp:317 #15 0x00007f2d1cef47ef in QDBusConnectionInterface (this=0x7f2cf40ceaa0, connection=..., parent=0x1c72f20) at /home/kde-devel/src/qt/src/dbus/qdbusconnectioninterface.cpp:164 #16 0x00007f2d1cef1e7a in QDBusConnectionPrivate::setBusService (this=0x1c72f20, connection=...) at /home/kde-devel/src/qt/src/dbus/qdbusconnection.cpp:1003 #17 0x00007f2d1cef0475 in QDBusConnection::connectToBus (type=QDBusConnection::SessionBus, name=...) at /home/kde-devel/src/qt/src/dbus/qdbusconnection.cpp:349 #18 0x00007f2d035b917d in newConnection (this=0x7f2cf4070100) at /home/kde-devel/src/KDE/kdelibs/nepomuk/query/queryserviceclient.cpp:56 #19 0x00007f2d035bb272 in Private (this=0x1b7ab20) at /home/kde-devel/src/KDE/kdelibs/nepomuk/query/queryserviceclient.cpp:97 #20 0x00007f2d035b9c0a in QueryServiceClient (this=0x1bc5120, parent=0x7f2cfc95ea80) at /home/kde-devel/src/KDE/kdelibs/nepomuk/query/queryserviceclient.cpp:160 #21 0x00007f2d03a8ef21 in QueryClientWrapper (this=0x7f2cfc95ea80, runner=0x1ab55c0, context=0x7f2cf40b4458) at /home/kde-devel/src/KDE/kdebase/workspace/plasma/generic/runners/nepomuksearch/queryclientwrapper.cpp:55 #22 0x00007f2d03a8cc75 in Nepomuk::SearchRunner::match (this=0x1ab55c0, context=...) at /home/kde-devel/src/KDE/kdebase/workspace/plasma/generic/runners/nepomuksearch/nepomuksearchrunner.cpp:108 #23 0x00007f2d1f65c34d in Plasma::AbstractRunner::performMatch (this=0x1ab55c0, localContext=...) at /home/kde-devel/src/KDE/kdelibs/plasma/abstractrunner.cpp:117 #24 0x00007f2d1f712b13 in Plasma::FindMatchesJob::run (this=0x7f2cf40b4440) at /home/kde-devel/src/KDE/kdelibs/plasma/private/runnerjobs.cpp:159 #25 0x00007f2d1f32591b in ThreadWeaver::JobRunHelper::runTheJob (this=0x7f2cfc95ecb0, th=0x1960670, job=0x7f2cf40b4440) at /home/kde-devel/src/KDE/kdelibs/threadweaver/Weaver/Job.cpp:106 #26 0x00007f2d1f325b8b in ThreadWeaver::Job::execute (this=0x7f2cf40b4440, th=0x1960670) at /home/kde-devel/src/KDE/kdelibs/threadweaver/Weaver/Job.cpp:135 #27 0x00007f2d1f324ae0 in ThreadWeaver::ThreadRunHelper::run (this=0x7f2cfc95ed80, parent=0x189e170, th=0x1960670) at /home/kde-devel/src/KDE/kdelibs/threadweaver/Weaver/Thread.cpp:95 #28 0x00007f2d1f324e2f in ThreadWeaver::Thread::run (this=0x1960670) at /home/kde-devel/src/KDE/kdelibs/threadweaver/Weaver/Thread.cpp:142 #29 0x00007f2d1ca767f0 in QThreadPrivate::start (arg=0x1960670) at /home/kde-devel/src/qt/src/corelib/thread/qthread_unix.cpp:248 #30 0x00007f2d1c7ca81a in start_thread () from /lib/libpthread.so.0 #31 0x00007f2d1a7eec7d in clone () from /lib/libc.so.6 #32 0x0000000000000000 in ?? () Thread 3 (Thread 0x7f2cfc15e710 (LWP 24866)): [threadweaver waiting for jobs] Thread 2 (Thread 0x7f2cfb95d710 (LWP 24867)): [threadweaver waiting for jobs] Thread 1 (Thread 0x7f2d2246c780 (LWP 24854)): #0 0x00007f2d13d7f984 in _dbus_connection_lock () from /usr/lib/libdbus-1.so.3 #1 0x00007f2d13d9120d in _dbus_pending_call_get_connection_and_lock () from /usr/lib/libdbus-1.so.3 #2 0x00007f2d13d8334e in reply_handler_timeout () from /usr/lib/libdbus-1.so.3 #3 0x00007f2d1cef74c3 in q_dbus_timeout_handle (timeout=0x1c41960) at /home/kde-devel/src/qt/src/dbus/qdbus_symbols_p.h:172 #4 0x00007f2d1cefc3da in QDBusConnectionPrivate::timerEvent (this=0x1699060, e=0x7fff7e195500) at /home/kde-devel/src/qt/src/dbus/qdbusintegrator.cpp:1035 #5 0x00007f2d1cb9a721 in QObject::event (this=0x1699060, e=0x7fff7e195500) at /home/kde-devel/src/qt/src/corelib/kernel/qobject.cpp:1204 #6 0x00007f2d1d881bea in QApplicationPrivate::notify_helper (this=0x16adc50, receiver=0x1699060, e=0x7fff7e195500) at /home/kde-devel/src/qt/src/gui/kernel/qapplication.cpp:4297 #7 0x00007f2d1d87f242 in QApplication::notify (this=0x16a13f0, receiver=0x1699060, e=0x7fff7e195500) at /home/kde-devel/src/qt/src/gui/kernel/qapplication.cpp:3701 #8 0x00007f2d1e9df487 in KApplication::notify (this=0x16a13f0, receiver=0x1699060, event=0x7fff7e195500) at /home/kde-devel/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302 #9 0x00007f2d1cb83b55 in QCoreApplication::notifyInternal (this=0x16a13f0, receiver=0x1699060, event=0x7fff7e195500) at /home/kde-devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:704 #10 0x00007f2d2091dea9 in QCoreApplication::sendEvent(QObject*, QEvent*) () from /home/kde-devel/qt/lib/libQtWebKit.so.4 #11 0x00007f2d1cbbcd77 in QTimerInfoList::activateTimers (this=0x16b2d40) at /home/kde-devel/src/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:603 #12 0x00007f2d1cbb8830 in timerSourceDispatch (source=0x16b2ce0) at /home/kde-devel/src/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:184 #13 0x00007f2d1715326e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #14 0x00007f2d17156c28 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0 #15 0x00007f2d17156d50 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #16 0x00007f2d1cbb9a8d in QEventDispatcherGlib::processEvents (this=0x1658f80, flags=...) at /home/kde-devel/src/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:412 #17 0x00007f2d1d950c84 in QGuiEventDispatcherGlib::processEvents (this=0x1658f80, flags=...) at /home/kde-devel/src/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204 #18 0x00007f2d1cb81370 in QEventLoop::processEvents (this=0x7fff7e195870, flags=...) at /home/kde-devel/src/qt/src/corelib/kernel/qeventloop.cpp:149 #19 0x00007f2d1cb814c4 in QEventLoop::exec (this=0x7fff7e195870, flags=...) at /home/kde-devel/src/qt/src/corelib/kernel/qeventloop.cpp:197 #20 0x00007f2d1cb8421a in QCoreApplication::exec () at /home/kde-devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:981 #21 0x00007f2d1d87edc0 in QApplication::exec () at /home/kde-devel/src/qt/src/gui/kernel/qapplication.cpp:3576 #22 0x00007f2d22048547 in kdemain (argc=1, argv=0x7fff7e195b58) at /home/kde-devel/src/KDE/kdebase/workspace/krunner/main.cpp:65 #23 0x0000000000400936 in main (argc=1, argv=0x7fff7e195b58) at /home/kde-devel/build/KDE/kdebase/workspace/krunner/krunner_dummy.cpp:3 Console output (I ran KRunner with QDBUS_DEBUG=1): QDBusConnectionPrivate(0x1699060) got message reply (blocking): QDBusMessage(type=MethodReturn, service="org.freedesktop.DBus", signature="b", contents=(true) ) QDBusConnectionPrivate(0x1699060) got message: QDBusMessage(type=Signal, service=":1.8", path="/kglobalaccel", interface="org.kde.KGlobalAccel", member="invokeAction", signature="asx", contents=({"krunner", "Run Command", "Run Command Interface", "Run Command"}, 27232089) ) QDBusConnectionPrivate(0x1699060) got message: QDBusMessage(type=Signal, service="org.freedesktop.DBus", path="/org/freedesktop/DBus", interface="org.freedesktop.DBus", member="NameOwnerChanged", signature="sss", contents=(":1.845", "", ":1.845") ) QDBusConnectionPrivate(0x1699060) got message: QDBusMessage(type=Signal, service="org.freedesktop.DBus", path="/org/freedesktop/DBus", interface="org.freedesktop.DBus", member="NameOwnerChanged", signature="sss", contents=(":1.845", ":1.845", "") ) Removing rule: type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.mpris.amarok' QDBusConnectionPrivate(0x1c72f20) sending message (blocking): QDBusMessage(type=MethodCall, service="org.freedesktop.DBus", path="/org/freedesktop/DBus", interface="org.freedesktop.DBus", member="GetNameOwner", signature="", contents=("org.freedesktop.DBus") ) QDBusConnectionPrivate(0x1c72f20) got message reply (blocking): QDBusMessage(type=MethodReturn, service="org.freedesktop.DBus", signature="s", contents=("org.freedesktop.DBus") ) Adding rule: type='signal',sender='org.freedesktop.DBus',member='NameAcquired' Adding rule: type='signal',sender='org.freedesktop.DBus',member='NameLost' QDBusConnectionPrivate(0x1c72f20) : connected successfully Adding rule: type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.DBus' Note that I get frequent freezes with similar backtraces when I attach GDB, and these seem to be related to Nepomuk as well (see Bug 203668). This could be related to bug 224102 or bug 230520 (but those don't have Nepomuk/Soprano calls; only dbus stuff) *** Bug 231958 has been marked as a duplicate of this bug. *** *** Bug 234878 has been marked as a duplicate of this bug. *** *** Bug 234956 has been marked as a duplicate of this bug. *** *** Bug 235526 has been marked as a duplicate of this bug. *** *** Bug 235578 has been marked as a duplicate of this bug. *** *** Bug 235803 has been marked as a duplicate of this bug. *** *** Bug 235940 has been marked as a duplicate of this bug. *** *** Bug 236141 has been marked as a duplicate of this bug. *** *** Bug 237690 has been marked as a duplicate of this bug. *** *** Bug 237882 has been marked as a duplicate of this bug. *** *** Bug 238271 has been marked as a duplicate of this bug. *** *** Bug 238320 has been marked as a duplicate of this bug. *** *** Bug 238425 has been marked as a duplicate of this bug. *** Created attachment 43801 [details]
New crash information added by DrKonqi
krunner crashes when i use it to search some folder indexed with nepomuk/strigi
*** Bug 235914 has been marked as a duplicate of this bug. *** Created attachment 47605 [details]
New crash information added by DrKonqi
krunner crashed after starting two applications using it. nepomuk is disabled.
This is, in fact, a D-Bus threading issue. libdbus-1 claims to be more thread-safe than it is, and both Nepomuk and KRunner make heavy use of threads, and make D-Bus calls from those threads. See http://lists.kde.org/?t=127496858200006&r=1&w=2 and https://bugs.freedesktop.org/show_bug.cgi?id=17754 for more information. There is a patch for libdbus-1 (http://lists.freedesktop.org/archives/dbus/2008-January/009100.html) which should hopefully make it into dbus-1.4.0 (http://lists.kde.org/?l=kde-core-devel&m=127499327531026&w=2), but that is still some way off. Note that if you run Arch Linux, you can replace dbus-core with a patched version (http://aur.archlinux.org/packages.php?ID=37728), but I provide no guarantee that it won't break non-KDE software. I'm resolving this bug as UPSTREAM, since the correct place for the fix is in D-Bus; even though Nepomuk in KDE 4.5 includes a workaround for the issues, it is not very effective (I still get crashes without a patched libdbus-1). *** Bug 240490 has been marked as a duplicate of this bug. *** *** Bug 238804 has been marked as a duplicate of this bug. *** |