Bug 483617

Summary: kicker: segfault when built with clang
Product: [Plasma] plasmashell Reporter: Jannik Glückert <jannik.glueckert>
Component: Application Menu (Kicker) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: fanzhuyifan, nate, sam
Priority: NOR    
Version First Reported In: 6.0.2   
Target Milestone: 1.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace
ASAN output
Better backtrace

Description Jannik Glückert 2024-03-14 23:26:14 UTC
Created attachment 167222 [details]
Backtrace

SUMMARY
When built with clang, plasmashell-6.0.2 crashes immediately in kicker (wayland session).

I managed to get a (probably) useful ASAN run, though I haven't been able to get a symbolized coredump for some reason.

Building with gcc did not exhibit this issue. I did not try to reproduce with gcc ASAN or with older clang versions yet, but on first glance it looks like an out of bounds read?

Backtrace and ASAN output are in attachments.

SOFTWARE/OS VERSIONS
Gentoo Linux
Plasma 6.0.2
Qt 6.6.2
Clang 18.0.0
libstdc++ 13.2.1

CFLAGS: -O3 -flto=thin
Comment 1 Jannik Glückert 2024-03-14 23:27:10 UTC
Created attachment 167223 [details]
ASAN output
Comment 2 fanzhuyifan 2024-03-15 04:12:03 UTC
Does it crash when you compile with -O2 instead of -O3?
Comment 3 Jannik Glückert 2024-03-15 08:17:59 UTC
Yes. This is inlining related, I can't reproduce without LTO. Are you suggesting a compiler bug?

Meanwhile I've been able to get a better backtrace - though I think the ASAN report already shows that this is probably from a bad object.
Comment 4 Jannik Glückert 2024-03-15 08:18:28 UTC
Created attachment 167236 [details]
Better backtrace
Comment 5 Nate Graham 2025-04-05 21:31:53 UTC
Sorry we were not able to get to this yet. Can I ask you to please check to see if it's still an issue with Plasma 6.3? Thanks!
Comment 6 Jannik Glückert 2025-04-07 15:58:27 UTC
(In reply to Nate Graham from comment #5)
> Sorry we were not able to get to this yet. Can I ask you to please check to
> see if it's still an issue with Plasma 6.3? Thanks!

Yes, I can still reproduce with

Plasma 6.3.4
Qt 6.8.3
Clang 20.1.2
libstdc++ 14.2.1
Comment 7 Nate Graham 2025-08-13 22:23:29 UTC
Still happening in Plasma 6.4 and (hopefully) a newer version of clang?
Comment 8 Bug Janitor Service 2025-08-28 03:47:38 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Jannik Glückert 2025-08-28 20:17:40 UTC
oops, sorry for the late reply

as of
Plasma 6.4.4
Qt 6.9.2
Clang 21.1.0
libstdc++ 15.2.0

I can no longer reproduce!
However, I have only rebuilt the qt libs and the plasma desktop with clang 21 so far. I'll rebuild the other kde libs in the next few days as it may be a transitive bug. I'll also cross check the new versions with clang 20.
Comment 10 Bug Janitor Service 2025-09-12 03:48:14 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2025-09-27 03:46:35 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.