Bug 303575

Summary: crashed when i close window, likely fullscreen/(formerly) undecorated related
Product: [Plasma] kwin Reporter: Roman <romanick>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: ali.sherif10, andrei.ilie, auxsvr, darkjam, franciscoadriansanchez, m-kdeorg, piramix, vtomasr5
Priority: NOR    
Version First Reported In: 4.8.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=216879
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description Roman 2012-07-15 18:12:00 UTC
Application: kwin (4.8.4 (4.8.4))
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-27-generic i686
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed: KWin was crhashed when I closed window of Windows-application running by wine. The application name is IBExpert.

The crash does not seem to be reproducible.

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

Thread 3 (Thread 0xb2a79b40 (LWP 2114)):
#0  0x005cf416 in __kernel_vsyscall ()
#1  0x00965af1 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0x097c042a in qt_safe_select (nfds=22, fdread=0xb210058c, fdwrite=0xb21007a0, fdexcept=0xb21009b4, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#3  0x097c4a1b in QEventDispatcherUNIX::select (this=0xb2100488, nfds=22, readfds=0xb210058c, writefds=0xb21007a0, exceptfds=0xb21009b4, timeout=0x0) at kernel/qeventdispatcher_unix.cpp:639
#4  0x097c5d2f in QEventDispatcherUNIXPrivate::doSelect (this=0xb2100498, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#5  0x097c61f4 in QEventDispatcherUNIX::processEvents (this=0xb2100488, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#6  0x0978f50d in QEventLoop::processEvents (this=0xb2a79240, flags=...) at kernel/qeventloop.cpp:149
#7  0x0978f7a9 in QEventLoop::exec (this=0xb2a79240, flags=...) at kernel/qeventloop.cpp:204
#8  0x0967894c in QThread::exec (this=0xa007f20) at thread/qthread.cpp:501
#9  0x0976cb5d in QInotifyFileSystemWatcherEngine::run (this=0xa007f20) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x0967bde0 in QThreadPrivate::start (arg=0xa007f20) at thread/qthread_unix.cpp:298
#11 0x02094d4c in start_thread (arg=0xb2a79b40) at pthread_create.c:308
#12 0x0096cace in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb20ffb40 (LWP 2115)):
#0  0x005cf416 in __kernel_vsyscall ()
#1  0x0209896b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x0097a3dc in __pthread_cond_wait (cond=0x696d890, mutex=0x696d878) at forward.c:139
#3  0x06869029 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0x0686906f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0x02094d4c in start_thread (arg=0xb20ffb40) at pthread_create.c:308
#6  0x0096cace in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7792740 (LWP 2106)):
[KCrash Handler]
#7  pointInsideRectAndMask (p=..., this=0xb0e3478) at .moc/release-shared/moc_qwidget.cpp:375
#8  QWidgetPrivate::childAt_helper (this=0xb0e3478, p=..., ignoreChildrenInDestructor=false) at kernel/qwidget.cpp:9959
#9  0x0150223e in QWidget::childAt (this=0xab4eb28, p=...) at kernel/qwidget.cpp:9941
#10 0x01543f87 in QETWidget::translateMouseEvent (this=0xab4eb28, event=0xbfec160c) at kernel/qapplication_x11.cpp:4605
#11 0x01542c0d in QApplication::x11ProcessEvent (this=0xbfec1858, event=0xbfec160c) at kernel/qapplication_x11.cpp:3732
#12 0x01570a88 in QEventDispatcherX11::processEvents (this=0x9e19ea0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#13 0x0978f50d in QEventLoop::processEvents (this=0xbfec1794, flags=...) at kernel/qeventloop.cpp:149
#14 0x0978f7a9 in QEventLoop::exec (this=0xbfec1794, flags=...) at kernel/qeventloop.cpp:204
#15 0x09794eba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#16 0x014b4a74 in QApplication::exec () at kernel/qapplication.cpp:3820
#17 0x00e357c5 in kdemain (argc=3, argv=0xbfec1b04) at ../../kwin/main.cpp:541
#18 0x0804850b in main (argc=3, argv=0xbfec1b04) at kwin_dummy.cpp:3

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-07-15 18:37:17 UTC
a) How did you close the window? (titlebar button, popup, alt+f4, ...)
b) which window decoration do you use?
c) does it happen with other decorations as well?
Comment 2 Martin Flöser 2012-07-22 08:45:23 UTC
We need the information in order to investigate the crash.
Comment 3 Eckhart Wörner 2012-09-06 18:47:30 UTC
Crash with similar backtrace just happened to me (Ubuntu 12.10, Qt 4.8.2, KDE Platform 4.9.0, standard oxygen decoration). No memories on what triggered it though :-|
Comment 4 Thomas Lübking 2012-09-06 19:06:23 UTC
Do you still have the backtrace? (If so, please post it)

