Bug 527810 - Plasma shell crashes when opening KickOff/Kicker/KickerDash with the Meta/Win/Super key or Alt+F1
Summary: Plasma shell crashes when opening KickOff/Kicker/KickerDash with the Meta/Win...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (other bugs)
Version First Reported In: 6.8.0
Platform: EndeavourOS Linux
: NOR crash
Target Milestone: 1.0
Assignee: Mauricius
URL:
Keywords:
: 527898 528414 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-10-25 19:50 UTC by Matija Šuklje
Modified: 2026-11-06 07:12 UTC (History)
9 users (show)

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


Attachments
DrKonqi crash report (45.40 KB, text/plain)
2026-10-25 19:50 UTC, Matija Šuklje
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matija Šuklje 2026-10-25 19:50:47 UTC
Created attachment 197655 [details]
DrKonqi crash report

DESCRIPTION

Since upgrading to Plasma 6.8, whenever I press the Meta/Super/Win key or Alt+F1 to open Kickoff, Plasma Shell crashes. The same happens with Kicker and KickDash too.

STEPS TO REPRODUCE
1. Press Win/Meta/Super key (or Alt+F1) – i.e. the shortcut to open the application launcher/menu
2. see Plasma Shell crash

reproducable:
- always
- on both 6.8.0 and 6.8.1

OBSERVED RESULT

Launcher/menu does not open.
Plasma Shell crashes.

EXPECTED RESULT

Launcher/menu opens.
Plasma does not crash.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.8.1
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0
Kernel Version: 7.2.11-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
Memory: 32 GiB of RAM (30.7 GiB usable)
Graphics Processor: AMD Radeon Graphics
Manufacturer: SLIMBOOK
Product Name: PROX-AMD5

ADDITIONAL INFORMATION

If I click on the application launcher menu icon though, it works an expected.
Comment 1 cwo 2026-10-26 11:37:59 UTC
Thank you for the bug report! Unfortunately I can't reproduce the crash myself on current git master, and the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:


                #3  0x00007fa4c9a3e6f0 n/a (libc.so.6 + 0x3e6f0)
                #4  0x00007fa4cd16e973 _ZNK6Plasma11Containment6screenEv (libPlasma.so.8 + 0x2e973)

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 Mauricius 2026-10-27 11:23:15 UTC
I encountered this bug on my setup too. I assume the OP had a lot of screens and/or activities, while @cwo didn't.

The issue was non-strict ordering used to sort containments, which was UB. It seems the issue doesn't happen when NumScreens*NumActivities <= 16, because g++ uses a different algorithm for sorting less than 16 items. Also for some combinations the non-strict ordering just doesn't happen.

I fixed the bug locally, so I'll publish the fix later this day.
Comment 3 Matija Šuklje 2026-10-27 20:24:45 UTC
Mauricius is right, my setup is:

- 2 screens: laptop screen (most of the time off) and external monitor (most of the time on); only rarely are they both active at the same time
- 9 virtual desktops
- 21 Activities (currently, it typically fluctuates around two dozen)

Regarding the debug symbols, gdb itself crashes for some reason in this particular issue. Would it still be useful if I try to fix the missing debug symbols or is there enough info available?
Comment 4 cwo 2026-10-27 21:16:52 UTC
Let's wait for Mauricius.
Comment 5 Bug Janitor Service 2026-10-28 09:15:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7316
Comment 6 Mauricius 2026-10-28 09:17:14 UTC
Here's the MR. Hopefully it won't take long to merge and update, because this bug is quite annoying.

