Bug 366513

Summary: kwin crashed (SEGFAULT)
Product: [Plasma] kwin Reporter: Amin <amin>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash Keywords: drkonqi
Priority: NOR Flags: mgraesslin: nouveau+
Version First Reported In: 5.7.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Amin 2016-08-08 07:58:18 UTC
Application: kwin_x11 (5.7.3)

Qt Version: 5.6.1
Frameworks Version: 5.24.0
Operating System: Linux 4.6.4-301.fc24.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Update Fedora 23 to Fedora 24 with dnf upgrade plugin;
Try login to Plasma Encvironment;

Some times later try update Fedora 24 to latest stable packets, including plasma*.
Try to login in Plasma-environment.

- Unusual behavior I noticed:
Message-box about "kwin crashed (Segfault)" appear;
Start-menu, Quick-Launch, Taskbar and application tray NOT appear;
But X-server live, i can run applications with Alt-F1 and switch between appications with Alt-Tab.
Graphical desktop (Icons, widgets) not appear;

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7ff40e188700 (LWP 4517)):
#0  0x00007ff44405cbd0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff449a8bbc4 in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQt5Script.so.5
#2  0x00007ff449a8bc09 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQt5Script.so.5
#3  0x00007ff4440575ca in start_thread () from /lib64/libpthread.so.0
#4  0x00007ff4411d0ead in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7ff40f705700 (LWP 4516)):
#0  0x00007ff4411c7103 in select () from /lib64/libc.so.6
#1  0x00007ff441fc76df in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () from /lib64/libQt5Core.so.5
#2  0x00007ff441fc8dd4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () from /lib64/libQt5Core.so.5
#3  0x00007ff441fc930a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007ff441f7a5ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007ff441dd9343 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007ff448cda8f5 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x00007ff441ddd99a in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007ff4440575ca in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff4411d0ead in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff423fff700 (LWP 4512)):
#0  0x00007ff4411c7103 in select () from /lib64/libc.so.6
#1  0x00007ff441fc76df in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () from /lib64/libQt5Core.so.5
#2  0x00007ff441fc8dd4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () from /lib64/libQt5Core.so.5
#3  0x00007ff441fc930a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007ff441f7a5ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007ff441dd9343 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007ff443b55559 in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#7  0x00007ff441ddd99a in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007ff4440575ca in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff4411d0ead in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff430f58940 (LWP 4505)):
[KCrash Handler]
#6  0x00007ff41369b2f5 in nv30_fp_state_bind () from /usr/lib64/dri/nouveau_dri.so
#7  0x00007ff41351d0ce in cso_delete_fragment_shader () from /usr/lib64/dri/nouveau_dri.so
#8  0x00007ff4133d32e1 in destroy_program_variants () from /usr/lib64/dri/nouveau_dri.so
#9  0x00007ff4133d33c4 in destroy_shader_program_variants_cb () from /usr/lib64/dri/nouveau_dri.so
#10 0x00007ff4132e4c3d in _mesa_HashWalk () from /usr/lib64/dri/nouveau_dri.so
#11 0x00007ff4133a0731 in st_destroy_context () from /usr/lib64/dri/nouveau_dri.so
#12 0x00007ff4135122dd in dri_destroy_context () from /usr/lib64/dri/nouveau_dri.so
#13 0x00007ff4135114c3 in driDestroyContext () from /usr/lib64/dri/nouveau_dri.so
#14 0x00007ff43f3343af in dri2_destroy_context () from /lib64/libGL.so.1
#15 0x00007ff43f3078d9 in glXDestroyContext () from /lib64/libGL.so.1
#16 0x00007ff44ab9f401 in QGLXContext::~QGLXContext() () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#17 0x00007ff44ab9f429 in QGLXContext::~QGLXContext() () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#18 0x00007ff4422f0a0b in QOpenGLContext::destroy() () from /lib64/libQt5Gui.so.5
#19 0x00007ff4422f0fe7 in QOpenGLContext::~QOpenGLContext() () from /lib64/libQt5Gui.so.5
#20 0x00007ff4422f0ff9 in QOpenGLContext::~QOpenGLContext() () from /lib64/libQt5Gui.so.5
#21 0x00007ff4491a07f9 in QSGGuiThreadRenderLoop::windowDestroyed(QQuickWindow*) () from /lib64/libQt5Quick.so.5
#22 0x00007ff4491d2f78 in QQuickWindow::~QQuickWindow() () from /lib64/libQt5Quick.so.5
#23 0x00007ff40e414bb1 in QQmlPrivate::QQmlElement<PlasmaQuick::Dialog>::~QQmlElement() () from /usr/lib64/qt5/qml/org/kde/plasma/core/libcorebindingsplugin.so
#24 0x00007ff441faa4fc in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#25 0x00007ff441fab5ff in QObject::~QObject() () from /lib64/libQt5Core.so.5
#26 0x00007ff44a4b71fb in QQmlPrivate::QQmlElement<KWin::TabBox::SwitcherItem>::~QQmlElement() () from /lib64/libkwin.so.5
#27 0x00007ff44a4b56b7 in KWin::TabBox::TabBoxHandlerPrivate::~TabBoxHandlerPrivate() () from /lib64/libkwin.so.5
#28 0x00007ff44a4b5858 in KWin::TabBox::TabBoxHandler::~TabBoxHandler() () from /lib64/libkwin.so.5
#29 0x00007ff44a4a57c3 in KWin::TabBox::TabBoxHandlerImpl::~TabBoxHandlerImpl() () from /lib64/libkwin.so.5
#30 0x00007ff441faa4fc in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#31 0x00007ff441fab5ff in QObject::~QObject() () from /lib64/libQt5Core.so.5
#32 0x00007ff44a4abe69 in KWin::TabBox::TabBox::~TabBox() () from /lib64/libkwin.so.5
#33 0x00007ff441faa4fc in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#34 0x00007ff441fab5ff in QObject::~QObject() () from /lib64/libQt5Core.so.5
#35 0x00007ff44a360826 in KWin::Workspace::~Workspace() () from /lib64/libkwin.so.5
#36 0x00007ff44a3609a9 in KWin::Workspace::~Workspace() () from /lib64/libkwin.so.5
#37 0x00007ff44a785956 in KWin::ApplicationX11::lostSelection() () from /lib64/libkdeinit5_kwin_x11.so
#38 0x00007ff441fa3b92 in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#39 0x00007ff442d62f3b in KSelectionOwner::filterEvent(void*) () from /lib64/libKF5WindowSystem.so.5
#40 0x00007ff441f7969c in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () from /lib64/libQt5Core.so.5
#41 0x00007ff42a3aa775 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /lib64/libQt5XcbQpa.so.5
#42 0x00007ff42a3ab70b in QXcbConnection::processXcbEvents() () from /lib64/libQt5XcbQpa.so.5
#43 0x00007ff441fa4bd9 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#44 0x00007ff44280ec0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#45 0x00007ff4428140ef in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#46 0x00007ff441f7b7aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#47 0x00007ff441f7d84f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#48 0x00007ff441fc91e2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#49 0x00007ff42a41d7dd in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#50 0x00007ff441f7a5ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#51 0x00007ff441f8217c in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#52 0x00007ff44a7870d6 in kdemain () from /lib64/libkdeinit5_kwin_x11.so
#53 0x00007ff4410ee731 in __libc_start_main () from /lib64/libc.so.6
#54 0x000055d0e7c5bcf9 in _start ()

Reported using DrKonqi
Comment 1 Martin Flöser 2016-08-08 10:23:51 UTC
sorry crashes in the nouveau driver. That's out of our control for us. If you are able to install debug symbols for the nouveau driver it might be interesting to get a newer backtrace and report that to mesa devs.
Comment 2 Amin 2016-08-08 12:51:55 UTC
OK, i switch to vesa temporarily, it's acceptable.
I try install debug symbols and report to nouveau-developers.
Thank you very much.