Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914398 - kde-apps/dolphin - Drag 'n Dropping Crashes File Manager (LLVM profile with libc++)
Summary: kde-apps/dolphin - Drag 'n Dropping Crashes File Manager (LLVM profile with l...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-18 20:45 UTC by Neko-san
Modified: 2024-07-01 23:20 UTC (History)
0 users

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


Attachments
Build Log (kde-dolphin_build.log,796.43 KB, text/x-log)
2023-09-18 20:46 UTC, Neko-san
Details
Dolphin GDB Tee'd Output Log (gdb-dolphin.log,9.90 KB, text/x-log)
2023-10-04 08:56 UTC, Neko-san
Details
Dr Konqi Kcrash Log (dolphin-20231004-001551.kcrash,7.70 KB, text/vnd.kde.kcrash-report)
2023-10-04 08:57 UTC, Neko-san
Details
Backtrace (gdb-dolphin-bt.log,9.95 KB, text/x-log)
2023-10-05 20:35 UTC, Neko-san
Details
Backtrace (gdb-dolphin-bt.log,9.87 KB, text/x-log)
2023-10-05 20:36 UTC, Neko-san
Details
Backtrace (gdb-dolphin-bt.log,78.29 KB, text/x-log)
2023-10-06 21:19 UTC, Neko-san
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2023-09-18 20:45:39 UTC
Attempting to drag and drop files between different tabs crashes dolphin.

Reproducible: Always

Steps to Reproduce:
1.emerge -1 kde-apps/dolphin
Actual Results:  
Dolphin crashes when attempting to move files between folder tabs.

Expected Results:  
Dolphin shouldn't be crashing upon move file functions.

