Bug 257794

Summary: Random KWin crash
Product: [Plasma] kwin Reporter: paul s. romanchenko <kde>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: mikebakercz, sinozzuke
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description paul s. romanchenko 2010-11-24 17:01:57 UTC
Application: kwin (4.5.1 (KDE 4.5.1))
KDE Platform Version: 4.5.2 (KDE 4.5.2)
Qt Version: 4.7.0
Operating System: Linux 2.6.34-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

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

There are random kwin crashed when activating window on taskbar. Crashes are rare.
After automatic restart, kwin and Xorg starts to eating CPU altogether.

-- Backtrace:
Application: KWin (kwin), signal: Aborted
[KCrash Handler]
#6  0x00007f3a4ee7a175 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f3a4ee7cf80 in *__GI_abort () at abort.c:92
#8  0x00007f3a4b570dc5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#9  0x00007f3a4b56f166 in ?? () from /usr/lib/libstdc++.so.6
#10 0x00007f3a4b56f193 in std::terminate() () from /usr/lib/libstdc++.so.6
#11 0x00007f3a4b56f216 in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#12 0x00007f3a4c654c6d in QEventLoop::exec (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:214
#13 0x00007f3a4c658bbb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#14 0x00007f3a4f1fd48a in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../kwin/main.cpp:531
#15 0x00007f3a4ee66c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fff5e1d4578) at libc-start.c:228
#16 0x00000000004006a9 in _start ()

Possible duplicates by query: bug 257746, bug 257702, bug 257697, bug 257597, bug 257579.

Reported using DrKonqi
Comment 1 sinozzuke 2010-11-24 17:23:34 UTC
Created attachment 53696 [details]
New crash information added by DrKonqi

kwin (4.5.3 (KDE 4.5.3)) on KDE Platform 4.5.3 (KDE 4.5.3) using Qt 4.7.1

- What I was doing when the application crashed:
When you are changing from one task to other in the taskbar sometimes get that crash error

-- Backtrace (Reduced):
#12 0x00007f45cadcd473 in QEventLoop::exec (this=0x7fffaa8f8ec0, flags=...) at kernel/qeventloop.cpp:214
#13 0x00007f45cadd180b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#14 0x00007f45ce8c1c14 in kdemain () from /usr/lib64/libkdeinit4_kwin.so
[...]
#16 0x0000000000400699 in _start ()
Comment 2 Martin Flöser 2010-11-24 17:41:57 UTC
The backtrace is rather useless as debug symbols are missing. Please install at least kdebase-workspace-dbg and paste a new backtrace.
Comment 3 paul s. romanchenko 2010-11-25 08:37:39 UTC
I have -dbg packages installed. This is not a crash from within KDE libraries, this is an exception thrown from KDE, catched by QT in eventloop, rethrown and catched by stdc++ library.
So, when program being killed in __GI_raise, original exception is lost and stack unwinded.
Comment 4 Thomas Lübking 2010-11-25 14:16:03 UTC
this is correct and actually that particular (default*) behaviour of Qt's eventloop got bashed before by smarter ppl. than us before ;-)

- what titlebar decoration do you use? (ain't much stuff in KDE throwing 'round things ;-)
- entirely other direction (wonder about the cpu load): is de/activating some client combinations more likely to crash than others?

*define QT_NO_EXCEPTIONS as cflag to get rid of this
Comment 5 paul s. romanchenko 2010-11-25 14:25:43 UTC
I use "sculpture" window decorations and standard oxygen as desktop theme.
My working set is rather stable, so can't say about de/activation. It is include opera/chrome/firefox (yes, all 3), skype, thunderbird, psi, netbeans, openoffice, copule of other java programs and other office stuff like okular, konsole...
Comment 6 Thomas Lübking 2010-11-25 22:57:16 UTC
(In reply to comment #5)

> I use "sculpture" window decorations
"skulpture" - ok, that's unlikely it...

> My working set is rather stable, so can't say about de/activation.
is maybe a virtual desktop switch invoked all the time?
Comment 7 paul s. romanchenko 2010-11-26 08:22:22 UTC
I suppose the problem is deeper in the kde/qt/x11. Unlocking session on morning:
No any additional actions were performed. Session unlocked, kcrash handler welcomes ;)

Regarding last question -- no, desktop switching wasn't involved. My taskbar shows only windows from current desktop and crash was when I clicked on taskbar.

Application: Рабочее пространство Plasma (plasma-desktop), signal: Aborted
[KCrash Handler]
#6  0x00007ff4b032b175 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007ff4b032df80 in *__GI_abort () at abort.c:92
#8  0x00007ff4acb30dc5 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#9  0x00007ff4acb2f166 in ?? () from /usr/lib/libstdc++.so.6
#10 0x00007ff4acb2f193 in std::terminate() () from /usr/lib/libstdc++.so.6
#11 0x00007ff4acb2f216 in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#12 0x00007ff4adc14c6d in QEventLoop::exec (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:214
#13 0x00007ff4adc18bbb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#14 0x00007ff4b0696816 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../../plasma/desktop/shell/main.cpp:118
#15 0x00007ff4b0317c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffb505b458) at libc-start.c:228
#16 0x00000000004006b9 in _start ()
Comment 8 Thomas Lübking 2010-11-26 15:35:06 UTC
actually fits... (somehow)

the thing in KDE throwing exceptions is (next to the obvious kjs/khtml) plasma contexts - probably for unrelated reasons but throwing uncatched exceptions causes problems when done in slots ...

this is why i was after the decoration -aurorae- and the desktop switching -indicator osd- ... but oc the problem could be some mem corruption (and some new operator throwing the exception on top of some event...)
Comment 9 Thomas Lübking 2010-12-07 19:13:59 UTC

*** This bug has been marked as a duplicate of bug 241163 ***
Comment 10 Thomas Lübking 2011-03-13 16:45:05 UTC
*** Bug 268384 has been marked as a duplicate of this bug. ***