Bug 484380 - kwin_wayland core dumped after update to KDE 6 (trap divide error i965_dri.so)
Summary: kwin_wayland core dumped after update to KDE 6 (trap divide error i965_dri.so)
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-24 11:46 UTC by Matzkowsky
Modified: 2024-06-03 05:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
journal log containing the core dump (834.25 KB, text/x-log)
2024-03-24 11:46 UTC, Matzkowsky
Details
DrKonqi crash dump no 1. (33.37 KB, text/plain)
2024-03-24 11:51 UTC, Matzkowsky
Details
DrKonqi crash dump no 2-9 (56.40 KB, application/gzip)
2024-03-24 11:54 UTC, Matzkowsky
Details
Core dump with debug information (77.80 KB, text/vnd.kde.kcrash-report)
2024-03-26 06:19 UTC, Matzkowsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matzkowsky 2024-03-24 11:46:16 UTC
Created attachment 167695 [details]
journal log containing the core dump

SUMMARY
***
After update to Plasma 6, kwin_wayland core dumps when starting the session. In contrast a X11 session on runs without issues.
***


STEPS TO REPRODUCE
1. Use ArchLinux with SDDM login manager
2. Select wayland session and login

OBSERVED RESULT
- kwin_wayland core dump
- 1st error in log: kernel: traps: kwin_wayland[1656] trap divide error ip:7e033f9c9321 sp:7ffef9cc3e30 error:0 in i965_dri.so[7e033f17c000+8c7000]

EXPECTED RESULT
- starting graphical wayland session

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux, Plasma 6
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Matzkowsky 2024-03-24 11:51:35 UTC
Created attachment 167696 [details]
DrKonqi crash dump no 1.

First crash dump created while starting a wayland session with Plasma 6.  There are 9 more crash dumps from that session login attempt.
Comment 2 Matzkowsky 2024-03-24 11:54:07 UTC
Created attachment 167697 [details]
DrKonqi crash dump no 2-9

Consecutive crash dumps from a single login attempt to a wayland session.
Comment 3 Matzkowsky 2024-03-24 11:56:03 UTC
Also reported here from another guy: https://www.reddit.com/r/kde/comments/1bbbdb3/wayland_doesnt_work_after_updating_to_plasma_6/
Comment 4 Nicolas Fella 2024-03-24 13:23:02 UTC
Please follow https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl to get a backtrace with debug symbols for the crash
Comment 5 Matzkowsky 2024-03-26 06:19:17 UTC
Created attachment 167778 [details]
Core dump with debug information
Comment 6 Nicolas Fella 2024-03-26 13:33:29 UTC
Thank you

