Bug 356616 - kwin reports a crash when sending in Thunderbird
Summary: kwin reports a crash when sending in Thunderbird
Status: RESOLVED DUPLICATE of bug 317765
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-12-13 17:29 UTC by Mike
Modified: 2016-01-11 22:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike 2015-12-13 17:29:40 UTC
Application: kwin (4.11.20)
KDE Platform Version: 4.14.9
Qt Version: 4.8.6
Operating System: Linux 3.16.7-24-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

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

the "crash" window arises when I use the alt-tab keystroke to move to a different window before thunderbird 38.2 has completed with sending a new message via an imap server.

The message goes through successfully.  I am submitting this bug report because the kwin crash window encouraged me to do so.

System is SuSE 13.2 with the default kde.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb0f0bbd800 (LWP 1527))]

Thread 2 (Thread 0x7fb0d28df700 (LWP 1835)):
#0  0x00007fb0ea3b605f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fb0ef5e38cb in  () at /usr/lib64/libQtScript.so.4
#2  0x00007fb0ef5e3909 in  () at /usr/lib64/libQtScript.so.4
#3  0x00007fb0ea3b20a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fb0f03e208d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fb0f0bbd800 (LWP 1527)):
[KCrash Handler]
#5  0x0000004100000004 in  ()
#6  0x00007fb0f071e12d in  () at /usr/lib64/libkdeinit4_kwin.so
#7  0x00007fb0f071e700 in  () at /usr/lib64/libkdeinit4_kwin.so
#8  0x00007fb0f071ea9d in  () at /usr/lib64/libkdeinit4_kwin.so
#9  0x00007fb0f070e85b in  () at /usr/lib64/libkdeinit4_kwin.so
#10 0x00007fb0f0729dc1 in  () at /usr/lib64/libkdeinit4_kwin.so
#11 0x00007fb0f072bf3b in  () at /usr/lib64/libkdeinit4_kwin.so
#12 0x00007fb0f072d57f in  () at /usr/lib64/libkdeinit4_kwin.so
#13 0x00007fb0f07218f0 in  () at /usr/lib64/libkdeinit4_kwin.so
#14 0x00007fb0e992e6fc in  () at /usr/lib64/libQtGui.so.4
#15 0x00007fb0e993c1f9 in QApplication::x11ProcessEvent(_XEvent*) () at /usr/lib64/libQtGui.so.4
#16 0x00007fb0e9963f30 in  () at /usr/lib64/libQtGui.so.4
#17 0x00007fb0ea748e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#18 0x00007fb0ea749165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#19 0x00007fb0ea74e5b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#20 0x00007fb0f07227a3 in kdemain () at /usr/lib64/libkdeinit4_kwin.so
#21 0x00007fb0f031eb05 in __libc_start_main () at /lib64/libc.so.6
#22 0x000000000040075e in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2015-12-13 17:43:33 UTC
please install the debug packagex for kwin, re-login and re-cause the crash, then post the new backtrace. the present report doesn't provide the slightest hint what segfaulted :-(

see https://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports for details
Comment 2 Johannes Rauh 2015-12-14 20:49:27 UTC
I have precisely the same problem.  For me it happens not always, but sometimes.  Here is my crash report:

Application: kwin (4.11.13)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.0-4-686-pae i686
Distribution: Debian GNU/Linux 8.2 (jessie)

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

The following is not happening always, but already happened several times:

1. I finish an email with Thunderbird and click on "send".
2. While Thunderbird is still sending the email, I am pressing ALT+TAB to select another window.
3. While I am still wondering which window to select next, Thunderbird finishes sending the mail and closes the window.
4. At this moment, kwin crashes.

The crash can be reproduced sometimes.

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

Thread 2 (Thread 0xacd38b40 (LWP 24037)):
#0  0xb7735d40 in __kernel_vsyscall ()
#1  0xb47ddc4b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb74631bc in __pthread_cond_wait (cond=0xb6f608f0, mutex=0xb6f608d8) at forward.c:149
#3  0xb6e4744f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb6e4748c in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb47d9efb in start_thread (arg=0xacd38b40) at pthread_create.c:309
#6  0xb745662e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129