I'm somewhat new to merging things here, so please tell me if there's anything else I need to do.
Comment 7 Mauricius 2026-10-28 09:19:05 UTC
(In reply to Matija Šuklje from comment #3)
> Mauricius is right, my setup is:
> 
> - 2 screens: laptop screen (most of the time off) and external monitor (most
> of the time on); only rarely are they both active at the same time
> - 9 virtual desktops
> - 21 Activities (currently, it typically fluctuates around two dozen)
> 
> Regarding the debug symbols, gdb itself crashes for some reason in this
> particular issue. Would it still be useful if I try to fix the missing debug
> symbols or is there enough info available?

It seems the issue is fixed (it works on my machine 😜), so for me personally there's no need for any additional info.
Comment 8 Marco Martin 2026-10-28 09:19:27 UTC
From the incomplete backtrace we know it crashes at a call of Containment::screen() called somewhere in plasmashell which doesn't have debug symbols at all. i guess is from ShellCorona, though there are 32 calls of this method there so don't know exactly which it is.
Comment 9 Mauricius 2026-10-28 09:23:32 UTC
(In reply to Marco Martin from comment #8)
> From the incomplete backtrace we know it crashes at a call of
> Containment::screen() called somewhere in plasmashell which doesn't have
> debug symbols at all. i guess is from ShellCorona, though there are 32 calls
> of this method there so don't know exactly which it is.

This makes sense. If it was 16 calls  it probably wouldn't crash. But I got the debug symbols on my setup, and it's almost certainly the same bug.
Comment 10 Marco Martin 2026-10-28 10:27:50 UTC
inline bactrace form the merge request.

Thread 1 (Thread 0x7fffee120280 (LWP 303266)):
#0  __pthread_kill_implementation (no_tid=0, signo=11, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
        tid = <optimized out>
        ret = 0
        pd = <optimized out>
        old_mask = {__val = {0}}
        ret = <optimized out>
        pd = <optimized out>
        old_mask = {__val = {<optimized out>}}
        ret = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
        resultvar = <optimized out>
        resultvar = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
        __futex = <optimized out>
        resultvar = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
        __futex = <optimized out>
        __private = <optimized out>
        __oldval = <optimized out>
#1  __pthread_kill_internal (signo=11, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ./nptl/pthread_kill.c:89
#3  0x00007ffff424527e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
        ret = <optimized out>
#4  0x00007ffff7a79926 in KCrash::defaultCrashHandler(int) () at /lib/x86_64-linux-gnu/libKF6Crash.so.6
#5  0x00007ffff4245330 in <signal handler called> () at /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007ffff7c37334 in Plasma::Containment::containmentType() const () at /lib/x86_64-linux-gnu/libPlasma.so.8
#7  0x0000555555606c34 in operator() (__closure=0x7fffffffc584, conta=0x555556292980, contb=0x0) at /home/mauricios/kde/src/plasma-workspace/shell/shellcorona.cpp:2974
        screenId = 1
#8  0x00005555556136ca in __gnu_cxx::__ops::_Val_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >::operator()<Plasma::Containment*, QList<Plasma::Containment*>::iterator>(Plasma::Containment *&, QList<Plasma::Containment*>::iterator) (this=0x7fffffffc584, __val=@0x7fffffffc598: 0x555556292980, __it=...) at /usr/include/c++/14/bits/predefined_ops.h:240
#9  0x0000555555612182 in std::__unguarded_linear_insert<QList<Plasma::Containment*>::iterator, __gnu_cxx::__ops::_Val_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> > >(QList<Plasma::Containment*>::iterator, __gnu_cxx::__ops::_Val_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >) (__last=..., __comp=...) at /usr/include/c++/14/bits/stl_algo.h:1757
        __val = 0x555556292980
        __next = {i = 0x555560149e88}
#10 0x0000555555610fae in std::__unguarded_insertion_sort<QList<Plasma::Containment*>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> > >(QList<Plasma::Containment*>::iterator, QList<Plasma::Containment*>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >) (__first=..., __last=..., __comp=...) at /usr/include/c++/14/bits/stl_algo.h:1798
        __i = {i = 0x555560149f50}
#11 0x000055555560eec1 in std::__final_insertion_sort<QList<Plasma::Containment*>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> > >(QList<Plasma::Containment*>::iterator, QList<Plasma::Containment*>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >) (__first=..., __last=..., __comp=...) at /usr/include/c++/14/bits/stl_algo.h:1818
#12 0x000055555560da4d in std::__sort<QList<Plasma::Containment*>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> > >(QList<Plasma::Containment*>::iterator, QList<Plasma::Containment*>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >) (__first=..., __last=..., __comp=...) at /usr/include/c++/14/bits/stl_algo.h:1908
#13 0x000055555560bf64 in std::sort<QList<Plasma::Containment*>::iterator, ShellCorona::activateLauncherMenu(const QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >(QList<Plasma::Containment*>::iterator, QList<Plasma::Containment*>::iterator, struct {...}) (__first=..., __last=..., __comp=...) at /usr/include/c++/14/bits/stl_algo.h:4804
#14 0x0000555555606d3c in ShellCorona::activateLauncherMenu (this=0x7fffffffd070, screenName=...) at /home/mauricios/kde/src/plasma-workspace/shell/shellcorona.cpp:2968
        activateLauncher = {<No data fields>}
        screenOpt = std::optional = {[contained value] = 1}
        screenId = 1
        conts = {<QListSpecialMethods<Plasma::Containment*>> = {<QListSpecialMethodsBase<Plasma::Containment*>> = {<No data fields>}, <No data fields>}, d = {d = 0x555560149de0, ptr = 0x555560149e90, size = 31}}
#15 0x00005555556067fd in operator() (__closure=0x55555fe91940) at /home/mauricios/kde/src/plasma-workspace/shell/shellcorona.cpp:2945
        reply = {m_error = {code = QDBusError::NoError, msg = {d = {d = 0x0, ptr = 0x0, size = 0}, static _empty = 0 u'\000'}, nm = {d = {d = 0x0, ptr = 0x0, size = 0}, static _empty = 0 u'\000'}, unused = 0x7fffffffc778}, m_data = {d = {d = 0x7fffe80d9290, ptr = 0x7fffe80d92a0 u"DVI-I-2", size = 7}, static _empty = 0 u'\000'}}
        watcher = 0x55555ffa1800
        this = 0x7fffffffd070
#16 0x000055555561343d in operator() (__closure=0x7fffffffc860) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:117
        arg = @0x7fffffffc850: 0x7fffffffc9f0
        f = @0x55555fe91940: {__this = 0x7fffffffd070, __watcher = 0x55555ffa1800}
#17 0x0000555555613d2e in QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<long unsigned int>, QtPrivate::List<>, void, ShellCorona::activateLauncherMenu()::<lambda()> >::call(ShellCorona::activateLauncherMenu()::<lambda()>&, void**)::<lambda()> >(void **, struct {...} &&) (args=0x7fffffffc9f0, fn=...) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:66
#18 0x0000555555613482 in QtPrivate::FunctorCall<std::integer_sequence<long unsigned int>, QtPrivate::List<>, void, ShellCorona::activateLauncherMenu()::<lambda()> >::call(struct {...} &, void **) (f=..., arg=0x7fffffffc9f0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:116
#19 0x0000555555611d3b in QtPrivate::FunctorCallable<ShellCorona::activateLauncherMenu()::<lambda()> >::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=..., arg=0x7fffffffc9f0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:338
#20 0x0000555555610d05 in QtPrivate::QCallableObject<ShellCorona::activateLauncherMenu()::<lambda()>, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x55555fe91930, r=0x7fffffffd070, a=0x7fffffffc9f0, ret=0x0) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:548
        that = 0x55555fe91930
#21 0x00007ffff4eb01dd in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#22 0x00007ffff5b87891 in QDBusPendingCallWatcher::finished(QDBusPendingCallWatcher*) () at /lib/x86_64-linux-gnu/libQt6DBus.so.6
#23 0x00007ffff4e4b60a in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#24 0x00007ffff64463bd in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#25 0x00007ffff4ef2040 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#26 0x00007ffff4ef2302 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#27 0x00007ffff4cc067f in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#28 0x00007ffff3be0635 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007ffff3c3fbf7 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007ffff3bdfad3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007ffff4cbecbf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#32 0x00007ffff4efd1bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#33 0x00007ffff4ef4dff in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#34 0x00005555555982b6 in main (argc=2, argv=0x7fffffffd368) at /home/mauricios/kde/src/plasma-workspace/shell/main.cpp:222
        format = {d = 0x5555557cb940}
        app = <incomplete type>
        aboutData = {d = std::unique_ptr<class KAboutDataPrivate> = {get() = 0x5555558d6a00}}
        replace = false
        corona = {<Plasma::Corona> = {<No data fields>}, <QDBusContext> = {d_ptr = 0x0}, static staticMetaObject = {d = {superdata = {direct = 0x555555765120 <Plasma::Corona::staticMetaObject>}, stringdata = 0x5555556d7334 <ShellCorona::qt_staticMetaObjectStaticContent<(anonymous namespace)::qt_meta_tag_ZN11ShellCoronaE_t>+2132>, data = 0x5555556d6ae0 <ShellCorona::qt_staticMetaObjectStaticContent<(anonymous namespace)::qt_meta_tag_ZN11ShellCoronaE_t>>, static_metacall = 0x555555607a96 <ShellCorona::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, metaTypes = 0x55555576a580 <ShellCorona::qt_staticMetaObjectRelocatingContent<(anonymous namespace)::qt_meta_tag_ZN11ShellCoronaE_t>>, extradata = 0x0}}, m_config = {<QSharedDataPointerBase<QExplicitlySharedDataPointer, KSharedConfig>> = {d = {ptr = 0x555555917420}}, <No data fields>}, m_kdeGlobalsConfigWatcher = {value = {ptr = 0x5555559491b0}, d = 0x555555945840}, m_accentColorFromWallpaperEnabled = true, m_fakeColorRequestConn = {d_ptr = 0x0}, m_screenPool = 0x5555558fd010, m_shell = {d = {d = 0x0, ptr = 0x5555556d4c18 u"org.kde.plasma.desktop", size = 22}, static _empty = 0 u'\000'}, m_activityController = 0x555555900bb0, m_panelViews = {d = {d = {ptr = 0x555557170b70}}}, m_desktopViewForScreen = {d = 0x555556b5c910}, m_desktopDefaultsConfig = <incomplete type>, m_lnfDefaultsConfig = <incomplete type>, m_waitingPanels = {<QListSpecialMethods<QPointer<Plasma::Containment> >> = {<QListSpecialMethodsBase<QPointer<Plasma::Containment> >> = {<No data fields>}, <No data fields>}, d = {d = 0x0, ptr = 0x0, size = 0}}, m_activityContainmentPlugins = {d = 0x555555f77ee0}, m_addPanelAction = 0x555558d593c0, m_addPanelsMenu = std::unique_ptr<class QMenu> = {get() = 0x555556ca8ea0}, m_lookAndFeelPackage = <incomplete type>, m_blockRestorePreviousWindow = false, m_waitingPanelsTimer = <incomplete type>, m_appConfigSyncTimer = <incomplete type>, m_waylandWindowManagement = 0x555555968600, m_previousPlasmaWindow = {wp = {d = 0x0, value = 0x0}}, m_closingDown = false, m_screenReorderInProgress = false, m_testModeLayout = {d = {d = 0x0, ptr = 0x0, size = 0}, static _empty = 0 u'\000'}, m_showingAlternatives = 0x0, m_strutManager = 0x5555559029c0, m_shellContainmentConfig = {wp = {d = 0x0, value = 0x0}}, m_screensWithUiReady = {q_hash = {d = 0x5555562b1890}}}
        __PRETTY_FUNCTION__ = "int main(int, char**)"
        service = <incomplete type>
Comment 11 Mauricius 2026-10-28 10:30:33 UTC
(In reply to Marco Martin from comment #10)
> inline bactrace form the merge request.
> 
> Thread 1 (Thread 0x7fffee120280 (LWP 303266)):
> #0  __pthread_kill_implementation (no_tid=0, signo=11, threadid=<optimized
> out>) at ./nptl/pthread_kill.c:44
>         tid = <optimized out>
>         ret = 0
>         pd = <optimized out>
>         old_mask = {__val = {0}}
>         ret = <optimized out>
>         pd = <optimized out>
>         old_mask = {__val = {<optimized out>}}
>         ret = <optimized out>
>         tid = <optimized out>
>         ret = <optimized out>
>         resultvar = <optimized out>
>         resultvar = <optimized out>
>         __arg3 = <optimized out>
>         __arg2 = <optimized out>
>         __arg1 = <optimized out>
>         _a3 = <optimized out>
>         _a2 = <optimized out>
>         _a1 = <optimized out>
>         __futex = <optimized out>
>         resultvar = <optimized out>
>         __arg3 = <optimized out>
>         __arg2 = <optimized out>
>         __arg1 = <optimized out>
>         _a3 = <optimized out>
>         _a2 = <optimized out>
>         _a1 = <optimized out>
>         __futex = <optimized out>
>         __private = <optimized out>
>         __oldval = <optimized out>
> #1  __pthread_kill_internal (signo=11, threadid=<optimized out>) at
> ./nptl/pthread_kill.c:78
> #2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at
> ./nptl/pthread_kill.c:89
> #3  0x00007ffff424527e in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
>         ret = <optimized out>
> #4  0x00007ffff7a79926 in KCrash::defaultCrashHandler(int) () at
> /lib/x86_64-linux-gnu/libKF6Crash.so.6
> #5  0x00007ffff4245330 in <signal handler called> () at
> /lib/x86_64-linux-gnu/libc.so.6
> #6  0x00007ffff7c37334 in Plasma::Containment::containmentType() const () at
> /lib/x86_64-linux-gnu/libPlasma.so.8
> #7  0x0000555555606c34 in operator() (__closure=0x7fffffffc584,
> conta=0x555556292980, contb=0x0) at
> /home/mauricios/kde/src/plasma-workspace/shell/shellcorona.cpp:2974
>         screenId = 1
> #8  0x00005555556136ca in
> __gnu_cxx::__ops::_Val_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)>
> >::operator()<Plasma::Containment*,
> QList<Plasma::Containment*>::iterator>(Plasma::Containment *&,
> QList<Plasma::Containment*>::iterator) (this=0x7fffffffc584,
> __val=@0x7fffffffc598: 0x555556292980, __it=...) at
> /usr/include/c++/14/bits/predefined_ops.h:240
> #9  0x0000555555612182 in
> std::__unguarded_linear_insert<QList<Plasma::Containment*>::iterator,
> __gnu_cxx::__ops::_Val_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >
> >(QList<Plasma::Containment*>::iterator,
> __gnu_cxx::__ops::_Val_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >)
> (__last=..., __comp=...) at /usr/include/c++/14/bits/stl_algo.h:1757
>         __val = 0x555556292980
>         __next = {i = 0x555560149e88}
> #10 0x0000555555610fae in
> std::__unguarded_insertion_sort<QList<Plasma::Containment*>::iterator,
> __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >
> >(QList<Plasma::Containment*>::iterator,
> QList<Plasma::Containment*>::iterator,
> __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >)
> (__first=..., __last=..., __comp=...) at
> /usr/include/c++/14/bits/stl_algo.h:1798
>         __i = {i = 0x555560149f50}
> #11 0x000055555560eec1 in
> std::__final_insertion_sort<QList<Plasma::Containment*>::iterator,
> __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >
> >(QList<Plasma::Containment*>::iterator,
> QList<Plasma::Containment*>::iterator,
> __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >)
> (__first=..., __last=..., __comp=...) at
> /usr/include/c++/14/bits/stl_algo.h:1818
> #12 0x000055555560da4d in std::__sort<QList<Plasma::Containment*>::iterator,
> __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >
> >(QList<Plasma::Containment*>::iterator,
> QList<Plasma::Containment*>::iterator,
> __gnu_cxx::__ops::_Iter_comp_iter<ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)> >)
> (__first=..., __last=..., __comp=...) at
> /usr/include/c++/14/bits/stl_algo.h:1908
> #13 0x000055555560bf64 in std::sort<QList<Plasma::Containment*>::iterator,
> ShellCorona::activateLauncherMenu(const
> QString&)::<lambda(Plasma::Containment*, Plasma::Containment*)>
> >(QList<Plasma::Containment*>::iterator,
> QList<Plasma::Containment*>::iterator, struct {...}) (__first=...,
> __last=..., __comp=...) at /usr/include/c++/14/bits/stl_algo.h:4804
> #14 0x0000555555606d3c in ShellCorona::activateLauncherMenu
> (this=0x7fffffffd070, screenName=...) at
> /home/mauricios/kde/src/plasma-workspace/shell/shellcorona.cpp:2968
>         activateLauncher = {<No data fields>}
>         screenOpt = std::optional = {[contained value] = 1}
>         screenId = 1
>         conts = {<QListSpecialMethods<Plasma::Containment*>> =
> {<QListSpecialMethodsBase<Plasma::Containment*>> = {<No data fields>}, <No
> data fields>}, d = {d = 0x555560149de0, ptr = 0x555560149e90, size = 31}}
> #15 0x00005555556067fd in operator() (__closure=0x55555fe91940) at
> /home/mauricios/kde/src/plasma-workspace/shell/shellcorona.cpp:2945
>         reply = {m_error = {code = QDBusError::NoError, msg = {d = {d = 0x0,
> ptr = 0x0, size = 0}, static _empty = 0 u'\000'}, nm = {d = {d = 0x0, ptr =
> 0x0, size = 0}, static _empty = 0 u'\000'}, unused = 0x7fffffffc778}, m_data
> = {d = {d = 0x7fffe80d9290, ptr = 0x7fffe80d92a0 u"DVI-I-2", size = 7},
> static _empty = 0 u'\000'}}
>         watcher = 0x55555ffa1800
>         this = 0x7fffffffd070
> #16 0x000055555561343d in operator() (__closure=0x7fffffffc860) at
> /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:117
>         arg = @0x7fffffffc850: 0x7fffffffc9f0
>         f = @0x55555fe91940: {__this = 0x7fffffffd070, __watcher =
> 0x55555ffa1800}
> #17 0x0000555555613d2e in QtPrivate::FunctorCallBase::call_internal<void,
> QtPrivate::FunctorCall<std::integer_sequence<long unsigned int>,
> QtPrivate::List<>, void, ShellCorona::activateLauncherMenu()::<lambda()>
> >::call(ShellCorona::activateLauncherMenu()::<lambda()>&,
> void**)::<lambda()> >(void **, struct {...} &&) (args=0x7fffffffc9f0,
> fn=...) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:66
> #18 0x0000555555613482 in QtPrivate::FunctorCall<std::integer_sequence<long
> unsigned int>, QtPrivate::List<>, void,
> ShellCorona::activateLauncherMenu()::<lambda()> >::call(struct {...} &, void
> **) (f=..., arg=0x7fffffffc9f0) at
> /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:116
> #19 0x0000555555611d3b in
> QtPrivate::FunctorCallable<ShellCorona::activateLauncherMenu()::<lambda()>
> >::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=...,
> arg=0x7fffffffc9f0) at
> /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:338
> #20 0x0000555555610d05 in
> QtPrivate::QCallableObject<ShellCorona::activateLauncherMenu()::<lambda()>,
> QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *,
> void **, bool *) (which=1, this_=0x55555fe91930, r=0x7fffffffd070,
> a=0x7fffffffc9f0, ret=0x0) at
> /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:548
>         that = 0x55555fe91930
> #21 0x00007ffff4eb01dd in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
> #22 0x00007ffff5b87891 in
> QDBusPendingCallWatcher::finished(QDBusPendingCallWatcher*) () at
> /lib/x86_64-linux-gnu/libQt6DBus.so.6
> #23 0x00007ffff4e4b60a in QObject::event(QEvent*) () at
> /lib/x86_64-linux-gnu/libQt6Core.so.6
> #24 0x00007ffff64463bd in QApplicationPrivate::notify_helper(QObject*,
> QEvent*) () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
> #25 0x00007ffff4ef2040 in QCoreApplication::notifyInternal2(QObject*,
> QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
> #26 0x00007ffff4ef2302 in
> QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at
> /lib/x86_64-linux-gnu/libQt6Core.so.6
> #27 0x00007ffff4cc067f in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
> #28 0x00007ffff3be0635 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #29 0x00007ffff3c3fbf7 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #30 0x00007ffff3bdfad3 in g_main_context_iteration () at
> /lib/x86_64-linux-gnu/libglib-2.0.so.0
> #31 0x00007ffff4cbecbf in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
> () at /lib/x86_64-linux-gnu/libQt6Core.so.6
> #32 0x00007ffff4efd1bb in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
> /lib/x86_64-linux-gnu/libQt6Core.so.6
> #33 0x00007ffff4ef4dff in QCoreApplication::exec() () at
> /lib/x86_64-linux-gnu/libQt6Core.so.6
> #34 0x00005555555982b6 in main (argc=2, argv=0x7fffffffd368) at
> /home/mauricios/kde/src/plasma-workspace/shell/main.cpp:222
>         format = {d = 0x5555557cb940}
>         app = <incomplete type>
>         aboutData = {d = std::unique_ptr<class KAboutDataPrivate> = {get() =
> 0x5555558d6a00}}
>         replace = false
>         corona = {<Plasma::Corona> = {<No data fields>}, <QDBusContext> =
> {d_ptr = 0x0}, static staticMetaObject = {d = {superdata = {direct =
> 0x555555765120 <Plasma::Corona::staticMetaObject>}, stringdata =
> 0x5555556d7334 <ShellCorona::qt_staticMetaObjectStaticContent<(anonymous
> namespace)::qt_meta_tag_ZN11ShellCoronaE_t>+2132>, data = 0x5555556d6ae0
> <ShellCorona::qt_staticMetaObjectStaticContent<(anonymous
> namespace)::qt_meta_tag_ZN11ShellCoronaE_t>>, static_metacall =
> 0x555555607a96 <ShellCorona::qt_static_metacall(QObject*, QMetaObject::Call,
> int, void**)>, relatedMetaObjects = 0x0, metaTypes = 0x55555576a580
> <ShellCorona::qt_staticMetaObjectRelocatingContent<(anonymous
> namespace)::qt_meta_tag_ZN11ShellCoronaE_t>>, extradata = 0x0}}, m_config =
> {<QSharedDataPointerBase<QExplicitlySharedDataPointer, KSharedConfig>> = {d
> = {ptr = 0x555555917420}}, <No data fields>}, m_kdeGlobalsConfigWatcher =
> {value = {ptr = 0x5555559491b0}, d = 0x555555945840},
> m_accentColorFromWallpaperEnabled = true, m_fakeColorRequestConn = {d_ptr =
> 0x0}, m_screenPool = 0x5555558fd010, m_shell = {d = {d = 0x0, ptr =
> 0x5555556d4c18 u"org.kde.plasma.desktop", size = 22}, static _empty = 0
> u'\000'}, m_activityController = 0x555555900bb0, m_panelViews = {d = {d =
> {ptr = 0x555557170b70}}}, m_desktopViewForScreen = {d = 0x555556b5c910},
> m_desktopDefaultsConfig = <incomplete type>, m_lnfDefaultsConfig =
> <incomplete type>, m_waitingPanels =
> {<QListSpecialMethods<QPointer<Plasma::Containment> >> =
> {<QListSpecialMethodsBase<QPointer<Plasma::Containment> >> = {<No data
> fields>}, <No data fields>}, d = {d = 0x0, ptr = 0x0, size = 0}},
> m_activityContainmentPlugins = {d = 0x555555f77ee0}, m_addPanelAction =
> 0x555558d593c0, m_addPanelsMenu = std::unique_ptr<class QMenu> = {get() =
> 0x555556ca8ea0}, m_lookAndFeelPackage = <incomplete type>,
> m_blockRestorePreviousWindow = false, m_waitingPanelsTimer = <incomplete
> type>, m_appConfigSyncTimer = <incomplete type>, m_waylandWindowManagement =
> 0x555555968600, m_previousPlasmaWindow = {wp = {d = 0x0, value = 0x0}},
> m_closingDown = false, m_screenReorderInProgress = false, m_testModeLayout =
> {d = {d = 0x0, ptr = 0x0, size = 0}, static _empty = 0 u'\000'},
> m_showingAlternatives = 0x0, m_strutManager = 0x5555559029c0,
> m_shellContainmentConfig = {wp = {d = 0x0, value = 0x0}},
> m_screensWithUiReady = {q_hash = {d = 0x5555562b1890}}}
>         __PRETTY_FUNCTION__ = "int main(int, char**)"
>         service = <incomplete type>

