Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917343 - net-im/telegram-desktop: error when starting in KDE Plasma "Launching Telegram Desktop (Failed)"
Summary: net-im/telegram-desktop: error when starting in KDE Plasma "Launching Telegra...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-14 17:05 UTC by Johannes Hirte
Modified: 2024-03-20 23:06 UTC (History)
6 users (show)

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


Attachments
Segmentation fault with -02 and -ggdb flags (segfault.log,2.91 KB, text/x-log)
2024-03-20 21:53 UTC, hugegameartgd
Details
disable-raster_fp.patch (disable-raster_64bit.patch,39.38 KB, patch)
2024-03-20 23:05 UTC, hugegameartgd
Details | Diff
disable-raster_64bit.patch (disable-raster_fp.patch,39.40 KB, patch)
2024-03-20 23:05 UTC, hugegameartgd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2023-11-14 17:05:41 UTC
When starting telegram-desktop from the plasma menu, I get the following error:

"Launching Telegram Desktop (Failed)

Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."

I get the telegram window but some seconds after the application dies. I've tested with net-im/telegram-desktop-bin and observed the same behavior. Plasma is running as wayland session, so maybe it's related to this.

telegram-desktop is build with the following Use-flags:
dbus enchant fonts jemalloc qt6 qt6-imageformats screencast wayland webkit -X

Reproducible: Always




emerge --info
Portage 3.0.55 (python 3.10.13-final-0, default/linux/amd64/17.1/systemd, gcc-13, glibc-2.38-r7, 6.7.0-rc1-00012-g9bacdd8996c7 x86_64)
=================================================================
System uname: Linux-6.7.0-rc1-00012-g9bacdd8996c7-x86_64-AMD_Ryzen_7_PRO_4750U_with_Radeon_Graphics-with-glibc2.38
KiB Mem:    32157740 total,  12395124 free
KiB Swap:    2097148 total,   2094076 free
Head commit of repository gentoo: 279f528803f03f27f70c255d38e8cec0f84215ea

Head commit of repository kde: 08af8909d5ab37d4f78928ba692bda387f8cf147

Head commit of repository qt: 5dbbe845e97cd7f3c43481ef4fb9a737af7945d1

Head commit of repository x11: 00109758b71fe651b0c367b3eeb9bcbac24dc533

sh bash 5.2_p21
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.6::gentoo, 3.12.0_p1::gentoo
dev-lang/rust:             1.73.0::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.6::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.4::gentoo
sys-devel/gcc:             12.3.1_p20230825::gentoo, 13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             17.0.4::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.4::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: -1000
    volatile: False

