Bug 241594

Summary: KRunner crash in D-Bus code (dbus threading issues) [_dbus_connection_lock, _dbus_pending_call_get_connection_and_lock, reply_handler_timeout, q_dbus_timeout_handle]
Product: [Plasma] krunner Reporter: Евгений Цвигун <utgarda>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: crash CC: 11fabio11, alansteixeira, andresbajotierra, baytugan, bill-bugs.kde.org, bill_wayson, buijert, chuckeroony20, claudio.f.gil, cristian.traum, dushysmind, frank78ac, ihochmuth, infrabit, kde-bugreport, kranthi.t2000, ledukhovski, lenz99, linuxmatt, lthuns, mail, mail, nn.dm55, peregrine, pmiossec, rsedwardian, sanya10, smartnp81, tathagatab, tech9iner+BugsKDEorg, tilman.vogel, tom.cook, tom, torbjoern.k, valir, webmaster, wg3w, xjakub
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: DBus 1.3.1 and later
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Евгений Цвигун 2010-06-13 01:12:32 UTC
Application: krunner (0.1)
KDE Platform Version: 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)) "release 3"
Qt Version: 4.6.3
Operating System: Linux 2.6.31.12-0.2-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
Run "zypper dist-upgrade" and reboot. The panel disappeared, so I tried to add a new default panel, and saw a crash report window.

- Unusual behavior I noticed:
KDE panel disappeared

-- Backtrace:
Application: Run Command Interface (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f3868df4750 (LWP 3073))]

Thread 5 (Thread 0x7f38499ec910 (LWP 3189)):
#0  0x00007f3867737049 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f38679c2b5b in wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f385d9c9be6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x84dbf0, th=0x67d3f0) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f385d9cbf5b in ThreadWeaver::WorkingHardState::applyForWork (this=0x834a30, th=0x67d3f0) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f385d9ca44f in ThreadWeaver::ThreadRunHelper::run (this=0x7f38499ec050, parent=0x84dbf0, th=0x67d3f0) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f385d9ca8a8 in ThreadWeaver::Thread::run (this=0x67d3f0) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f38679c1b15 in QThreadPrivate::start (arg=0x67d3f0) at thread/qthread_unix.cpp:248
#8  0x00007f386773265d in start_thread () from /lib64/libpthread.so.0
#9  0x00007f3866524e1d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f3846a7d910 (LWP 3190)):
#0  0x00007f3867737049 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f38679c2b5b in wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f385d9c9be6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x84dbf0, th=0x982050) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f385d9cbf5b in ThreadWeaver::WorkingHardState::applyForWork (this=0x834a30, th=0x982050) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f385d9ca44f in ThreadWeaver::ThreadRunHelper::run (this=0x7f3846a7d050, parent=0x84dbf0, th=0x982050) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f385d9ca8a8 in ThreadWeaver::Thread::run (this=0x982050) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f38679c1b15 in QThreadPrivate::start (arg=0x982050) at thread/qthread_unix.cpp:248
#8  0x00007f386773265d in start_thread () from /lib64/libpthread.so.0
#9  0x00007f3866524e1d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f384627c910 (LWP 3191)):
#0  0x00007f3867737049 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f38679c2b5b in wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f385d9c9be6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x84dbf0, th=0xa5f1b0) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f385d9cbf5b in ThreadWeaver::WorkingHardState::applyForWork (this=0x834a30, th=0xa5f1b0) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f385d9ca44f in ThreadWeaver::ThreadRunHelper::run (this=0x7f384627c050, parent=0x84dbf0, th=0xa5f1b0) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f385d9ca8a8 in ThreadWeaver::Thread::run (this=0xa5f1b0) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f38679c1b15 in QThreadPrivate::start (arg=0xa5f1b0) at thread/qthread_unix.cpp:248
#8  0x00007f386773265d in start_thread () from /lib64/libpthread.so.0
#9  0x00007f3866524e1d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3845a7b910 (LWP 3192)):
#0  0x00007f3867737049 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f38679c2b5b in wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f385d9c9be6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x84dbf0, th=0x6ef710) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f385d9cbf5b in ThreadWeaver::WorkingHardState::applyForWork (this=0x834a30, th=0x6ef710) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f385d9ca44f in ThreadWeaver::ThreadRunHelper::run (this=0x7f3845a7b050, parent=0x84dbf0, th=0x6ef710) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f385d9ca8a8 in ThreadWeaver::Thread::run (this=0x6ef710) at /usr/src/debug/kdelibs-4.4.85/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f38679c1b15 in QThreadPrivate::start (arg=0x6ef710) at thread/qthread_unix.cpp:248
#8  0x00007f386773265d in start_thread () from /lib64/libpthread.so.0
#9  0x00007f3866524e1d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3868df4750 (LWP 3073)):
[KCrash Handler]
#6  _dbus_connection_lock (connection=0x4069d40000000000) at dbus-connection.c:355
#7  0x00007f38622c4bfd in _dbus_pending_call_get_connection_and_lock (pending=0xa81420) at dbus-pending-call.c:307
#8  0x00007f38622b6d3e in reply_handler_timeout (data=0x4069d40000000000) at dbus-connection.c:3158
#9  0x00007f3864ee8ff7 in q_dbus_timeout_handle (timeout=<value optimized out>) at qdbus_symbols_p.h:172
#10 QDBusConnectionPrivate::timerEvent (timeout=<value optimized out>) at qdbusintegrator.cpp:1035
#11 0x00007f3867ac11a3 in QObject::event (this=0x672960, e=0x7fffb2ea84f0) at kernel/qobject.cpp:1204
#12 0x00007f3866c7835c in QApplicationPrivate::notify_helper (this=0x67e450, receiver=0x672960, e=0x7fffb2ea84f0) at kernel/qapplication.cpp:4302
#13 0x00007f3866c7e93b in QApplication::notify (this=0x67dff0, receiver=0x672960, e=0x7fffb2ea84f0) at kernel/qapplication.cpp:4185
#14 0x00007f38687ff756 in KApplication::notify (this=0x67dff0, receiver=0x672960, event=0x7fffb2ea84f0) at /usr/src/debug/kdelibs-4.4.85/kdeui/kernel/kapplication.cpp:302
#15 0x00007f3867ab167c in QCoreApplication::notifyInternal (this=0x67dff0, receiver=0x672960, event=0x7fffb2ea84f0) at kernel/qcoreapplication.cpp:726
#16 0x00007f3867ade435 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#17 QTimerInfoList::activateTimers (event=<value optimized out>, receiver=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:617
#18 0x00007f3867adb008 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#19 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#20 0x00007f386363fdee in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f38636437b8 in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f38636438e0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f3867adacd3 in QEventDispatcherGlib::processEvents (this=0x67dab0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#24 0x00007f3866d26b2e in QGuiEventDispatcherGlib::processEvents (this=0x4069d40000000000, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#25 0x00007f3867aaff92 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#26 0x00007f3867ab036c in QEventLoop::exec (this=0x7fffb2ea8840, flags=) at kernel/qeventloop.cpp:201
#27 0x00007f3867ab501b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#28 0x00007f38591c7f24 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.4.85/krunner/main.cpp:65
#29 0x0000000000407a18 in _start ()