Thanks, I should've pasted it here too myself.
Comment 12 Marco Martin 2026-10-28 12:54:06 UTC
Git commit 0183bbc9810e6e60de792e9fc84a36f33f1a3e24 by Marco Martin, on behalf of Mauricio Šmit.
Committed on 28/10/2026 at 12:53.
Pushed by mart into branch 'Plasma/6.8'.

Fix segfault when opening launchers by shortcuts

Caused by a non-strict ordering function used for sorting the containments, when deciding which launcher to open.

The UB only happened whenever there are multiple panels with launchers used along with multiple desktops/activities. If the number of containments to sort was more than 16, sort happens without a bounds check, triggering a segfault.

M  +9    -11   shell/shellcorona.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/0183bbc9810e6e60de792e9fc84a36f33f1a3e24
Comment 13 Mauricius 2026-10-28 12:59:10 UTC
Git commit 27d3ea1f7cda4df98b6d4fc122d803b074f8c9d6 by Mauricio Šmit.
Committed on 28/10/2026 at 12:03.
Pushed by mart into branch 'master'.

Fix segfault when opening launchers by shortcuts

Caused by a non-strict ordering function used for sorting the containments, when deciding which launcher to open.

The UB only happened whenever there are multiple panels with launchers used along with multiple desktops/activities. If the number of containments to sort was more than 16, sort happens without a bounds check, triggering a segfault.