Thread 1 (Thread 0xb0738780 (LWP 24013)):
[KCrash Handler]
#7  0xb75136b8 in main_arena () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#8  0xb759ce97 in KWin::Workspace::constrainedStackingOrder (this=0x9efc680) at ../../kwin/layers.cpp:509
#9  0xb759d482 in KWin::Workspace::updateStackingOrder (this=this@entry=0x9efc680, propagate_new_clients=<optimized out>) at ../../kwin/layers.cpp:117
#10 0xb759d8bf in updateStackingOrder (propagate_new_clients=<optimized out>, this=0x9efc680) at ../../kwin/layers.cpp:615
#11 KWin::Workspace::blockStackingUpdates (this=0x9efc680, block=false) at ../../kwin/layers.cpp:616
#12 0xb758b89f in ~StackingUpdatesBlocker (this=<optimized out>, __in_chrg=<optimized out>) at ../../kwin/workspace.h:565
#13 KWin::Client::releaseWindow (this=0xa2d0598, on_shutdown=false) at ../../kwin/client.cpp:317
#14 0xb75ab01b in KWin::Client::unmapNotifyEvent (this=0xa2d0598, e=0xbfbb741c) at ../../kwin/events.cpp:595
#15 0xb75ad37a in KWin::Client::windowEvent (this=0xa2d0598, e=0xbfbb741c) at ../../kwin/events.cpp:451
#16 0xb75ae8a8 in KWin::Workspace::workspaceEvent (this=0x9efc680, e=0xbfbb741c) at ../../kwin/events.cpp:161
#17 0xb75a0f1a in KWin::Application::x11EventFilter (this=0xbfbb7684, e=0xbfbb741c) at ../../kwin/main.cpp:422
#18 0xb50a3d4c in qt_x11EventFilter (ev=0xbfbb741c) at kernel/qapplication_x11.cpp:436
#19 0xb50b35ff in QApplication::x11ProcessEvent (this=0xbfbb7684, event=0xbfbb741c) at kernel/qapplication_x11.cpp:3375
#20 0xb50dff51 in QEventDispatcherX11::processEvents (this=0x9dfbec0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#21 0xb5b89d9f in QEventLoop::processEvents (this=0xbfbb75a4, flags=...) at kernel/qeventloop.cpp:149
#22 0xb5b8a12e in QEventLoop::exec (this=0xbfbb75a4, flags=...) at kernel/qeventloop.cpp:204
#23 0xb5b902b6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#24 0xb5029614 in QApplication::exec () at kernel/qapplication.cpp:3828
#25 0xb75a2128 in kdemain (argc=3, argv=0xbfbb7784) at ../../kwin/main.cpp:597
#26 0x0804856b in main (argc=3, argv=0xbfbb7784) at kwin_dummy.cpp:3

Possible duplicates by query: bug 350814.

An https://bugs.kde.org/ berichten
Comment 3 Thomas Lübking 2015-12-14 21:00:30 UTC
Looks like bug #317765 - do you use compositing? (in doubt attach the output of "qdbus org.kde.KWin /KWin supportInformation")
Comment 4 Johannes Rauh 2015-12-15 04:17:11 UTC
It seems that compositing is off:

$ qdbus org.kde.KWin /KWin supportInformation | grep omposit
compositingMode: 1
useCompositing: false
compositingInitialized: false
Compositing
Compositing is not active
Comment 5 Thomas Lübking 2015-12-15 08:43:14 UTC
Fits the pattern, you encounter bug #317765

Mike, no compositing either (when getting this crash)?
Comment 6 Mike 2016-01-11 17:56:18 UTC
Sorry for the long delay.  Also I have not been able to install the debugging kwin yet.

I am trying to use the same setup on two different laptops.

On the laptop with the crash I have the following results:

prompt> qdbus org.kde.KWin /KWin supportInformation | grep omposit
compositingMode: 1
useCompositing: true
compositingInitialized: false
Compositing
Compositing is not active

I'm not at the other laptop at the moment; I believe it differs by having "useCompositing" as false instead of true.

For some reason it has become more difficult for me to reproduce this bug.  I try the same Alt-Tab to leave a Thunderbird window that is sending the message, and kwin no longer reports that it is crashing.  I have not consciously done anything other than posting the original submission here.
Comment 7 Thomas Lübking 2016-01-11 22:35:02 UTC
Fits the pattern. Unless  backtrace shows different, this wiil be bug #317765

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