Bug 321672 - KWin crashed when maximizing windows
Summary: KWin crashed when maximizing windows
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.10.80
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-06-27 12:51 UTC by Daniel Nicoletti
Modified: 2013-06-28 22:49 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 Daniel Nicoletti 2013-06-27 12:51:52 UTC
Application: kwin (4.10.80)
KDE Platform Version: 4.10.80
Qt Version: 4.8.4
Operating System: Linux 3.8.0-25-generic x86_64
Distribution: Ubuntu 13.04

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

I moved the window to the top to get it maximized and it crashed, it doesn't happen if composite is turned of, I'm running a compiled version of kde-workspace due to that black screen bug caused by color correction.

The crash can be reproduced every time.

-- 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 0x7f59062727c0 (LWP 27639))]

Thread 6 (Thread 0x7f58e9341700 (LWP 27640)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f59003450a7 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f590033864f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5900344bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f58fdc19f8e in start_thread (arg=0x7f58e9341700) at pthread_create.c:311
#5  0x00007f5905a59e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7f58e1c5e700 (LWP 27641)):
#0  0x00007f5905a52233 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f5900420132 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5900344bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f58fdc19f8e in start_thread (arg=0x7f58e1c5e700) at pthread_create.c:311
#4  0x00007f5905a59e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7f58da8d7700 (LWP 27644)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f58e122b41b in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#2  0x00007f58fdc19f8e in start_thread (arg=0x7f58da8d7700) at pthread_create.c:311
#3  0x00007f5905a59e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f58d9a4f700 (LWP 27645)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f59003450a7 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f590033864f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5900344bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f58fdc19f8e in start_thread (arg=0x7f58d9a4f700) at pthread_create.c:311
#5  0x00007f5905a59e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f58e3fff700 (LWP 27646)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5904c4de77 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f5904c4dea9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f58fdc19f8e in start_thread (arg=0x7f58e3fff700) at pthread_create.c:311
#4  0x00007f5905a59e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f59062727c0 (LWP 27639)):
[KCrash Handler]
#5  0x00007f5905db0134 in node_copy (src=0x20a6518, to=0x203b9a0, from=<optimized out>, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:399
#6  QList<KWin::WindowQuad>::detach_helper (this=<optimized out>, alloc=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:711
#7  0x00007f5905df2c5b in QList<KWin::WindowQuad>::detach_helper (this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:725
#8  0x00007f5905df0a64 in QList (l=..., this=0x7fff34c57e40) at /usr/include/qt4/QtCore/qlist.h:122
#9  WindowQuadList (this=0x7fff34c57e40) at /home/daniel/code/kde-workspace/kwin/libkwineffects/kwineffects.h:1785
#10 Phase2Data (q=..., m=14, c=..., r=..., w=0x18c0ef0, this=0x7fff34c57e20) at /home/daniel/code/kde-workspace/kwin/scene.h:144
#11 KWin::Scene::paintSimpleScreen (this=this@entry=0x1b74370, orig_mask=orig_mask@entry=8, region=...) at /home/daniel/code/kde-workspace/kwin/scene.cpp:299
#12 0x00007f5905dee44e in KWin::Scene::finalPaintScreen (this=0x1b74370, mask=mask@entry=8, region=..., data=...) at /home/daniel/code/kde-workspace/kwin/scene.cpp:184
#13 0x00007f5905e13f18 in KWin::EffectsHandlerImpl::paintScreen (this=0x1e4d080, mask=mask@entry=8, region=..., data=...) at /home/daniel/code/kde-workspace/kwin/effects.cpp:373
#14 0x00007f59055249b7 in KWin::Effect::paintScreen (this=this@entry=0x1b76440, mask=mask@entry=8, region=..., data=...) at /home/daniel/code/kde-workspace/kwin/libkwineffects/kwineffects.cpp:522
#15 0x00007f5905e13ec5 in KWin::EffectsHandlerImpl::paintScreen (this=0x1e4d080, mask=mask@entry=8, region=..., data=...) at /home/daniel/code/kde-workspace/kwin/effects.cpp:370
#16 0x00007f59055249b7 in KWin::Effect::paintScreen (this=this@entry=0x15d7fc0, mask=mask@entry=8, region=..., data=...) at /home/daniel/code/kde-workspace/kwin/libkwineffects/kwineffects.cpp:522
#17 0x00007f5905e13ec5 in KWin::EffectsHandlerImpl::paintScreen (this=0x1e4d080, mask=mask@entry=8, region=..., data=...) at /home/daniel/code/kde-workspace/kwin/effects.cpp:370
#18 0x00007f59055249b7 in KWin::Effect::paintScreen (this=this@entry=0x1da95c0, mask=mask@entry=8, region=..., data=...) at /home/daniel/code/kde-workspace/kwin/libkwineffects/kwineffects.cpp:522
#19 0x00007f5905e13ec5 in KWin::EffectsHandlerImpl::paintScreen (this=0x1e4d080, mask=8, region=..., data=...) at /home/daniel/code/kde-workspace/kwin/effects.cpp:370
#20 0x00007f5905df0500 in KWin::Scene::paintScreen (this=this@entry=0x1b74370, mask=mask@entry=0x7fff34c581dc, region=region@entry=0x7fff34c582a0) at /home/daniel/code/kde-workspace/kwin/scene.cpp:141
#21 0x00007f5905e0860b in KWin::SceneOpenGL::paint (this=0x1b74370, damage=..., toplevels=...) at /home/daniel/code/kde-workspace/kwin/scene_opengl.cpp:360
#22 0x00007f5905de8857 in KWin::Compositor::performCompositing (this=0x15db110) at /home/daniel/code/kde-workspace/kwin/composite.cpp:617
#23 0x00007f590045b3ec in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#24 0x00007f58ff7e78ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007f58ff7ea25b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007f59046af166 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#27 0x00007f590044163e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007f5900472b72 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007f5900472d28 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#30 0x00007f58ff88db9f in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#31 0x00007f590044038f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x00007f5900440618 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007f5900445cf6 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007f5905da1dd3 in kdemain (argc=2, argv=0x7fff34c59158) at /home/daniel/code/kde-workspace/kwin/main.cpp:589
#35 0x00007f5905981ea5 in __libc_start_main (main=0x4006c0 <main(int, char**)>, argc=2, ubp_av=0x7fff34c59158, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff34c59148) at libc-start.c:260
#36 0x00000000004006f1 in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-06-27 14:01:23 UTC
Smells like memory corruption.

Can you try git master or the just tagged 4.10.90?
Does this happen reproducibly, do all backtraces look the exact same, esp

KWin::Scene::paintSimpleScreen (this=this@entry=0x1b74370, orig_mask=orig_mask@entry=8, region=...) at /home/daniel/code/kde-workspace/kwin/scene.cpp:299

ie. land in line 299?
Comment 2 Daniel Nicoletti 2013-06-28 12:55:27 UTC
I did another git pull, compiled (against kdelibs 4.10.80 - from kubuntu packages) and the crash is
always at that line.
But since I didn't installed this compiled kwin I guess if it installs internal lib to usr there might be an issue, right?
Comment 3 Martin Flöser 2013-06-28 13:27:21 UTC
Can you elaborate the setup? It sounds like it could be the reason.
Comment 4 Daniel Nicoletti 2013-06-28 18:47:20 UTC
Kubuntu with 4.10.80 beta packages from ppa
local clone of kde-workspace
apt-get build-dep kde-workspace
cmake ..
cd kwin; make; ./kwin --replace
Comment 5 Thomas Lübking 2013-06-28 19:18:52 UTC
It could depend on sth. dlopened, but i assume the original crash was caused by a "legal" installation (and it doesn't seem to make any sense, so it should actually not be exactly reproducible)

In very doubt check ldd on the kwin binary and the linked libs (like libkdeinit_kwin.so)

In any case please attach "qdbus org.kde.kwin /KWin supportInformation" and don't worry to "sudo make install" from within the kwin build dir =)
Comment 6 Daniel Nicoletti 2013-06-28 22:49:32 UTC
Odd:
daniel@homer:~/code/kde-workspace/build/kwin$ ldd kwin|grep kwin
        libkdeinit4_kwin.so => /home/daniel/code/kde-workspace/build/lib/libkdeinit4_kwin.so (0x00007f46d6728000)
        libkwineffects.so.1 => /home/daniel/code/kde-workspace/build/lib/libkwineffects.so.1 (0x00007f46d5edf000)
        libkwinglutils.so.1 => /home/daniel/code/kde-workspace/build/lib/libkwinglutils.so.1 (0x00007f46d1afb000)

But now that I run make install it doesn't crash, dunno why but whatever :P
Hope closing as invalid is fine, thanks.