Bug 482913 - Kwin (wayland) segfaults during normal use
Summary: Kwin (wayland) segfaults during normal use
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-08 19:13 UTC by Martmists
Modified: 2024-06-10 10:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.3
Sentry Crash Report:


Attachments
output of journalctl (38.36 KB, text/x-log)
2024-03-08 19:13 UTC, Martmists
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martmists 2024-03-08 19:13:29 UTC
Created attachment 166732 [details]
output of journalctl

SUMMARY
Kwin randomly crashed during regular use.


STEPS TO REPRODUCE
Unknown

OBSERVED RESULT
Kwin crashed, the attached log is the output or `journalctl`, trimmed to the relevant parts.

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Linux: 6.7.8-zen1-1-zen (64-bit)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 fanzhuyifan 2024-03-08 20:29:46 UTC
Thank you for the bug report! Unfortunately the backtrace is incomplete and missing debug symbols that we need to figure out exactly what's going wrong.

Could you please install debug symbols and attach a new symbolicated backtrace generated by using coredumpctl gdb in a terminal window? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl for details about how to do this.

Thanks again!
Comment 2 Martmists 2024-03-08 20:39:27 UTC
Here's the backtrace from GDB after following those instructions:

#0  0x00007e0eb29681c7 in ??? () at /usr/lib/libkwin.so.6
#1  0x00007e0eb2968ad0 in ??? () at /usr/lib/libkwin.so.6
#2  0x00007e0eb0190ca9 in ??? () at /usr/lib/libQt6Core.so.6
#3  0x00007e0eb298e61c in KWin::Cursors::positionChanged(KWin::Cursor*, QPointF const&) () at /usr/lib/libkwin.so.6
#4  0x00007e0eb0190ca9 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x00007e0eb298e3e7 in KWin::Cursor::posChanged(QPointF const&) () at /usr/lib/libkwin.so.6
#6  0x00007e0eb2a9bac3 in ??? () at /usr/lib/libkwin.so.6
#7  0x00007e0eb2a9bf62 in ??? () at /usr/lib/libkwin.so.6
#8  0x00007e0eb2acd992 in KWin::Edge::pushCursorBack(QPoint const&) () at /usr/lib/libkwin.so.6
#9  0x00007e0eb2ad357f in KWin::Edge::check(QPoint const&, QDateTime const&, bool) () at /usr/lib/libkwin.so.6
#10 0x00007e0eb2ad3888 in KWin::ScreenEdges::isEntered(QMouseEvent*) () at /usr/lib/libkwin.so.6
#11 0x00007e0eb2a0c3b4 in ??? () at /usr/lib/libkwin.so.6
#12 0x00007e0eb2a965c8 in KWin::PointerInputRedirection::processMotionInternal(QPointF const&, QPointF const&, QPointF const&, std::chrono::duration<long, std::ratio<1l, 1000000l> >, KWin::InputDevice*) () at /usr/lib/libkwin.so.6
#13 0x00007e0eb2a9686d in KWin::PointerInputRedirection::processMotionInternal(QPointF const&, QPointF const&, QPointF const&, std::chrono::duration<long, std::ratio<1l, 1000000l> >, KWin::InputDevice*) () at /usr/lib/libkwin.so.6
-- the above line repeats ~22700 times --
#22761 0x00007e0eb2a9686d in KWin::PointerInputRedirection::processMotionInternal(QPointF const&, QPointF const&, QPointF const&, std::chrono::duration<long, std::ratio<1l, 1000000l> >, KWin::InputDevice*) () at /usr/lib/libkwin.so.6
#22762 0x00007e0eb2a97691 in KWin::PointerInputRedirection::processMotion(QPointF const&, QPointF const&, std::chrono::duration<long, std::ratio<1l, 1000000l> >, KWin::InputDevice*) () at /usr/lib/libkwin.so.6
#22763 0x00007e0eb0190ca9 in ??? () at /usr/lib/libQt6Core.so.6
#22764 0x00007e0eb2975856 in KWin::InputDevice::pointerMotion(QPointF const&, QPointF const&, std::chrono::duration<long, std::ratio<1l, 1000000l> >, KWin::InputDevice*) () at /usr/lib/libkwin.so.6
#22765 0x00007e0eb2c02f56 in KWin::LibInput::Connection::processEvents() () at /usr/lib/libkwin.so.6
#22766 0x00007e0eb017c2c7 in QObject::event(QEvent*) () at /usr/lib/libQt6Core.so.6
#22767 0x00007e0eb12f438b in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt6Widgets.so.6
#22768 0x00007e0eb0139818 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt6Core.so.6
#22769 0x00007e0eb0139b9b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt6Core.so.6
#22770 0x00007e0eb029f18f in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6
#22771 0x00007e0eb0bb26e2 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Gui.so.6
#22772 0x00007e0eb0143d6e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6
#22773 0x00007e0eb013c2b8 in QCoreApplication::exec() () at /usr/lib/libQt6Core.so.6
#22774 0x00005fc3c91b8dee in ??? ()
#22775 0x00007e0eafa43cd0 in ??? () at /usr/lib/libc.so.6
#22776 0x00007e0eafa43d8a in __libc_start_main () at /usr/lib/libc.so.6
#22777 0x00005fc3c91bf425 in ??? ()
Comment 3 fanzhuyifan 2024-03-09 03:00:45 UTC
(In reply to martmists from comment #2)
> Here's the backtrace from GDB after following those instructions:

Could you please install debug symbols and attach a new symbolicated backtrace? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Arch_Linux for instructions for Arch.

Thanks again!
Comment 4 Martmists 2024-03-09 10:37:59 UTC
I believe I did; I ran `gdb /usr/lib/libkwin.so.6` and let debuginfod download the symbols, then I can `coredumpctl gdb <id>` and posted the output of `bt`, just like the guides said, or did I need to do it differently?
Comment 5 Bug Janitor Service 2024-03-24 03:46:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!