Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926962 - sys-libs/libcxx - DLIBCXX_TYPEINFO_COMPARISON_IMPLEMENTATION plasmashell 6 Crashes
Summary: sys-libs/libcxx - DLIBCXX_TYPEINFO_COMPARISON_IMPLEMENTATION plasmashell 6 Cr...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Profiles (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: LLVM support project
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks: 912821
  Show dependency tree
 
Reported: 2024-03-14 03:11 UTC by Neko-san
Modified: 2024-03-16 03:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2024-03-14 03:11:40 UTC
Upstream https://bugs.kde.org claims that building Plasma 6 with LLVM and libc++ causing the plasmashell to crash is a Clang/libc++ bug and references the following ancient github issue from 2018 as the reason:
https://github.com/llvm/llvm-project/issues/36746

The temporary suggestion is to build libc++ with DLIBCXX_TYPEINFO_COMPARISON_IMPLEMENTATION=2 to avoid these crashes, but:
1) As an average user, I don't know what unfortunate butterfly-effect issues the rest of the system would experience if I just applied a patch willy-nilly to the toolchain
2) The upstream commits related to this issue are similarly ancient (Not sure if they would even apply anyway)

That said, getting this sorted out would make Plasma 6 much more usable under LLVM, as Plasma 5 is.

Reproducible: Always

Steps to Reproduce:
1. Use the LLVM profile
2. Set libc++ as the alternative to stdlibc++ for the system (rebuild subsequently, as needed, if this is not already the case)
3. Install Plasma 6 and SDDM (If not already)
4. Login to a Plasma 6 wayland session via SDDM (This is what I did)
5. Right click anywhere on the Plasma desktop
Actual Results:  
Plasma 6 desktop crashes upon right-clicking any natural part of the Plasma desktop when built with LLVM.

Expected Results:  
For Plasmashell to not crash upon right-clicks.
Comment 1 Neko-san 2024-03-14 03:13:47 UTC
Also not, since I forgot to mention, that upstream bugs.kde.org already closed the issue as not their problem; therefore, I'm writing this to keep the issue catalogued since most distros don't support building systems with LLVM at all and because the upstream LLVM issue has been basically dead since 6 years ago.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-15 16:02:40 UTC
Oh my.  Yeah, I don't think we should workaround this on our end.  Besides it looking like we'll end up having to use this "non-standard" code path forever (or at least until upstream removes support for it), I suspect it may change ABI, effectively breaking random packages until they are rebuilt.
Comment 3 Neko-san 2024-03-16 03:44:32 UTC
My hope is that havibg written this issue will help able people realize, if they haven't already, who are willing to help to fix the issue upatream somehow in a way that wouldn't be hacky (such as attempting to fix it here, as you say).