Bug 308653 - kwin crashed when trying to send window to another desktop
Summary: kwin crashed when trying to send window to another desktop
Status: RESOLVED FIXED
Alias: None
Product: plasma-activities
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 12:25 UTC by kavol
Modified: 2016-02-28 10:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2012-10-19 12:25:31 UTC
Application: kwin (4.9.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.2
Operating System: Linux 3.6.1-1.fc17.x86_64 x86_64
Distribution: "Fedora release 17 (Beefy Miracle)"

-- Information about the crash:
- What I was doing when the application crashed:

I've just opened the window menu and wanted to send the window to another desktop; it crashed after choosing the menu item right before clicking to execute the order.

-- Backtrace:
Application: KWin (kwin), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
39		cmpq $-4095, %rax	/* Check %rax for error.  */
[Current thread is 1 (Thread 0x7f883c3c6880 (LWP 1599))]

Thread 4 (Thread 0x7f8823adb700 (LWP 1611)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x0000003c05584a87 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x3c05891920) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x0000003c05584ab9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003b36407d14 in start_thread (arg=0x7f8823adb700) at pthread_create.c:309
#4  0x0000003b35cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f8830bd5700 (LWP 5896)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218
#1  0x0000003bfec7ba47 in wait (time=30000, this=0xc87210) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xc8ae38, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x0000003bfec6f36f in QThreadPoolThread::run (this=0xb75760) at concurrent/qthreadpool.cpp:141
#4  0x0000003bfec7b5eb in QThreadPrivate::start (arg=0xb75760) at thread/qthread_unix.cpp:307
#5  0x0000003b36407d14 in start_thread (arg=0x7f8830bd5700) at pthread_create.c:309
#6  0x0000003b35cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f8831e07700 (LWP 5897)):
[KCrash Handler]
#6  0x0000003b35c35925 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003b35c370d8 in __GI_abort () at abort.c:91
#8  0x0000003b40c30035 in _dbus_abort () at dbus-sysdeps.c:94
#9  0x0000003b40c270c5 in _dbus_warn_check_failed (format=0x3b40c36290 "arguments to %s() were incorrect, assertion \"%s\" failed in file %s line %d.\nThis is normally a bug in some application using the D-Bus library.\n") at dbus-internals.c:289
#10 0x0000003c00c1c4d6 in q_dbus_pending_call_block (pending=<optimized out>) at qdbus_symbols_p.h:313
#11 QDBusConnectionPrivate::waitForFinished (this=0xb21ce0, pcall=0x7f882c0038e0) at qdbusintegrator.cpp:1778
#12 0x0000003c00c5b727 in QDBusPendingCallPrivate::waitForFinished (this=0x7f882c0038e0) at qdbuspendingcall.cpp:245
#13 0x0000003c0e807f22 in KActivities::Consumer::listActivities(KActivities::Info::State) const () from /lib64/libkactivities.so.6
#14 0x0000003c0b83cb3d in KWin::fetchActivityList (controller=<optimized out>, target=0xc84a00, running=<optimized out>) at /usr/src/debug/kde-workspace-4.9.2/kwin/workspace.cpp:1456
#15 0x0000003c0b8478eb in QtConcurrent::StoredFunctorCall3<QPair<QStringList*, QStringList>, QPair<QStringList*, QStringList> (*)(KActivities::Controller*, QStringList*, bool), KActivities::Controller*, QStringList*, bool>::runFunctor (this=0x1326210) at /usr/include/QtCore/qtconcurrentstoredfunctioncall.h:673
#16 0x0000003c0b84b916 in QtConcurrent::RunFunctionTask<QPair<QStringList*, QStringList> >::run (this=0x1326210) at /usr/include/QtCore/qtconcurrentrunbase.h:106
#17 0x0000003bfec6f27d in QThreadPoolThread::run (this=0xc93e00) at concurrent/qthreadpool.cpp:107
#18 0x0000003bfec7b5eb in QThreadPrivate::start (arg=0xc93e00) at thread/qthread_unix.cpp:307
#19 0x0000003b36407d14 in start_thread (arg=0x7f8831e07700) at pthread_create.c:309
#20 0x0000003b35cf167d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f883c3c6880 (LWP 1599)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
#1  0x0000003bfec7a0d4 in _q_futex (timeout=0x0, val=2, op=0, addr=0xb5d060, addr2=<optimized out>, val2=<optimized out>) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0xb5d060, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x0000003bfec762e5 in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x0000003c00c1bab5 in QDBusMutexLocker (m=0xb21d48, this=<synthetic pointer>, s=0xb21ce0, a=DoDispatchAction) at qdbusthreaddebug_p.h:188
#5  QDBusDispatchLocker (s=0xb21ce0, a=DoDispatchAction, this=<synthetic pointer>) at qdbusthreaddebug_p.h:203
#6  QDBusConnectionPrivate::doDispatch (this=0xb21ce0) at qdbusintegrator.cpp:1127
#7  0x0000003bfed8acbe in QObject::event (this=0xb21ce0, e=<optimized out>) at kernel/qobject.cpp:1195
#8  0x0000003bff3ca37c in QApplicationPrivate::notify_helper (this=this@entry=0xb66400, receiver=receiver@entry=0xb21ce0, e=e@entry=0x7f88280013f0) at kernel/qapplication.cpp:4551
#9  0x0000003bff3ce7fa in QApplication::notify (this=0x7fffb38fa130, receiver=0xb21ce0, e=0x7f88280013f0) at kernel/qapplication.cpp:4412
#10 0x0000003c018468a6 in KApplication::notify (this=0x7fffb38fa130, receiver=0xb21ce0, event=0x7f88280013f0) at /usr/src/debug/kdelibs-4.9.2/kdeui/kernel/kapplication.cpp:311
#11 0x0000003bfed763be in QCoreApplication::notifyInternal (this=0x7fffb38fa130, receiver=receiver@entry=0xb21ce0, event=event@entry=0x7f88280013f0) at kernel/qcoreapplication.cpp:915
#12 0x0000003bfed79e71 in sendEvent (event=0x7f88280013f0, receiver=0xb21ce0) at kernel/qcoreapplication.h:231
#13 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xb19360) at kernel/qcoreapplication.cpp:1539
#14 0x0000003bff46ae2c in sendPostedEvents () at ../../src/corelib/kernel/qcoreapplication.h:236
#15 QEventDispatcherX11::processEvents (this=0xb1ac40, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#16 0x0000003bfed7510f in QEventLoop::processEvents (this=this@entry=0x7fffb38f8940, flags=...) at kernel/qeventloop.cpp:149
#17 0x0000003bfed75398 in QEventLoop::exec (this=0x7fffb38f8940, flags=...) at kernel/qeventloop.cpp:204
#18 0x0000003bff800e55 in QMenu::exec (this=0xefc280, p=..., action=0x0) at widgets/qmenu.cpp:2113
#19 0x0000003c0b88bc18 in showWindowMenu (cl=<optimized out>, pos=..., this=0xc849c0) at /usr/src/debug/kde-workspace-4.9.2/kwin/useractions.cpp:1615
#20 KWin::Workspace::showWindowMenu (this=0xc849c0, pos=..., cl=<optimized out>) at /usr/src/debug/kde-workspace-4.9.2/kwin/useractions.cpp:1591
#21 0x0000003c0de1460c in KCommonDecoration::doShowWindowMenu (this=this@entry=0x130c2f0) at /usr/src/debug/kde-workspace-4.9.2/kwin/libkdecorations/kcommondecoration.cpp:755
#22 0x0000003c0de15d2b in KCommonDecoration::menuButtonPressed (this=0x130c2f0) at /usr/src/debug/kde-workspace-4.9.2/kwin/libkdecorations/kcommondecoration.cpp:719
#23 0x0000003c0de15ec5 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/kde-workspace-4.9.2/x86_64-redhat-linux-gnu/kwin/libkdecorations/kcommondecoration.moc:92
#24 KCommonDecoration::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kde-workspace-4.9.2/x86_64-redhat-linux-gnu/kwin/libkdecorations/kcommondecoration.moc:78
#25 0x0000003bfed8cb6f in QMetaObject::activate (sender=0xe9b4e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#26 0x0000003bff7828a1 in QAbstractButtonPrivate::emitPressed (this=this@entry=0xfa6b70) at widgets/qabstractbutton.cpp:562
#27 0x0000003bff782a6c in QAbstractButton::mousePressEvent (this=0xe9b4e0, e=0x7fffb38f8c10) at widgets/qabstractbutton.cpp:1098
#28 0x0000003c0de1370d in KCommonDecorationButton::mousePressEvent (this=0xe9b4e0, e=<optimized out>) at /usr/src/debug/kde-workspace-4.9.2/kwin/libkdecorations/kcommondecoration.cpp:1045
#29 0x0000003bff419f33 in QWidget::event (this=0xe9b4e0, event=0x7fffb38f9450) at kernel/qwidget.cpp:8367
#30 0x0000003bff3ca37c in QApplicationPrivate::notify_helper (this=this@entry=0xb66400, receiver=receiver@entry=0xe9b4e0, e=e@entry=0x7fffb38f9450) at kernel/qapplication.cpp:4551
#31 0x0000003bff3cf05b in QApplication::notify (this=<optimized out>, receiver=0xe9b4e0, e=0x7fffb38f9450) at kernel/qapplication.cpp:4094
#32 0x0000003c018468a6 in KApplication::notify (this=0x7fffb38fa130, receiver=0xe9b4e0, event=0x7fffb38f9450) at /usr/src/debug/kdelibs-4.9.2/kdeui/kernel/kapplication.cpp:311
#33 0x0000003bfed763be in QCoreApplication::notifyInternal (this=0x7fffb38fa130, receiver=0xe9b4e0, event=0x7fffb38f9450) at kernel/qcoreapplication.cpp:915
#34 0x0000003bff3cb1bb in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#35 QApplicationPrivate::sendMouseEvent (receiver=0xe9b4e0, event=0x7fffb38f9450, alienWidget=0x0, nativeWidget=0xe9b4e0, buttonDown=0x3bffe9dd68, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3162
#36 0x0000003bff445724 in QETWidget::translateMouseEvent (this=this@entry=0xe9b4e0, event=event@entry=0x7fffb38f9bd0) at kernel/qapplication_x11.cpp:4523
#37 0x0000003bff4444b1 in QApplication::x11ProcessEvent (this=0x7fffb38fa130, event=0x7fffb38f9bd0) at kernel/qapplication_x11.cpp:3646
#38 0x0000003bff46af69 in QEventDispatcherX11::processEvents (this=0xb1ac40, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#39 0x0000003bfed7510f in QEventLoop::processEvents (this=this@entry=0x7fffb38f9e40, flags=...) at kernel/qeventloop.cpp:149
#40 0x0000003bfed75398 in QEventLoop::exec (this=0x7fffb38f9e40, flags=...) at kernel/qeventloop.cpp:204
#41 0x0000003bfed7a188 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#42 0x0000003c0b862d14 in kdemain (argc=3, argv=0x7fffb38fa278) at /usr/src/debug/kde-workspace-4.9.2/kwin/main.cpp:545
#43 0x0000003b35c21735 in __libc_start_main (main=0x4008a0 <main(int, char**)>, argc=3, ubp_av=0x7fffb38fa278, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffb38fa268) at libc-start.c:226
#44 0x00000000004008d1 in _start ()

Possible duplicates by query: bug 307445, bug 300246.

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-10-19 15:21:38 UTC
clicking through the pot. dupes, this seems fedora/64 related.
bug is likely somewhere in Qt or dbus and likely triggered by the pending activity related dbus calls (hopefully resolved by kactivity updates)
Comment 2 Martin Flöser 2012-12-29 09:04:30 UTC
@Ivan: please check whether that dbus error in KActivities still applies and close if not
Comment 3 Ivan Čukić 2012-12-29 09:33:57 UTC
If kwin is using a single instance of Consumer (and it seems to do so) the call to waitForFinished should never happen.

Though, there might be some other issue since kactivities is not designed to be thread-safe. Closing. If it happens again iwth the 4.10, please reopen.