Portage 3.0.49 (python 3.11.5-final-0, default/linux/amd64/17.1/clang, gcc-12, glibc-2.37-r3, 6.4.12-tkg-gentoo-gcc-zen2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.4.12-tkg-gentoo-gcc-zen2-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.37
KiB Mem:    32762652 total,   7795404 free
KiB Swap:   16777212 total,   8017404 free
Timestamp of repository gentoo: Mon, 18 Sep 2023 17:01:45 +0000
Head commit of repository gentoo: 261872af32375f5f91e03ed59cbd8833120c816d

Timestamp of repository guru: Mon, 18 Sep 2023 12:46:33 +0000
Head commit of repository guru: 5cc32dd57cdcf9fb6a7ddd2daea496fe6f4f04a2

Timestamp of repository steam-overlay: Thu, 14 Sep 2023 05:49:13 +0000
Head commit of repository steam-overlay: 603076369c21489ea4ddbdbed19616cd437dde4f

Head commit of repository librewolf: 8b30ac34d5317dda3808fdbcf67a2aee49778594

Head commit of repository src_prepare-overlay: ebb23497e016d824acdba971e070fb05ba1ed414

Head commit of repository tatsh-overlay: 34c6049a45082eb0485ba4b657d5c0effdab670f

Timestamp of repository thegreatmcpain: Sat, 16 Sep 2023 06:46:30 +0000
Head commit of repository thegreatmcpain: bce467b8327208aaa1c9ea82ef181b61a41f40e1

Head commit of repository x0rzavi: c9e531bea68e782c758b2d1e9e97e2160831c3cc

Timestamp of repository xwing: Mon, 11 Sep 2023 11:32:56 +0000
Head commit of repository xwing: defa89cc80126196c55845c718102a19df0424d3

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    priority: 50
    volatile: False

src_prepare-overlay
    location: /var/db/repos/src_prepare-overlay
    sync-type: git
    sync-uri: https://gitlab.com/src_prepare/src_prepare-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

tatsh-overlay
    location: /var/db/repos/tatsh-overlay
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

thegreatmcpain
    location: /var/db/repos/thegreatmcpain
    sync-type: git
    sync-uri: https://gitlab.com/TheGreatMcPain/thegreatmcpain-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

x0rzavi
    location: /var/db/repos/x0rzavi
    sync-type: git
    sync-uri: https://github.com/x0rzavi/x0rzavi-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

xwing
    location: /var/db/repos/xwing
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/xwing.git
    masters: gentoo
    priority: 50
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="llvm-as"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=znver2 -mtune=znver2 -pipe -minline-all-stringops -ftree-vectorize -O3 -fno-plt -fexceptions -ftrivial-auto-var-init=pattern -fstrict-flex-arrays=1 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=znver2 -mtune=znver2 -pipe -minline-all-stringops -ftree-vectorize -O3 -fno-plt -fexceptions -ftrivial-auto-var-init=pattern -fstrict-flex-arrays=1 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=znver2 -mtune=znver2 -pipe -minline-all-stringops -ftree-vectorize -O3 -fno-plt -fexceptions -ftrivial-auto-var-init=pattern -fstrict-flex-arrays=1 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver2 -mtune=znver2 -pipe -minline-all-stringops -ftree-vectorize -O3 -fno-plt -fexceptions -ftrivial-auto-var-init=pattern -fstrict-flex-arrays=1 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LD="ld.lld"
LDFLAGS="-Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now"
LEX="flex"
MAKEOPTS="-j7"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="pigz"
PORTAGE_COMPRESS_FLAGS="-9 -R -p4"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C codegen-units=1"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="7z X a52 aac acl acpi activities alsa amd64 autotype bash-completion bluetooth branding browser browser-integration bzip2 cairo cdda cdr clang cli colord crash-handler crypt cups dbus declarative default-compiler-rt default-libcxx default-lld desktop-portal dhclient discover dri dts dvd dvdr echo-cancel elogind encode exif ffmpeg firewall flac flatpak fluidsynth fortran gbm gdbm gif gles2 gles3 gpm gstreamer gtk gui hardened iconv icu ipv6 iwd jack jack-client jpeg kde kwallet lcms legacy-systray libcxx libnotify libtirpc llvm-libunwind lm-sensors mad mgba mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nvenc ogg opengl openh264 openmp openssl opus pam pango pcre pdf pic pie pipewire pipewire-alsa plasma png policykit ppds pulseaudio qml qt5 raw readline resolvconf retroachievements rtc screencast sddm sdl seccomp sechash semantic-desktop share smart sound sound-server spell split-usr ssl startup-notification svg system-crontab system-man test-rust threads tiff timidity truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vorbis vulkan wallpapers wav wayland widgets wired wxwidgets x264 xattr xcb xcsecurity xft xml xorg xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="fbdev nvidia vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, SIZE, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

kde-apps/dolphin-23.04.3::gentoo was built with the following:
USE="activities handbook semantic-desktop telemetry -debug -test" ABI_X86="(64)"
FEATURES="qa-unresolved-soname-deps usersandbox binpkg-multi-instance preserve-libs fixlafiles unmerge-orphans ebuild-locks unknown-features-warn merge-sync ipc-sandbox strict news multilib-strict protect-owned assume-digests pid-sandbox sandbox parallel-fetch sfperms binpkg-logs userpriv userfetch network-sandbox buildpkg-live config-protect-if-modified binpkg-dostrip distlocks usersync xattr unmerge-logs binpkg-docompress"
Comment 1 Neko-san 2023-09-18 20:46:03 UTC
Created attachment 870896 [details]
Build Log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-19 09:28:22 UTC
Could you get us a backtrace please when it crashes? See https://wiki.gentoo.org/wiki/Debugging#Per-package.
Comment 3 Neko-san 2023-09-19 09:54:49 UTC
I was worried you'd ask that; I don't have debugging *at all* at the moment and I imagine for me to give you a useful backtrace, I'd probably have to rebuild... I don't know how many things
 
Also, correction on my end: it seems to be if you attempt dragging a file into the address bar; the address bar and folder tabs are nearby each other so I mis-interpreted what was actually causing the crash
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-19 09:59:20 UTC
(In reply to Neko-san from comment #3)
> I was worried you'd ask that; I don't have debugging *at all* at the moment
> and I imagine for me to give you a useful backtrace, I'd probably have to
> rebuild... I don't know how many things

I'd just do Dolphin first, then can go off the backtrace to see what else needs debugging symbols built.
Comment 5 Andreas Sturmlechner gentoo-dev 2023-09-30 20:20:15 UTC
...but please also report back with all latest versions of dev-qt/*:5, kde-frameworks/* and kde-apps/dolphin upgraded.
Comment 6 Neko-san 2023-10-04 08:56:51 UTC
Created attachment 872125 [details]
Dolphin GDB Tee'd Output Log
Comment 7 Neko-san 2023-10-04 08:57:14 UTC
Created attachment 872126 [details]
Dr Konqi Kcrash Log
Comment 8 Neko-san 2023-10-04 08:58:42 UTC
I used "splitdebug compressdebug -nostrip" and rebuilt my entire @world and then tried to collect a backtrace
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-04 09:05:50 UTC
(In reply to Neko-san from comment #6)
> Created attachment 872125 [details]
> Dolphin GDB Tee'd Output Log


Thread 1 "dolphin" received signal SIGSEGV, Segmentation fault.
0x00007ffff7e178c2 in ?? () from /usr/lib64/libKF5KIOFileWidgets.so.5
(gdb) continue
Continuing.

Please do 'bt' at that point instead of 'continue'.

(In reply to Neko-san from comment #8)
> I used "splitdebug compressdebug -nostrip" and rebuilt my entire @world and
> then tried to collect a backtrace

Using -ggdb3 too, or similar, as well, with debugedit installed?
Comment 10 Neko-san 2023-10-05 20:31:05 UTC
I used -ggdb3 but I didn't have debugedit installed (I didn't even know that package existed because I didn't notice a reference to it anywhere)
Comment 11 Neko-san 2023-10-05 20:35:06 UTC
Created attachment 872195 [details]
Backtrace

Is this better?
Comment 12 Neko-san 2023-10-05 20:36:26 UTC
Created attachment 872196 [details]
Backtrace
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-06 16:48:32 UTC
(In reply to Neko-san from comment #10)
> I used -ggdb3 but I didn't have debugedit installed (I didn't even know that
> package existed because I didn't notice a reference to it anywhere)

It's mentioned at https://wiki.gentoo.org/wiki/Debugging#Per-package.

(In reply to Neko-san from comment #12)
> Created attachment 872196 [details]
> Backtrace

Yeah, this is a lot better. You need to rebuild a lot of the mentioned libraries on the right hand side though, like /usr/lib64/libKF5KIOFileWidgets.so.5, /usr/lib64/libQt5Widgets.so.5, etc.

(You can do: emerge -v1 /path/to/lib as long as you configured the debug symbols env first.)
Comment 14 Neko-san 2023-10-06 20:33:11 UTC
> It's mentioned at https://wiki.gentoo.org/wiki/Debugging#Per-package.

Ah, I missed the part where it says to use the "installsources" feature too...; oops
Comment 15 Neko-san 2023-10-06 21:19:17 UTC
Created attachment 872248 [details]
Backtrace

I had to stop using splitdebug and just use nostrip because no variation of the splitdebug setup was showing the missing symbols, so I did that, and ran:
emerge -v1 /usr/lib64/libKF5KIOFileWidgets.so.5 /usr/lib64/libQt5Widgets.so.5 /usr/lib64/libQt5XcbQpa.so.5 /usr/lib64/libglib-2.0.so.0 kde-apps/dolphin

The backtrace seems to have a lot more information now, but I don't understand why it wouldn't find the symbols before :/
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-06 21:27:51 UTC
Very weird - it might be because Clang uses dwarf5 by default which debugedit doesn't support yet.

But that backtrace you just posted looks perfect - thank you! Does it still happen if you build Qt with some more vanilla flags? (try just -O2 -march=native first)

Qt 5 is extremely sensitive and likely has a bunch of UB so it's wise to build it with conservative flags
Comment 17 Neko-san 2023-10-06 23:05:21 UTC
Rebuilding dev-qt/qtcore, dev-qt/qtgui, dev-qt/qtwidgets that way seems to still reproduce the issue, yeah
Comment 18 Andreas Sturmlechner gentoo-dev 2023-11-11 20:28:48 UTC
What about newer versions? Qt has been updated to 5.15.11 in stable, kde-apps/dolphin-23.08.3 is close.
Comment 19 Neko-san 2023-11-11 20:41:33 UTC
It's still reproducible, yeah
Comment 20 Neko-san 2023-11-22 09:13:28 UTC
@SamJames, by the way, do you know when debugedit will support that?
And do you think building my packages with the symbols just built in going further (until that gets supported) would be too much of a storage or performance issue?

(My machine runs on a 250 GB SSD and it only has 55 GBs of space left (partially because I have one somewhat large game installed on it also)
Comment 21 Andreas Sturmlechner gentoo-dev 2024-07-01 23:20:22 UTC
Same cause as bug 923292?