M  +9    -11   shell/shellcorona.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/27d3ea1f7cda4df98b6d4fc122d803b074f8c9d6
Comment 14 Matija Šuklje 2026-10-28 14:46:25 UTC
> The UB only happened whenever there are multiple panels with launchers used
> along with multiple desktops/activities. If the number of containments to
> sort was more than 16, sort happens without a bounds check, triggering a
> segfault.

If it’s relevant info, I have 4 panels, but only one of them has a launcher.
Comment 15 TraceyC 2026-10-29 16:23:51 UTC
*** Bug 527898 has been marked as a duplicate of this bug. ***
Comment 16 Bug Janitor Service 2026-10-30 18:29:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7331
Comment 17 Bug Janitor Service 2026-10-30 18:29:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7331
Comment 18 Fushan Wen 2026-11-01 13:41:31 UTC
Git commit 31530cf85e244bdecc4c7e8af95f380f75bc43e7 by Fushan Wen.
Committed on 01/11/2026 at 13:41.
Pushed by fusionfuture into branch 'master'.

shell: Add autotest for activateLauncherMenu ordering

activateLauncherMenu() sorts the containments with a comparator that must
be a strict weak ordering: once there are more than a handful of
containments std::sort stops using insertion sort, and a comparator that
is not a strict weak ordering is undefined behaviour. That made the shell
segfault when opening the launcher with a keyboard shortcut on setups
with several screens and panels (BUG 527810).

Add a test that puts launchers on two screens among enough containments
to cross that threshold, then triggers the public activateLauncherMenu()
slot, which is the same path the shortcut takes. It checks that the
launcher on the active screen is the one that gets activated, that the
active screen wins over the id ordering, and that among the launchers on
the active screen the one with the lowest id is preferred.

A  +23   -0    shell/autotests/data/testlauncher/contents/ui/main.qml     [License: GPL(v2.0+)]
A  +23   -0    shell/autotests/data/testlauncher/metadata.json
M  +68   -0    shell/autotests/shelltest.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/31530cf85e244bdecc4c7e8af95f380f75bc43e7
Comment 19 cwo 2026-11-06 07:12:07 UTC
*** Bug 528414 has been marked as a duplicate of this bug. ***