Saturday, May 02, 2026

Re: net/tdesktop 6.1.3 segmentation fault on 7.8

Klemens Nanni wrote: > 30.04.2026 16:02, Chris Billington пишет: >> net/tdesktop was previously working for me on 7.8. > > What version on what OS version used to work? > > What are you doing to reproduce the crash? > > Either way, please try -current; I have neither the time, nor the energy > to debug Telegram bugs in old versions. > > If you have clear instructions for recent net/tdesktop, we can work with that. > >> >> But now I get: >> >> $ Telegram >> >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::SystemPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::ToolButtonPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::ButtonPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::CheckBoxPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::RadioButtonPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::HeaderPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::ItemViewPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::MessageBoxLabelPelette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::TabBarPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::LabelPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::GroupBoxPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::MenuPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::MenuBarPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::TextEditPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::TextEditPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::TextLineEditPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::ToolTipPalette >> virtual QVariant Qt6CTPlatformTheme::themeHint(QPlatformTheme::ThemeHint) const >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::SystemPalette >> virtual const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette) const QPlatformTheme::SystemPalette >> Segmentation fault (core dumped) >> >> >> I attempted to run with gdb. tdesktop seems to already contain debugging symbols, but gdb exits before I am able to 'run' it: > > Telegram is huge and I recently started stripping to reduce binary size > by hundreds of megabytes; debug symbols hardly helped and proper debug > builds have long been broken due to dwz(1) being unable to cope with > Telegram's size, anyway. > >> >> $ egdb Telegram >> GNU gdb (GDB) 16.3 >> Copyright (C) 2024 Free Software Foundation, Inc. >> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> >> This is free software: you are free to change and redistribute it. >> There is NO WARRANTY, to the extent permitted by law. >> Type "show copying" and "show warranty" for details. >> This GDB was configured as "x86_64-unknown-openbsd7.8". >> Type "show configuration" for configuration details. >> For bug reporting instructions, please see: >> <https://www.gnu.org/software/gdb/bugs/>. >> Find the GDB manual and other documentation resources online at: >>     <http://www.gnu.org/software/gdb/documentation/>. >> >> For help, type "help". >> Type "apropos word" to search for commands related to "word"... >> Reading symbols from Telegram... >> Recursive internal problem. >> Abort trap (core dumped) >> >> Is anyone else seeing this? >> Maybe the coming release of 7.9 with newer versions and debugging symbols stripped will resolve it? >> >> Chris >> > Klemens, thank you for your work and time maintaining tdesktop and tg_owt. The crash is on 7.8-stable which has Telegram 6.1.3 in packages (as in the subject line). Reproducible by running 'Telegram' from command-line. It previously worked, but some time over the last few weeks something changed (running -stable packages, pkg_add -u) which broke it. tdesktop-6.7.6 runs OK for me on a not-very recent -current (GENERIC.MP#304). (mid-March). But 'egdb Telegram' on that snapshot aborted before all the symbols are loaded, like it does on 7.8. Upgrading to the latest snapshot and packages, 6.7.6p0 runs fine and the debugging symbols are gone since kn's commit on 29th March. I noticed 6.1.4 changed from using ffmpeg-6 to ffmpeg-8. I did try to build a test 6.1.3p0 on -stable/release (ffmpeg-6) with USE_NOBTCFI-amd64 = Yes and stripped binary but it still segfaults. So it seems that 7.8 users need to upgrade when they can, to keep using Telegram. Chris

No comments:

Post a Comment