#0  isl_tiling_get_info.isra.0 () at ../mesa-21.3.9/src/intel/isl/isl.c:369
#1  0x00007b26364f16c8 in isl_surf_init_s () at ../mesa-21.3.9/src/intel/isl/isl.c:1764
#2  0x00007b2636839afb in brw_create_image_common.isra.0 () at ../mesa-21.3.9/src/mesa/drivers/dri/i965/brw_screen.c:772
#3  0x00007b263e231f54 in loader_dri_create_image () at ../mesa-21.3.9/src/loader/loader_dri_helper.c:61
#4  gbm_dri_bo_create () at ../mesa-21.3.9/src/gbm/backends/dri/gbm_dri.c:1226
#5  0x00007b263e2357db in gbm_bo_create_with_modifiers () at ../mesa-21.3.9/src/gbm/main/gbm.c:514
#6  0x00007b263fb748c5 in KWin::allocateDmaBuf (device=0x61a0ea0aa820, options=...) at /usr/src/debug/kwin/kwin-6.0.2/src/core/gbmgraphicsbufferallocator.cpp:159
#7  0x00007b263fc57837 in KWin::EglSwapchain::create (allocator=0x61a0ea10d1a0, context=0x61a0ea1d4a50, size=..., format=808665688, modifiers=<optimized out>) at /usr/src/debug/kwin/kwin-6.0.2/src/opengl/eglswapchain.cpp:145
#8  0x00007b263fdddf0a in KWin::EglGbmLayerSurface::createGbmSwapchain (this=<optimized out>, gpu=0x61a0ea0aa420, context=0x61a0ea1d4a50, size=..., format=808665688, modifiers=..., importMode=KWin::EglGbmLayerSurface::MultiGpuImportMode::None, bufferTarget=KWin::EglGbmLayerSurface::BufferTarget::Normal) at /usr/include/c++/13.2.1/bits/unique_ptr.h:199
#9  0x00007b263fdd9840 in KWin::EglGbmLayerSurface::createSurface (this=0x61a0ea475ea8, size=..., format=<optimized out>, modifiers=..., importMode=KWin::EglGbmLayerSurface::MultiGpuImportMode::None, bufferTarget=KWin::EglGbmLayerSurface::BufferTarget::Normal) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_egl_layer_surface.cpp:446
#10 0x00007b263fdda0b0 in KWin::EglGbmLayerSurface::createSurface(QSize const&, QMap<unsigned int, QList<unsigned long> > const&) const::{lambda(QList<KWin::FormatInfo> const&, KWin::EglGbmLayerSurface::MultiGpuImportMode)#1}::operator()(QList<KWin::FormatInfo> const&, KWin::EglGbmLayerSurface::MultiGpuImportMode) const () at /usr/include/qt6/QtCore/qarraydatapointer.h:413
#11 0x00007b263fdda472 in KWin::EglGbmLayerSurface::createSurface(QSize const&, QMap<unsigned int, QList<unsigned long> > const&) const::{lambda(QList<KWin::FormatInfo>&)#1}::operator()(QList<KWin::FormatInfo>&) const () at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_egl_layer_surface.cpp:377
#12 0x00007b263fddaa2b in KWin::EglGbmLayerSurface::createSurface (formats=..., size=..., this=0x61a0ea475ea8) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_egl_layer_surface.cpp:397
#13 KWin::EglGbmLayerSurface::checkSurface (this=this@entry=0x61a0ea475ea8, size=..., formats=...) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_egl_layer_surface.cpp:274
#14 0x00007b263fddaea3 in KWin::EglGbmLayerSurface::renderTestBuffer (formats=..., bufferSize=..., this=0x61a0ea475ea8) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_egl_layer_surface.cpp:251
#15 KWin::EglGbmLayer::checkTestBuffer (this=0x61a0ea475e30) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_egl_layer.cpp:81
#16 0x00007b263fdefffd in KWin::DrmPipeline::prepareAtomicPresentation (this=0x61a0ea2f1510, commit=0x61a0ea4f9b40) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_pipeline.cpp:245
#17 0x00007b263fdf2018 in KWin::DrmPipeline::prepareAtomicCommit (this=0x61a0ea2f1510, commit=commit@entry=0x61a0ea4f9b40, mode=mode@entry=KWin::DrmPipeline::CommitMode::TestAllowModeset) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_pipeline.cpp:192
#18 0x00007b263fdf2358 in KWin::DrmPipeline::commitPipelinesAtomic (pipelines=..., mode=KWin::DrmPipeline::CommitMode::TestAllowModeset, unusedObjects=...) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_pipeline.cpp:139
#19 0x00007b263fde2f80 in KWin::DrmPipeline::commitPipelines (unusedObjects=..., mode=KWin::DrmPipeline::CommitMode::TestAllowModeset, pipelines=...) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_pipeline.cpp:119
#20 KWin::DrmGpu::testPipelines (this=0x61a0ea0aa420) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_gpu.cpp:467
#21 KWin::DrmGpu::checkCrtcAssignment (this=this@entry=0x61a0ea0aa420, connectors=..., crtcs=...) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_gpu.cpp:386
#22 0x00007b263fde2db9 in KWin::DrmGpu::checkCrtcAssignment (this=this@entry=0x61a0ea0aa420, connectors=..., crtcs=...) at /usr/include/qt6/QtCore/qarraydata.h:53
#23 0x00007b263fde2db9 in KWin::DrmGpu::checkCrtcAssignment (this=this@entry=0x61a0ea0aa420, connectors=..., crtcs=...) at /usr/include/qt6/QtCore/qarraydata.h:53
#24 0x00007b263fde2db9 in KWin::DrmGpu::checkCrtcAssignment (this=this@entry=0x61a0ea0aa420, connectors=..., crtcs=...) at /usr/include/qt6/QtCore/qarraydata.h:53
#25 0x00007b263fde2db9 in KWin::DrmGpu::checkCrtcAssignment (this=this@entry=0x61a0ea0aa420, connectors=..., crtcs=...) at /usr/include/qt6/QtCore/qarraydata.h:53
#26 0x00007b263fde3241 in KWin::DrmGpu::checkCrtcAssignment (this=this@entry=0x61a0ea0aa420, connectors=..., crtcs=...) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_gpu.cpp:408
#27 0x00007b263fde3703 in KWin::DrmGpu::testPendingConfiguration (this=0x61a0ea0aa420) at /usr/include/qt6/QtCore/qarraydata.h:53
#28 0x00007b263fdc68ba in KWin::DrmGpu::updateOutputs (this=<optimized out>) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_gpu.cpp:326
#29 KWin::DrmGpu::updateOutputs (this=<optimized out>) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_gpu.cpp:239
#30 KWin::DrmBackend::updateOutputs (this=0x7b2630009b80) at /usr/src/debug/kwin/kwin-6.0.2/src/backends/drm/drm_backend.cpp:257
#31 0x00007b263d590ca9 in QtPrivate::QSlotObjectBase::call (a=0x7ffec75d4238, r=0x7b2630009b80, this=0x61a0ea41b510, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobjectdefs_impl.h:433
#32 doActivate<false> (sender=0x61a0ea17d5a0, signal_index=6, argv=0x7ffec75d4238) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobject.cpp:4039
#33 0x00007b263fb691e9 in KWin::WaylandCompositor::start (this=0x61a0ea17d5a0) at /usr/src/debug/kwin/kwin-6.0.2/src/compositor_wayland.cpp:190
#34 0x00007b263d57c2c7 in QObject::event (this=0x61a0ea17d5a0, e=0x61a0ea219eb0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobject.cpp:1437
#35 0x00007b263e4f438b in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x61a0ea17d5a0, e=0x61a0ea219eb0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#36 0x00007b263d539818 in QCoreApplication::notifyInternal2 (receiver=0x61a0ea17d5a0, event=event@entry=0x61a0ea219eb0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#37 0x00007b263d539b9b in QCoreApplication::sendEvent (event=0x61a0ea219eb0, receiver=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1539
#38 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x61a0e9fe0430) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1901
#39 0x00007b263d69f18f in QEventDispatcherUNIX::processEvents (this=0x61a0ea018840, flags=flags@entry=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qeventdispatcher_unix.cpp:431
#40 0x00007b263dfb26e2 in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/platform/unix/qunixeventdispatcher.cpp:27
#41 0x00007b263d543d6e in QEventLoop::processEvents (flags=..., this=0x7ffec75d4710) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qeventloop.cpp:100
#42 QEventLoop::exec (this=0x7ffec75d4710, flags=...) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qeventloop.cpp:182
#43 0x00007b263d53c2b8 in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/global/qflags.h:74
#44 0x00007b263e4f0f0a in QApplication::exec () at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:2574
#45 0x000061a0e8e05dee in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kwin/kwin-6.0.2/src/main_wayland.cpp:609
Comment 7 Matzkowsky 2024-05-14 05:25:21 UTC
This crash occurs when using the combination of KDE6 + intel-graphics (i965) + Wayland + mesa-amber. 
I noticed that uninstalling mesa-amber and installing mesa instead resolves the issue, allowing to run a Wayland session on KDE6 successfully.
Given the fact that mesa-amber is no longer actively maintained and using mesa works just fine, we may close this issue.