When I try to launch ktorrent, it crashes. Reproducible: Always Steps to Reproduce: 1. try to run ktorrent Actual Results: ktorrent qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "stateChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMState qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "connectivityChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMConnectivityState qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "deviceTypeChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMDeviceType qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "meteredChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMMetered QLayout: Attempting to add QLayout "" to kt::FileView "", which already has a layout KCrash: Application 'ktorrent' crashing... crashRecursionCounter = 2 [1] 25743 segmentation fault (core dumped) ktorrent Expected Results: Works without issue. $ emerge --info Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-13, glibc-2.39-r2, 6.8.1-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.8.1-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-9700K_CPU_@_3.60GHz-with-glibc2.39 KiB Mem: 32790960 total, 17975264 free KiB Swap: 33554428 total, 33554428 free Timestamp of repository gentoo: Thu, 21 Mar 2024 17:19:13 +0000 Head commit of repository gentoo: 17e230c4c8aeb07f370577c44afdfaf5d18f69b4 Timestamp of repository steam-overlay: Fri, 15 Mar 2024 21:03:58 +0000 Head commit of repository steam-overlay: e01d021389d2d9eb6ac88d559c83a8f5a7b54982 Timestamp of repository trolltoo: Tue, 12 Mar 2024 05:18:41 +0000 Head commit of repository trolltoo: ceee93af382055241d2da644079a55ae6067d8a4 Timestamp of repository xarblu-overlay: Wed, 20 Mar 2024 18:18:27 +0000 Head commit of repository xarblu-overlay: 58a06a5e935abaabada354c2e6a5fbaa49c8591f sh bash 5.2_p26 ld GNU ld (Gentoo 2.42 p3) 2.42.0 ccache version 4.9.1 [enabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.28.3::gentoo dev-build/libtool: 2.4.7-r2::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.4.0-r1::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.2-r2::gentoo dev-lang/python: 3.11.8_p1::gentoo, 3.12.2_p1::gentoo dev-lang/rust: 1.76.0-r1::gentoo dev-util/ccache: 4.9.1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/sandbox: 2.38::gentoo sys-apps/systemd: 255.4::gentoo sys-devel/binutils: 2.42-r1::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 17.0.6::gentoo, 18.1.2::gentoo sys-devel/gcc: 13.2.1_p20240210::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 17.0.6::gentoo sys-devel/llvm: 17.0.6::gentoo, 18.1.2::gentoo sys-kernel/linux-headers: 6.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r2::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 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 trolltoo location: /var/db/repos/trolltoo sync-type: git sync-uri: https://github.com/gentoo-mirror/trolltoo.git masters: gentoo volatile: False xarblu-overlay location: /var/db/repos/xarblu-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/xarblu-overlay.git masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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" CXXFLAGS="-O2 -pipe " DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs 8 --load-average 10" 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=native -O2 -pipe " FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe " GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/" LANG="fr_FR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j8 -l10" PKGDIR="/var/cache/binpkgs" 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" SHELL="/bin/zsh" USE="X a52 aac accessibility acl acpi activities alsa amd64 archive branding bzip2 cairo cdda cdr cli crypt cups dbus declarative discover dri dri3 dts dvd dvdr egl encode exif faad fdk ffmpeg firewalld flac flatpak fortran gbm gdbm geoip geolocation gif git gles gles2 gpm gssapi gstreamer gtk gtk3 gui handbook iconv icu imagemagick initramfs ipv6 jpeg kde kdesu kerberos kf6compat kwallet lcms libass libglvnd libtirpc lm-sensors logrotate mad matroska mng mp3 mp4 mpeg mtp multilib multimedia ncurses networkmanager nfs nls nsplugin ogg openal opencl opengl openh264 openmp pam pango pcre pdf pipewire plasma plymouth pm-utils png policykit ppds pulseaudio qml qt4 qt5 qt6 readline samba screencast sdl seccomp semantic-desktop smp snap sound spell ssh ssl startup-notification svg symlink syslog systemd test-rust tiff truetype udev udisks unicode unicode3 upower usb v4l vaapi vdpau vim-syntax vorbis vulkan wayland widgets wxwidgets x264 x265 xattr xcb xft xinerama xml xrandr xv xvid zeroconf zlib zsh-completion" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" 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_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Not reproducible here, so maybe let's start with disclosing how you configured your ktorrent/libktorrent packages?
Please also try obtain a backtrace (https://wiki.gentoo.org/wiki/Debugging#Per-package).
(In reply to Andreas Sturmlechner from comment #1) > Not reproducible here, so maybe let's start with disclosing how you > configured your ktorrent/libktorrent packages? I don’t know if it’s the information you need, but here what I have: $ eix net-p2p/ktorrent [I] net-p2p/ktorrent Available versions: (5) 23.08.5^t (6) {M}(~)24.02.1^t {+bwscheduler debug +downloadorder +handbook +infowidget +ipfilter +logviewer +magnetgenerator +mediaplayer rss +scanfolder +shutdown +stats test +upnp +webengine +zeroconf} Installed versions: 24.02.1(6)^t(14:39:34 24/03/2024)(bwscheduler downloadorder handbook infowidget ipfilter logviewer magnetgenerator mediaplayer scanfolder shutdown stats upnp webengine zeroconf -debug -rss -test) Homepage: https://apps.kde.org/ktorrent/ Description: Powerful BitTorrent client based on KDE Frameworks $ eix net-libs/libktorrent [I] net-libs/libktorrent Available versions: (5) 23.08.5^t (6) {M}(~)24.02.1^t {debug test} Installed versions: 24.02.1(6)^t(02:36:30 24/03/2024)(-debug -test) Homepage: https://apps.kde.org/ktorrent/ https://userbase.kde.org/KTorrent Description: BitTorrent library based on KDE Frameworks Also, I have unmasked Plasma6 and all what it needs to be unmasked (I hope), to try to use it (without setting kde and qt overlay, I just use gentoo repo)
Created attachment 888571 [details] ktorrent backtrace (In reply to Sam James from comment #2) > Please also try obtain a backtrace > (https://wiki.gentoo.org/wiki/Debugging#Per-package). Ok, I tried my best to rebuild net-libs/libktorrent and net-p2p/ktorrent, following this link, thank you very much! The new backtrace I could produce is attached.
Created attachment 888572 [details] better ktorrent backtrace Well, I also put debug for kde-frameworks/kstatusnotifieritem, and the backtrace is way better, I hope! Thread 1 (Thread 0x7fa411188a00 (LWP 123360)): [KCrash Handler] #4 0x00007fa4184b1d81 in std::__uniq_ptr_impl<KStatusNotifierItemPrivate, std::default_delete<KStatusNotifierItemPrivate> >::_M_ptr (this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/unique_ptr.h:199 #5 std::unique_ptr<KStatusNotifierItemPrivate, std::default_delete<KStatusNotifierItemPrivate> >::get (this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/unique_ptr.h:470 #6 std::unique_ptr<KStatusNotifierItemPrivate, std::default_delete<KStatusNotifierItemPrivate> >::operator-> (this=<optimized out>) at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/unique_ptr.h:463 #7 KStatusNotifierItem::setAssociatedWindow (this=0x0, associatedWindow=0x55883ba0eed0) at /usr/src/debug/kde-frameworks/kstatusnotifieritem-6.0.0/kstatusnotifieritem-6.0.0/src/kstatusnotifieritem.cpp:497 #8 0x00005588395bbbbd in kt::TrayIcon::setAssociatedWindow (this=this@entry=0x55883b6e3290, window=<optimized out>) at /usr/src/debug/net-p2p/ktorrent-24.02.1/ktorrent-24.02.1/ktorrent/trayicon.cpp:425 #9 0x00005588395b6471 in kt::GUI::GUI (this=0x7ffdf668ce50, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/net-p2p/ktorrent-24.02.1/ktorrent-24.02.1/ktorrent/gui.cpp:114 #10 0x000055883959ecff in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/net-p2p/ktorrent-24.02.1/ktorrent-24.02.1/ktorrent/main.cpp:227
#7 KStatusNotifierItem::setAssociatedWindow (this=0x0, associatedWindow=0x55883ba0eed0) at /usr/src/debug/kde-frameworks/kstatusnotifieritem-6.0.0/kstatusnotifieritem-6.0.0/src/kstatusnotifieritem.cpp:497 https://invent.kde.org/frameworks/kstatusnotifieritem/-/blob/v6.0.0/src/kstatusnotifieritem.cpp?ref_type=tags#L497
If asturm has no further questions, would you mind reporting this upstream at bugs.kde.org?
(In reply to Sam James from comment #7) > If asturm has no further questions, would you mind reporting this upstream > at bugs.kde.org? Waiting for the confirmation, and I will do. :)
Reported upstream: https://bugs.kde.org/show_bug.cgi?id=484577
I just applied the patch of upstream: https://invent.kde.org/network/ktorrent/-/merge_requests/118 And it works, no more crash. :)
Excellent, thanks for reporting it upstream.