Bug 341295

Summary: KWin from git keeps crashing
Product: [Plasma] kwin Reporter: Rohan Garg <rohan>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: cfeck, rohan
Priority: NOR Keywords: drkonqi
Version: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Rohan Garg 2014-11-26 16:36:30 UTC
Application: kwin_x11 (5.1.90)

Qt Version: 5.3.0
Operating System: Linux 3.16.0-24-generic x86_64
Distribution: Ubuntu 14.10

-- Information about the crash:
- What I was doing when the application crashed:
Using my desktop normally on a intel gpu, no special settings that I can think off the top of my head.
- Unusual behavior I noticed:
KWin crashed.
- Custom settings of the application:
Not that I can think of.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KWin (kwin_x11), signal: Illegal instruction
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f29a27c0800 (LWP 10009))]

Thread 3 (Thread 0x7f2981bc3700 (LWP 10012)):
#0  0x00007f29a21271c3 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f29a01ff3c1 in qt_safe_select (nfds=16, fdread=fdread@entry=0x7f2974000a78, fdwrite=fdwrite@entry=0x7f2974000d08, fdexcept=fdexcept@entry=0x7f2974000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007f29a01ffb93 in QEventDispatcherUNIX::select (this=this@entry=0x7f29740008c0, nfds=<optimized out>, readfds=readfds@entry=0x7f2974000a78, writefds=writefds@entry=0x7f2974000d08, exceptfds=exceptfds@entry=0x7f2974000f98, timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:328
#3  0x00007f29a0201012 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f29740008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:204
#4  0x00007f29a0201585 in QEventDispatcherUNIX::processEvents (this=0x7f29740008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:615
#5  0x00007f29a01aa042 in QEventLoop::exec (this=this@entry=0x7f2981bc2dc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007f299ff6e4a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:511
#7  0x00007f299ff732ee in QThreadPrivate::start (arg=0x128ab50) at thread/qthread_unix.cpp:345
#8  0x00007f29989c80a5 in start_thread (arg=0x7f2981bc3700) at pthread_create.c:309
#9  0x00007f29a212f84d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f2980840700 (LWP 10013)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f299e50fb34 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f299e50fb79 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f29989c80a5 in start_thread (arg=0x7f2980840700) at pthread_create.c:309
#4  0x00007f29a212f84d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f29a27c0800 (LWP 10009)):
[KCrash Handler]
#5  0x00007f29989d18b4 in _xbegin () at ../nptl/sysdeps/unix/sysv/linux/x86/hle.h:53
#6  __lll_timedlock_elision (futex=futex@entry=0x7f28f06d8008, adapt_count=adapt_count@entry=0x7f28f06d801c, t=0x7fffe498b590, private=128) at ../nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c:56
#7  0x00007f29989caf55 in pthread_mutex_timedlock (mutex=0x7f28f06d8008, abstime=0x7fffe498b590) at ../nptl/pthread_mutex_timedlock.c:103
#8  0x00007f299df12f0c in ?? () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#9  0x00007f299df11e4a in KSharedDataCache::find(QString const&, QByteArray*) const () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#10 0x00007f299d1557c5 in Plasma::Theme::findInCache(QString const&, QPixmap&, unsigned int) () from /usr/lib/x86_64-linux-gnu/libKF5Plasma.so.5
#11 0x00007f299d14f70d in ?? () from /usr/lib/x86_64-linux-gnu/libKF5Plasma.so.5
#12 0x00007f299d14fd91 in Plasma::Svg::paint(QPainter*, QRectF const&, QString const&) () from /usr/lib/x86_64-linux-gnu/libKF5Plasma.so.5
#13 0x00007f299d13fb37 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5Plasma.so.5
#14 0x00007f299d144e0b in ?? () from /usr/lib/x86_64-linux-gnu/libKF5Plasma.so.5
#15 0x00007f299d1455da in ?? () from /usr/lib/x86_64-linux-gnu/libKF5Plasma.so.5
#16 0x00007f299d146c31 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5Plasma.so.5
#17 0x00007f299d147caa in Plasma::FrameSvg::mask() const () from /usr/lib/x86_64-linux-gnu/libKF5Plasma.so.5
#18 0x00007f28f003f56d in ?? () from /usr/lib/x86_64-linux-gnu/libKF5PlasmaQuick.so.5
#19 0x00007f28f0041411 in PlasmaQuick::Dialog::componentComplete() () from /usr/lib/x86_64-linux-gnu/libKF5PlasmaQuick.so.5
#20 0x00007f29997d8ea7 in QQmlObjectCreator::finalize (this=0x1946660, interrupt=...) at qml/qqmlobjectcreator.cpp:1221
#21 0x00007f2999761147 in QQmlComponentPrivate::complete (enginePriv=0x128a470, state=0x18bf100) at qml/qqmlcomponent.cpp:932
#22 0x00007f2999761207 in QQmlComponentPrivate::completeCreate (this=0x18bf060) at qml/qqmlcomponent.cpp:968
#23 0x00007f2999763350 in completeCreate (this=0x18b7cd0) at qml/qqmlcomponent.cpp:961
#24 QQmlComponent::create (this=0x18b7cd0, context=0x188e980) at qml/qqmlcomponent.cpp:795
#25 0x00007f29a1d7da32 in KWin::TabBox::TabBoxHandlerPrivate::createSwitcherItem (this=this@entry=0x10e1900, desktopMode=desktopMode@entry=false) at ../tabbox/tabboxhandler.cpp:283
#26 0x00007f29a1d7f3e4 in KWin::TabBox::TabBoxHandlerPrivate::show (this=0x10e1900) at ../tabbox/tabboxhandler.cpp:316
#27 0x00007f29a1d7f649 in KWin::TabBox::TabBoxHandler::show (this=0x10d2cd0) at ../tabbox/tabboxhandler.cpp:372
#28 0x00007f29a1d70b57 in KWin::TabBox::TabBox::show (this=<optimized out>) at ../tabbox/tabbox.cpp:724
#29 0x00007f29a1d9ea55 in KWin::TabBox::TabBox::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at moc_tabbox.cpp:173
#30 0x00007f29a01db27d in QMetaObject::activate (sender=sender@entry=0x10e10a8, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3680
#31 0x00007f29a01db6e7 in QMetaObject::activate (sender=sender@entry=0x10e10a8, m=m@entry=0x7f29a06087c0 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3546
#32 0x00007f29a02596c0 in QTimer::timeout (this=this@entry=0x10e10a8) at .moc/moc_qtimer.cpp:189
#33 0x00007f29a01e8a08 in QTimer::timerEvent (this=0x10e10a8, e=<optimized out>) at kernel/qtimer.cpp:255
#34 0x00007f29a01dc0e3 in QObject::event (this=0x10e10a8, e=<optimized out>) at kernel/qobject.cpp:1263
#35 0x00007f29a0e7e16c in QApplicationPrivate::notify_helper (this=0xff2700, receiver=0x10e10a8, e=0x7fffe498c780) at kernel/qapplication.cpp:3504
#36 0x00007f29a0e8341e in QApplication::notify (this=0x7fffe498c9c0, receiver=0x10e10a8, e=0x7fffe498c780) at kernel/qapplication.cpp:3287
#37 0x00007f29a01ac81b in QCoreApplication::notifyInternal (this=0x7fffe498c9c0, receiver=0x10e10a8, event=event@entry=0x7fffe498c780) at kernel/qcoreapplication.cpp:935
#38 0x00007f29a0202d85 in sendEvent (event=0x7fffe498c780, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:237
#39 QTimerInfoList::activateTimers (this=0x102b318) at kernel/qtimerinfo_unix.cpp:643
#40 0x00007f29a0200a00 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x1027310) at kernel/qeventdispatcher_unix.cpp:557
#41 0x00007f29a0201553 in QEventDispatcherUNIX::processEvents (this=0x1027310, flags=flags@entry=...) at kernel/qeventdispatcher_unix.cpp:619
#42 0x00007f298c14f7dd in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:70
#43 0x00007f29a01aa042 in QEventLoop::exec (this=this@entry=0x7fffe498c8e0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#44 0x00007f29a01b1acc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#45 0x00007f29a06e91dc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1436
#46 0x00007f29a0e7c795 in QApplication::exec () at kernel/qapplication.cpp:2749
#47 0x00007f29a23fe973 in kdemain (argc=1, argv=0x7fffe498cb18) at ../main_x11.cpp:294
#48 0x00007f29a2056ec5 in __libc_start_main (main=0x400820 <main(int, char**)>, argc=1, argv=0x7fffe498cb18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffe498cb08) at libc-start.c:287
#49 0x000000000040084e in _start ()

Reported using DrKonqi
Comment 1 Rohan Garg 2014-11-26 21:08:16 UTC
BTW This always happens if I try to enable compositing.
Comment 2 Thomas Lübking 2014-11-26 21:25:23 UTC
> KSharedDataCache::find()

are you using
a) sth. like "bleachbit" or
b) a btrfs partition?
Comment 3 Rohan Garg 2014-11-26 21:27:28 UTC
Using BTRFS :)
Comment 4 Thomas Lübking 2014-11-26 21:31:48 UTC
Suggested to be fixed by  kernel 3.17.3

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