Also most important question -if you can recall that- is how you closed the window. (If you clicked the close button that's it  there's no special click closing but other close operations and the window could have closed itself as well)
Comment 5 Eckhart Wörner 2012-09-06 19:44:58 UTC
Sorry, no backtrace. The call stack looked like the above one, except DrKonqi shortened the other threads, and gcc optimized almost all arguments away.
I was serious about "no memories", I cannot even remember whether I was closing a window at all - sleep deprivation…
Comment 6 Thomas Lübking 2012-09-10 13:03:11 UTC
*** Bug 306525 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Lübking 2012-09-10 13:04:52 UTC
Dupe connects this to bug #288454 and from there pot. to bug #216879


Anyone reproducing this volunteers to valgrind kwin?
Comment 8 Vicenç Juan Tomas Monserrat 2012-09-12 18:47:14 UTC
My case,

Application: kwin (4.9.00)
KDE Platform Version: 4.9.00
Qt Version: 4.8.2
Operating System: Linux 3.2.0-30-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
I was reproducing a vídeo in VLC and Chrome also was open. I close VLC (windows button) with video still playing and kwin crashes. Compositing enabled.

-- 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 0x7f8e0e96a7c0 (LWP 2719))]

Thread 3 (Thread 0x7f8de1b6d700 (LWP 2738)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8e0b07c022 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f8e0b374e80) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f8e0b07c059 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f8e0a84d734 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#4  0x00007f8e02ddce9a in start_thread (arg=0x7f8de1b6d700) at pthread_create.c:308
#5  0x00007f8e0e1884bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8df1c4f700 (LWP 3778)):
#0  0x00007f8e0e181823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f8e09d23926 in qt_safe_select (nfds=15, fdread=0x7f8dec000af8, fdwrite=0x7f8dec000d90, fdexcept=0x7f8dec001028, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f8e09d28d72 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f8dec000940, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f8e09d29263 in QEventDispatcherUNIX::processEvents (this=0x7f8dec000920, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f8e09cf5f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8e09cf6177 in QEventLoop::exec (this=0x7f8df1c4ecd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f8e09bf5057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f8e09cd5c2f in QInotifyFileSystemWatcherEngine::run (this=0x207ced0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f8e09bf807b in QThreadPrivate::start (arg=0x207ced0) at thread/qthread_unix.cpp:307
#9  0x00007f8e0a84d734 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#10 0x00007f8e02ddce9a in start_thread (arg=0x7f8df1c4f700) at pthread_create.c:308
#11 0x00007f8e0e1884bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8e0e96a7c0 (LWP 2719)):
[KCrash Handler]
#6  pointInsideRectAndMask (p=..., this=0x2ac9900) at .moc/release-shared/moc_qwidget.cpp:375
#7  QWidgetPrivate::childAt_helper (this=<optimized out>, p=..., ignoreChildrenInDestructor=false) at kernel/qwidget.cpp:9968
#8  0x00007f8e090f8a60 in QETWidget::translateMouseEvent (this=0x255e5d0, event=<optimized out>) at kernel/qapplication_x11.cpp:4605
#9  0x00007f8e090f7ace in QApplication::x11ProcessEvent (this=0x7fff3a3beb50, event=0x7fff3a3be880) at kernel/qapplication_x11.cpp:3732
#10 0x00007f8e09121aba in QEventDispatcherX11::processEvents (this=0xe93ad0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#11 0x00007f8e09cf5f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f8e09cf6177 in QEventLoop::exec (this=0x7fff3a3bead0, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007f8e09cfb4c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#14 0x00007f8e0e4b6f93 in kdemain (argc=<optimized out>, argv=<optimized out>) at ../../kwin/main.cpp:545
#15 0x00007f8e0e0b776d in __libc_start_main (main=0x400630 <main(int, char**)>, argc=1, ubp_av=0x7fff3a3bf248, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff3a3bf238) at libc-start.c:226
#16 0x0000000000400661 in _start ()
Comment 9 Thomas Lübking 2012-09-12 19:17:07 UTC
Valuable information you and anyone encountering this crash can provide:

