Bug 237816

Summary: Kwin crashed while maximizing vlc playing video
Product: [Plasma] kwin Reporter: Stefano <steve.doc.brown>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: thomas.luebking
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefano 2010-05-16 13:48:46 UTC
Application: kwin (4.4.2 (KDE 4.4.2))
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
I have Kubuntu 10.04 64bit. I had dolphin, firefox and openoffice opened. I launched a video, and I maximized it after some seconds. The screen hangs and then kwin crashes. After the crash, VLC is still playing and everything returns normal.

 -- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[KCrash Handler]
#5  QBasicAtomicInt::ref (this=0x2067060, desktop=2, areas=) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
#6  QVector (this=0x2067060, desktop=2, areas=) at /usr/include/qt4/QtCore/qvector.h:118
#7  QForeachContainer (this=0x2067060, desktop=2, areas=) at /usr/include/qt4/QtCore/qglobal.h:2231
#8  KWin::Workspace::previousRestrictedMoveArea (this=0x2067060, desktop=2, areas=) at ../../kwin/geometry.cpp:328
#9  0x00007fd69a3a05d7 in KWin::Client::checkWorkspacePosition (this=0x306d540) at ../../kwin/geometry.cpp:1140
#10 0x00007fd69a346700 in KWin::Client::updateDecoration (this=0x306d540, check_workspace_pos=true, force=<value optimized out>) at ../../kwin/client.cpp:367
#11 0x00007fd69a3468a4 in KWin::Client::getMotifHints (this=0x306d540) at ../../kwin/client.cpp:1757
#12 0x00007fd69a376f08 in KWin::Client::windowEvent (this=0x306d540, e=0x7fff04af9bf0) at ../../kwin/events.cpp:660
#13 0x00007fd69a3774f8 in KWin::Workspace::workspaceEvent (this=0x2067060, e=0x7fff04af9bf0) at ../../kwin/events.cpp:321
#14 0x00007fd69a354f58 in KWin::Application::x11EventFilter (this=0x7fff04af9fe0, e=0x7fff04af9bf0) at ../../kwin/main.cpp:361
#15 0x00007fd696729641 in qt_x11EventFilter (ev=0x7fff04af9bf0) at kernel/qapplication_x11.cpp:399
#16 0x00007fd696738191 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff04af9bf0) at kernel/qapplication_x11.cpp:3231
#17 0x00007fd696764882 in x11EventSourceDispatch (s=0x1e1b1e0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#18 0x00007fd68ee788c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#19 0x00007fd68ee7c748 in ?? () from /lib/libglib-2.0.so.0
#20 0x00007fd68ee7c8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#21 0x00007fd695f91513 in QEventDispatcherGlib::processEvents (this=0x1dfdc40, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#22 0x00007fd69676446e in QGuiEventDispatcherGlib::processEvents (this=0x7fff04af9290, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#23 0x00007fd695f66992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#24 0x00007fd695f66d6c in QEventLoop::exec (this=0x7fff04af9f20, flags=) at kernel/qeventloop.cpp:201
#25 0x00007fd695f6aaab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#26 0x00007fd69a3567be in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../kwin/main.cpp:526
#27 0x00007fd699fa3c4d 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=0x7fff04afa4e8) at libc-start.c:226
#28 0x00000000004006b9 in _start ()

Possible duplicates by query: bug 220775, bug 200213.

Reported using DrKonqi
Comment 1 Thomas Lübking 2010-05-16 15:51:19 UTC
this is bug #20013
actually "foreach" creates an implicitly shared copy despite the return is a reference... so to bypass this bug we'd have to replace "foreach" by eg. an stl run

*** This bug has been marked as a duplicate of bug 20013 ***
Comment 2 Thomas Lübking 2010-05-16 15:53:09 UTC

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