Bug 483617 - kicker: segfault when built with clang
Summary: kicker: segfault when built with clang
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) widget (show other bugs)
Version: 6.0.2
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-14 23:26 UTC by Jannik Glückert
Modified: 2025-04-08 16:47 UTC (History)
3 users (show)

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


Attachments
Backtrace (4.25 KB, text/plain)
2024-03-14 23:26 UTC, Jannik Glückert
Details
ASAN output (9.99 KB, text/plain)
2024-03-14 23:27 UTC, Jannik Glückert
Details
Better backtrace (7.92 KB, text/plain)
2024-03-15 08:18 UTC, Jannik Glückert
Details

Note You need to log in before you can comment on or make changes to this bug.
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