Bug 322412 - KWin crashed after login (XRender backend)
Summary: KWin crashed after login (XRender backend)
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-07-15 21:22 UTC by Martin
Modified: 2013-07-17 08:42 UTC (History)
0 users

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 Martin 2013-07-15 21:22:38 UTC
Application: kwin (4.10.95)
KDE Platform Version: 4.10.95 (Compiled from sources)
Qt Version: 4.8.6
Operating System: Linux 3.8.0-27-generic x86_64
Distribution: Ubuntu 13.04

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

I had just finished a complete KDE installation. After restarting I logged in and KWin crashed. Although this is master, it also crashed with 4.11 beta packages. It is possible that this is a Kubuntu-related problem.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f673c2b97c0 (LWP 2548))]

Thread 2 (Thread 0x7f671fcf3700 (LWP 2555)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f6735f8f3c7 in QWaitConditionPrivate::wait (this=0x1741130, time=30000) at /home/martin/sources/kde/qt/src/corelib/thread/qwaitcondition_unix.cpp:84
#2  0x00007f6735f8f18d in QWaitCondition::wait (this=0x17410e0, mutex=0x17410d8, time=30000) at /home/martin/sources/kde/qt/src/corelib/thread/qwaitcondition_unix.cpp:158
#3  0x00007f6735f7cb29 in QThreadPoolThread::run (this=0x1745cc0) at /home/martin/sources/kde/qt/src/corelib/concurrent/qthreadpool.cpp:141
#4  0x00007f6735f8dd2a in QThreadPrivate::start (arg=0x1745cc0) at /home/martin/sources/kde/qt/src/corelib/thread/qthread_unix.cpp:349
#5  0x00007f6735cd8f8e in start_thread (arg=0x7f671fcf3700) at pthread_create.c:311
#6  0x00007f673bb2de1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f673c2b97c0 (LWP 2548)):
[KCrash Handler]
#6  0x00007f67367e2c75 in QBasicAtomicInt::deref (this=0x40) at /opt/qt4/include/QtCore/qatomic_x86_64.h:133
#7  0x00007f67367e2cb7 in QByteArray::~QByteArray (this=0x16a7738, __in_chrg=<optimized out>) at /opt/qt4/include/QtCore/qbytearray.h:401
#8  0x00007f67367ea6f2 in KEntryKey::~KEntryKey (this=0x16a7730, __in_chrg=<optimized out>) at /home/martin/sources/kde/kde/kdelibs/kdecore/config/kconfigdata.h:89
#9  0x00007f67367ec2b0 in QMap<KEntryKey, KEntry>::freeData (this=0x16a4c80, x=0x175b5e0) at /opt/qt4/include/QtCore/qmap.h:651
#10 0x00007f67367eba62 in QMap<KEntryKey, KEntry>::operator= (this=0x16a4c80, other=...) at /opt/qt4/include/QtCore/qmap.h:435
#11 0x00007f67367ebadb in QMap<KEntryKey, KEntry>::clear (this=0x16a4c80) at /opt/qt4/include/QtCore/qmap.h:446
#12 0x00007f67367e7c2f in KConfig::reparseConfiguration (this=0x16a5850) at /home/martin/sources/kde/kde/kdelibs/kdecore/config/kconfig.cpp:590
#13 0x00007f6723e5b344 in Oxygen::Helper::reloadConfig (this=0x16a7310) at ../../../libs/oxygen/oxygenhelper.cpp:84
#14 0x00007f671f2e027b in Oxygen::Factory::readConfig (this=0x16a72e0) at /home/martin/sources/kde/kde/kde-workspace/kwin/clients/oxygen/oxygenfactory.cpp:87
#15 0x00007f671f2e005d in Oxygen::Factory::Factory (this=0x16a72e0) at /home/martin/sources/kde/kde/kde-workspace/kwin/clients/oxygen/oxygenfactory.cpp:50
#16 0x00007f671f2dff63 in create_factory () at /home/martin/sources/kde/kde/kde-workspace/kwin/clients/oxygen/oxygenfactory.cpp:39
#17 0x00007f673b81ec97 in KDecorationPlugins::loadPlugin (this=0x16a7e50, nameStr=...) at /home/martin/sources/kde/kde/kde-workspace/kwin/libkdecorations/kdecoration_plugins_p.cpp:248
#18 0x00007f673be97f59 in KWin::DecorationPlugin::DecorationPlugin (this=0x16a7e40, parent=0x1745ae0) at /home/martin/sources/kde/kde/kde-workspace/kwin/decorations.cpp:46
#19 0x00007f673be97e80 in KWin::DecorationPlugin::create (parent=0x1745ae0) at /home/martin/sources/kde/kde/kde-workspace/kwin/decorations.cpp:34
#20 0x00007f673be545db in KWin::Workspace::Workspace (this=0x1745ae0, restore=true) at /home/martin/sources/kde/kde/kde-workspace/kwin/workspace.cpp:171
#21 0x00007f673be8f5f1 in KWin::Application::Application (this=0x7fff1b1829d0) at /home/martin/sources/kde/kde/kde-workspace/kwin/main.cpp:377
#22 0x00007f673be906b1 in kdemain (argc=3, argv=0x7fff1b182b28) at /home/martin/sources/kde/kde/kde-workspace/kwin/main.cpp:565
#23 0x000000000040082e in main (argc=3, argv=0x7fff1b182b28) at /home/martin/sources/kde/build/kde/kde-workspace/kwin/kwin_dummy.cpp:3

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-07-15 22:22:43 UTC
#6  0x00007f67367e2c75 in QBasicAtomicInt::deref (this=0x40) at 
                                                                                   ^^^^^^^^^^
Memory corruption.

a) is this somewhat reproducible? (With thi sor similar backtrace)
b) does this also happen with other decorations / GUI styles than oxygen (incompatible liboxygen, can easily happen if you'd only compile the decoration or the style or the lib)
c) can you run kwin in valgrind (otherwise. first ensure that it's not liboxygen)
Comment 2 Martin 2013-07-17 08:42:07 UTC
Hi Thomas,

thank you for your explanation. Today I compiled the sources again, changed from Oxygen style to Phase, and rebooted. Everything went fine, I could also change back to Oxygen and no crash occurred. If I find a way to reproduce the bug I will reopen this report and document the steps and try a valgrind run.