crossdev
    location: /var/db/repos/portage-crossdev
    masters: gentoo
    priority: 10
    volatile: False

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 50
    volatile: False

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    masters: gentoo
    priority: 50
    volatile: False

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -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/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
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="-O2 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer 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 -march=znver2 -mtune=znver2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -ftree-vectorize -fvect-cost-model=cheap -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de en"
MAKEOPTS="-j16 -l16"
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/bash"
USE="X a52 aac aacplus acl activities alsa alt-svc amd64 amr amrenc anacron avif blake2 bluetooth brotli bzip2 cairo caps celt chm cleartype_hinting cli corefonts crypt cryptsetup cups d3d9 dav1d dbus dell device-mapper djvu dri drm dvd ebook editorconfig efi egl eps epub evdev exif faac fdk ffmpeg fftw flac fontconfig fortran gbm gdbm gif git glamor glslang gmp gpg gphoto2 gpm graphviz harfbuzz heif http2 hwloc iconv icu id3tag io-uring ipv6 ithreads jpeg jpegxl kate kipi lcms lensfun libaom libatomic libcxx libcxxabi libde265 libffi libinput libkms libplacebo libsamplerate libtirpc libunwind libxml2 lm-sensors lto lz4 lzma lzo mad matroska mjpeg mmap mng mobi modern-top mp3 mpeg mtp multilib mysql ncurses networkmanager nfs nls nptl ogg openal opencv openexr opengl openmp openssl opus pam parted pcre pcre16 pdf pgo pipewire png policykit postscript proton pulseaudio python qml qt5 rav1e raw readline rtmp s3tc schroedinger screencast sdl sdl2 seccomp sift smp sndfile sox speex spice spirv split-usr sqlite ssl subversion svg svt-av1 system-harfbuzz system-icu system-jpeg system-jsoncpp system-libvpx system-sqlite system-tbb system-zlib systemd taglib tesseract test-rust theora threads thumbnail tiff truetype udev udisks uefi unicode urandom usb usbredir user-session v4l vaapi vde vdpau vhosts virgl virt-network virtfs vorbis vpx vte vulkan wavpack wayland webp websockets wmf x264 x265 xattr xcb xcomposite xkb xml xmp xpm xv xvid xxhash zink zip zlib zstd" 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" CAMERAS="canon ricoh ricoh_g3" 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 ssse3 sse4_1 sse4_2" 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-32 efi-64 pc" INPUT_DEVICES="evdev libinput synaptics" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX SPIRV X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1 lua5-2 lua5-3 lua5-4 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12 pypy3" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu" 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:  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, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Esteve Varela Colominas 2023-11-15 07:04:39 UTC
Thanks for the report!
Please include the version number in the bug report title.
That said, if it can be reproduced with the binary, then it may be reported upstream as well.
Comment 2 UlvHare 2023-11-23 11:45:50 UTC
I have the same problem both with source and binary packages. Error was detected on versions 4.10.3 and 4.11.7. Versions 4.11.5 both binary and source are OK.
Comment 3 Esteve Varela Colominas 2023-11-23 14:12:28 UTC
I think it's worth reporting upstream, then.
Comment 4 hugegameartgd 2024-03-20 16:51:04 UTC
Telegram crashes on KDE Plasma 6 (Wayland session, Clang/musl) after user authorization, the setup wizard works fine for me.
Reproducible with Gentoo ebuilds and overlays (e. g. https://gitlab.com/reagentoo/gentoo-overlay/-/blob/master/net-im/telegram-desktop/telegram-desktop-9999.ebuild)

~ $ gdb --args telegram-desktop
[...]
Thread 36 "Thread (pooled)" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 26778]
0x00007fffe8ddf0ab in ?? () from /lib/libQt6Gui.so.6
(gdb)
Comment 5 Esteve Varela Colominas 2024-03-20 21:07:58 UTC
Can you try the official binary?
Comment 6 hugegameartgd 2024-03-20 21:53:20 UTC
Created attachment 888013 [details]
Segmentation fault with -02 and -ggdb flags
Comment 7 hugegameartgd 2024-03-20 21:53:43 UTC
> Can you try the official binary?

The official binary linked against glibc segfaults with gcompat (might be expected I think), previous telegram-desktop Gentoo ebuilds worked fine on musl libc.

(gdb) run
Starting program: /home/user/Telegram 
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

Program received signal SIGSEGV, Segmentation fault.
0x00007fffefa10df4 in memcpy () from /lib64/ld-linux-x86-64.so.2
(gdb) exit
Comment 8 Esteve Varela Colominas 2024-03-20 22:27:04 UTC
Sorry, I missed your mention of musl. In that case I'll have to check it out myself. I can't promise that'll be soon. If you want to help out, please build the program and relevant libraries with debug symbols and use the "bt" command in gdb.
Comment 9 hugegameartgd 2024-03-20 23:05:57 UTC
Created attachment 888014 [details, diff]
disable-raster_fp.patch
Comment 10 hugegameartgd 2024-03-20 23:05:58 UTC
Created attachment 888015 [details, diff]
disable-raster_64bit.patch
Comment 11 hugegameartgd 2024-03-20 23:06:24 UTC
Might be a qt6 bug, telegram runs fine after patching qtbase-6.7, disabling raster_fp and raster_64bit.