Bug 384901 - kwin_x11 crashes when switching windows
Summary: kwin_x11 crashes when switching windows
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.10.5
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-09-20 21:09 UTC by Henry Hu
Modified: 2017-09-21 16:07 UTC (History)
0 users

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 Henry Hu 2017-09-20 21:09:04 UTC
Application: kwin_x11 (5.10.5)

Qt Version: 5.9.1
Frameworks Version: 5.38.0
Operating System: Linux 4.12.13-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

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

I was switching between windows using Alt-Tab.

It crashes with both OpenGL 3.1 and OpenGL 2.0. It does not crash with XRender.

The setup:
1 ATI card (discrete) and 1 intel card (integrated).
3 monitors, 2 connected to the ATI card and 1 connected to the intel card.
Using the modeset driver for both cards.

> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x86 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:modesetting
Provider 1: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 3 associated providers: 1 name:modesetting

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f836f2af840 (LWP 10853))]

Thread 6 (Thread 0x7f82b8b2f700 (LWP 10955)):
#0  0x00007f8367ddc38d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f82ba8a9d1c in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#2  0x00007f82ba8a9c28 in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#3  0x00007f8367dd608a in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f836ec3f1bf in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f82b9471700 (LWP 10954)):
#0  0x00007f8367ddc38d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f82ba8a9d1c in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#2  0x00007f82ba8a9c28 in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#3  0x00007f8367dd608a in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f836ec3f1bf in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f8345ccf700 (LWP 10882)):
#0  0x00007f8367ddc38d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f836b15eb04 in  () at /usr/lib/libQt5Script.so.5
#2  0x00007f836b15eb49 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007f8367dd608a in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f836ec3f1bf in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f83470d0700 (LWP 10881)):
#0  0x00007f836ec34db6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f836c23eba3 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f836c24033f in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f836c1e6ffb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f836c00040e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f83668d33d9 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f836c00515b in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f8367dd608a in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f836ec3f1bf in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f834e7e0700 (LWP 10868)):
#0  0x00007f836ec34db6 in ppoll () at /usr/lib/libc.so.6
#1  0x00007f836c23eba3 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f836c24033f in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f836c1e6ffb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f836c00040e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f8365a74396 in  () at /usr/lib/libQt5DBus.so.5
#6  0x00007f836c00515b in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f8367dd608a in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f836ec3f1bf in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f836f2af840 (LWP 10853)):
[KCrash Handler]
#5  0x00007f82babea1d4 in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#6  0x00007f82ba9ce17c in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#7  0x00007f82ba7b16e4 in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#8  0x00007f82ba775018 in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#9  0x00007f82ba77579f in  () at /usr/lib/xorg/modules/dri/r600_dri.so
#10 0x00007f8366f82437 in QSGBatchRenderer::Renderer::renderMergedBatch(QSGBatchRenderer::Batch const*) () at /usr/lib/libQt5Quick.so.5
#11 0x00007f8366f836d6 in QSGBatchRenderer::Renderer::renderBatches() () at /usr/lib/libQt5Quick.so.5
#12 0x00007f8366f88f66 in QSGBatchRenderer::Renderer::render() () at /usr/lib/libQt5Quick.so.5
#13 0x00007f8366f7959f in QSGRenderer::renderScene(QSGBindable const&) () at /usr/lib/libQt5Quick.so.5
#14 0x00007f8366f79a6c in QSGRenderer::renderScene(unsigned int) () at /usr/lib/libQt5Quick.so.5
#15 0x00007f8366fb4cd0 in QSGDefaultRenderContext::renderNextFrame(QSGRenderer*, unsigned int) () at /usr/lib/libQt5Quick.so.5
#16 0x00007f83670133a0 in QQuickWindowPrivate::renderSceneGraph(QSize const&) () at /usr/lib/libQt5Quick.so.5
#17 0x00007f8366fa6d18 in  () at /usr/lib/libQt5Quick.so.5
#18 0x00007f836701d996 in QQuickWindow::event(QEvent*) () at /usr/lib/libQt5Quick.so.5
#19 0x00007f829f93f0d4 in PlasmaQuick::Dialog::event(QEvent*) () at /usr/lib/libKF5PlasmaQuick.so.5
#20 0x00007f836cf0fe4c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#21 0x00007f836cf17926 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007f836c1e8bd0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#23 0x00007f836c757293 in QWindowPrivate::deliverUpdateRequest() () at /usr/lib/libQt5Gui.so.5
#24 0x00007f836c7577bb in QWindow::event(QEvent*) () at /usr/lib/libQt5Gui.so.5
#25 0x00007f836701d936 in QQuickWindow::event(QEvent*) () at /usr/lib/libQt5Quick.so.5
#26 0x00007f829f93f0d4 in PlasmaQuick::Dialog::event(QEvent*) () at /usr/lib/libKF5PlasmaQuick.so.5
#27 0x00007f836cf0fe4c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#28 0x00007f836cf17926 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#29 0x00007f836c1e8bd0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#30 0x00007f836c2424a8 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#31 0x00007f836c2405a4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#32 0x00007f8355c6a0de in  () at /usr/lib/libQt5XcbQpa.so.5
#33 0x00007f836c1e6ffb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#34 0x00007f836c1f0048 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#35 0x00007f836ef086d3 in kdemain () at /usr/lib/libkdeinit5_kwin_x11.so
#36 0x00007f836eb69f6a in __libc_start_main () at /usr/lib/libc.so.6
#37 0x000055ead884a7ca in _start ()

Reported using DrKonqi
Comment 1 Martin Flöser 2017-09-21 16:07:47 UTC
Crash happens in radeon driver, please report to radeon developers.