a) valgrind log
b) whether it happens _only_ with the oxygen decoration
c) whether it happens with the bespin decoration (because it's the only one i know at hand which does not base on kcommondecoration)

Each of this is helpful data on the bug.
Comment 10 Thomas Lübking 2012-09-12 19:20:58 UTC
nb:
"decoration" as in "kcmshell4 kwindecoration", NOT as in "kcmshell4 style" (those a shell commands opening config dialogs)
Comment 11 Thomas Lübking 2012-10-18 20:30:44 UTC
*** Bug 308623 has been marked as a duplicate of this bug. ***
Comment 12 auxsvr 2012-11-13 17:46:50 UTC
Created attachment 75228 [details]
New crash information added by DrKonqi

kwin (4.9.3 "release 520") on KDE Platform 4.9.3 "release 520" using Qt 4.8.3

- What I was doing when the application crashed:

I attempted to close a Mathematica window by clicking on the close button in the titlebar. The style in use is oxygen.

-- Backtrace (Reduced):
#7  0xb5536d7f in QETWidget::translateMouseEvent (this=0x8cbf450, event=0xbf99dcdc) at kernel/qapplication_x11.cpp:4259
#8  0xb553536e in QApplication::x11ProcessEvent (this=0xbf99df04, event=0xbf99dcdc) at kernel/qapplication_x11.cpp:3641
#9  0xb5561668 in QEventDispatcherX11::processEvents (this=0x849c388, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#10 0xb5fe0d1d in QEventLoop::processEvents (this=0xbf99de64, flags=...) at kernel/qeventloop.cpp:149
#11 0xb5fe0fb9 in QEventLoop::exec (this=0xbf99de64, flags=...) at kernel/qeventloop.cpp:204
Comment 13 Thomas Lübking 2013-10-17 18:25:48 UTC
*** Bug 326142 has been marked as a duplicate of this bug. ***
Comment 14 Thomas Lübking 2013-11-08 14:45:08 UTC
*** Bug 327307 has been marked as a duplicate of this bug. ***
Comment 15 Andrei ILIE 2014-06-09 11:20:53 UTC
-- Information about the crash:
- What I was doing when the application crashed:
While firefox was exiting fullscreen, kwin crashed...

Application: kwin (4.11.7)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.13.7-100.fc19.x86_64 x86_64
Distribution: "Fedora release 19 (Schrödinger’s Cat)"

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7fc1029288c0 (LWP 1247))]

Thread 2 (Thread 0x7fc0caa60700 (LWP 1256)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fc1018e714b in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fc101be4f00 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fc1018e7189 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fc0fc0dac53 in start_thread (arg=0x7fc0caa60700) at pthread_create.c:308
#4  0x00007fc0fa28cdbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fc1029288c0 (LWP 1247)):
[KCrash Handler]
#6  QWidgetPrivate::childAt_helper (this=0x24bcb80, p=..., ignoreChildrenInDestructor=ignoreChildrenInDestructor@entry=false) at ../../src/gui/kernel/qwidget_p.h:1028
#7  0x00007fc0fb63558b in QWidget::childAt (this=this@entry=0x1fb43b0, p=...) at kernel/qwidget.cpp:9968
#8  0x00007fc0fb66c79d in QETWidget::translateMouseEvent (this=this@entry=0x1fb43b0, event=event@entry=0x7fff838dab30) at kernel/qapplication_x11.cpp:4526
#9  0x00007fc0fb66b2bc in QApplication::x11ProcessEvent (this=0x7fff838daf20, event=event@entry=0x7fff838dab30) at kernel/qapplication_x11.cpp:3661
#10 0x00007fc0fb692760 in QEventDispatcherX11::processEvents (this=0x17afc00, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#11 0x00007fc0fc467b2f in QEventLoop::processEvents (this=this@entry=0x7fff838dad90, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007fc0fc467e25 in QEventLoop::exec (this=this@entry=0x7fff838dad90, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007fc0fc46d0a9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#14 0x00007fc0fb5f3c9c in QApplication::exec () at kernel/qapplication.cpp:3823
#15 0x00007fc1024486c6 in kdemain (argc=1, argv=0x7fff838db068) at /usr/src/debug/kde-workspace-4.11.7/kwin/main.cpp:597
#16 0x00007fc0fa1b8b45 in __libc_start_main (main=0x4009d0 <main(int, char**)>, argc=1, ubp_av=0x7fff838db068, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff838db058) at libc-start.c:274
#17 0x0000000000400a01 in _start ()

Possible duplicates by query: bug 335973, bug 326142.
Comment 16 Thomas Lübking 2014-06-09 12:23:23 UTC
re-opening, though likely dupe and likely upstream (Qt)
Comment 17 Thomas Lübking 2014-06-09 12:23:52 UTC
*** Bug 335973 has been marked as a duplicate of this bug. ***
Comment 18 Sebastian 2014-06-20 13:59:57 UTC
Created attachment 87309 [details]
New crash information added by DrKonqi

kwin (4.11.9) on KDE Platform 4.13.1 using Qt 4.8.6

same crash on KDE SC 4.13.1, Oxygen windeco.
I'll add my backtrace.

-- Backtrace (Reduced):
#6  QWidgetPrivate::childAt_helper (this=0x2f1af70, p=..., ignoreChildrenInDestructor=ignoreChildrenInDestructor@entry=false) at ../../include/QtGui/private/../../../src/gui/kernel/qwidget_p.h:1029
#7  0x00007f841455109b in QWidget::childAt (this=this@entry=0x3030a30, p=...) at kernel/qwidget.cpp:9968
#8  0x00007f841458b91d in QETWidget::translateMouseEvent (this=this@entry=0x3030a30, event=event@entry=0x7fffbc247390) at kernel/qapplication_x11.cpp:4622
#9  0x00007f841458b269 in QApplication::x11ProcessEvent (this=0x7fffbc247780, event=event@entry=0x7fffbc247390) at kernel/qapplication_x11.cpp:3627
#10 0x00007f84145b3470 in QEventDispatcherX11::processEvents (this=0x203baf0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
Comment 19 Martin Flöser 2015-01-09 08:41:41 UTC
crash in Qt.