Possible duplicates by query: bug 241017, bug 240904, bug 240756, bug 240655, bug 240490.

Reported using DrKonqi
Comment 1 Frank Reininghaus 2010-09-25 13:11:09 UTC
*** Bug 241711 has been marked as a duplicate of this bug. ***
Comment 2 Frank Reininghaus 2010-09-25 13:11:20 UTC
*** Bug 242038 has been marked as a duplicate of this bug. ***
Comment 3 Frank Reininghaus 2010-09-25 13:11:32 UTC
*** Bug 243104 has been marked as a duplicate of this bug. ***
Comment 4 Frank Reininghaus 2010-09-25 13:12:30 UTC
*** Bug 243227 has been marked as a duplicate of this bug. ***
Comment 5 Frank Reininghaus 2010-09-25 13:12:41 UTC
*** Bug 243254 has been marked as a duplicate of this bug. ***
Comment 6 Frank Reininghaus 2010-09-25 13:12:50 UTC
*** Bug 243628 has been marked as a duplicate of this bug. ***
Comment 7 Frank Reininghaus 2010-09-25 13:13:00 UTC
*** Bug 243664 has been marked as a duplicate of this bug. ***
Comment 8 Frank Reininghaus 2010-09-25 13:13:18 UTC
*** Bug 248575 has been marked as a duplicate of this bug. ***
Comment 9 Frank Reininghaus 2010-09-25 13:13:30 UTC
*** Bug 250669 has been marked as a duplicate of this bug. ***
Comment 10 Frank Reininghaus 2010-09-25 13:13:42 UTC
*** Bug 250678 has been marked as a duplicate of this bug. ***
Comment 11 Frank Reininghaus 2010-09-25 13:14:09 UTC
*** Bug 251680 has been marked as a duplicate of this bug. ***
Comment 12 Frank Reininghaus 2010-09-25 13:15:15 UTC
Thanks for the bug reports! This might be a D-bus issue which is fixed in D-Bus 1.3.1 and later:

http://bugreports.qt.nokia.com/browse/QTBUG-7475
https://bugs.freedesktop.org/show_bug.cgi?id=17754

Dolphin reports which look similar:

https://bugs.kde.org/show_bug.cgi?id=208921
https://bugs.kde.org/show_bug.cgi?id=226725
Comment 13 Tilman Vogel 2010-10-07 12:08:01 UTC
Created attachment 52307 [details]
New crash information added by DrKonqi

This seems to be a race condition.

The crash happens at qdbusintegrator.cpp:1035:
1034            if (timeout)
1035                q_dbus_timeout_handle(timeout);
Using gdb shows that timeout == 0 inside the call to q_dbus_timeout_handle(), even though timeout != 0 is a pre-condition for the call.
Comment 14 Frank Reininghaus 2010-10-07 12:15:49 UTC
*** Bug 253354 has been marked as a duplicate of this bug. ***
Comment 15 Gunther Piez 2010-10-07 13:52:34 UTC
Additional information:

For me, this crashed happens delayed.

This means: Press Alt-F2, type/start something, wait a few seconds, krunner crashes.
Comment 16 Marek Paśnikowski 2010-10-07 20:40:23 UTC
Created attachment 52321 [details]
New crash information added by DrKonqi

Just random crash. The application started succesfully.
Comment 17 cristian.traum 2010-10-12 19:34:01 UTC
Created attachment 52455 [details]
New crash information added by DrKonqi

krunner sometimes crashes right after booting up.
Comment 18 Dario Andres 2010-11-20 14:12:57 UTC
[Comment from a bug triager]
Closing as UPSTREAM as it was confirmed that the new DBus (1.3.1 or later) fixes those issues. Merging here all the other related reports.
Thanks
Comment 19 Dario Andres 2010-11-20 14:13:21 UTC
*** Bug 246319 has been marked as a duplicate of this bug. ***
Comment 20 Dario Andres 2010-11-20 14:13:32 UTC
*** Bug 250303 has been marked as a duplicate of this bug. ***
Comment 21 Dario Andres 2010-11-20 14:13:37 UTC
*** Bug 249065 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2010-11-20 14:16:58 UTC
*** Bug 256828 has been marked as a duplicate of this bug. ***
Comment 23 Dario Andres 2010-11-20 14:17:02 UTC
*** Bug 254010 has been marked as a duplicate of this bug. ***
Comment 24 Dario Andres 2010-11-20 14:17:05 UTC
*** Bug 254605 has been marked as a duplicate of this bug. ***
Comment 25 Dario Andres 2010-11-20 14:17:08 UTC
*** Bug 254999 has been marked as a duplicate of this bug. ***
Comment 26 Dario Andres 2010-11-20 14:17:14 UTC
*** Bug 255378 has been marked as a duplicate of this bug. ***
Comment 27 Dario Andres 2010-11-20 14:17:16 UTC
*** Bug 255664 has been marked as a duplicate of this bug. ***
Comment 28 Dario Andres 2010-11-20 14:17:18 UTC
*** Bug 255687 has been marked as a duplicate of this bug. ***
Comment 29 Dario Andres 2010-11-20 14:17:24 UTC
*** Bug 255884 has been marked as a duplicate of this bug. ***
Comment 30 Dario Andres 2010-11-20 14:17:25 UTC
*** Bug 257388 has been marked as a duplicate of this bug. ***
Comment 31 Dario Andres 2010-11-20 14:20:03 UTC
*** Bug 255359 has been marked as a duplicate of this bug. ***
Comment 32 Dario Andres 2010-11-20 14:20:18 UTC
*** Bug 250396 has been marked as a duplicate of this bug. ***
Comment 33 Dario Andres 2010-11-20 14:20:29 UTC
*** Bug 244830 has been marked as a duplicate of this bug. ***
Comment 34 Dario Andres 2010-12-13 20:06:30 UTC
*** Bug 243309 has been marked as a duplicate of this bug. ***
Comment 35 Dario Andres 2010-12-13 20:07:18 UTC
*** Bug 252833 has been marked as a duplicate of this bug. ***
Comment 36 Dario Andres 2010-12-22 21:43:05 UTC
*** Bug 260957 has been marked as a duplicate of this bug. ***
Comment 37 Dario Andres 2010-12-22 21:43:06 UTC
*** Bug 260944 has been marked as a duplicate of this bug. ***
Comment 38 Matthias Fuchs 2011-01-16 17:06:11 UTC
*** Bug 262309 has been marked as a duplicate of this bug. ***
Comment 39 Dario Andres 2011-01-29 14:02:31 UTC
*** Bug 262565 has been marked as a duplicate of this bug. ***
Comment 40 Dario Andres 2011-01-29 14:02:46 UTC
*** Bug 263054 has been marked as a duplicate of this bug. ***
Comment 41 Dario Andres 2011-01-29 14:02:48 UTC
*** Bug 263706 has been marked as a duplicate of this bug. ***
Comment 42 Dario Andres 2011-01-29 14:03:18 UTC
*** Bug 264379 has been marked as a duplicate of this bug. ***
Comment 43 Dario Andres 2011-03-08 19:56:24 UTC
*** Bug 266425 has been marked as a duplicate of this bug. ***
Comment 44 Jekyll Wu 2011-12-11 09:06:38 UTC
*** Bug 267164 has been marked as a duplicate of this bug. ***