Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 947244

Summary: net-im/telegram-desktop-5.9.0 segfaults with qt6 USE flag enabled
Product: Gentoo Linux Reporter: asdfg <andrschwarz>
Component: Current packagesAssignee: Esteve Varela Colominas <esteve.varela>
Status: RESOLVED NEEDINFO    
Severity: normal CC: aliaksei.urbanski, andrschwarz, dlan, esteve.varela, joe, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
lldb backtrace

Description asdfg 2024-12-30 21:08:11 UTC
It segfaults immediately after logging into an account. The welcome screen, that appears when no account is logged in, displays and works just fine, just like the settings panel.

Dmesg currently gives the following related info:

[ 6125.983559] Thread (pooled)[15754]: segfault at 7ff338c361f8 ip 00007ff3413c780b sp 00007ff338c361f8 error 6 in libQt6Gui.so.6.8.1[7a580b,7ff340e56000+595000]
[ 6125.983565] Thread (pooled)[15761]: segfault at 7ff325c881f8 ip 00007ff3413c780b sp 00007ff325c881f8 error 6
[ 6125.983566] Thread (pooled)[15760]: segfault at 7ff329a0e1f8 ip 00007ff3413c780b sp 00007ff329a0e1f8 error 6
[ 6125.983568]  likely on CPU 15 (core 7, socket 0)
[ 6125.983568]  in libQt6Gui.so.6.8.1[7a580b,7ff340e56000+595000] likely on CPU 12 (core 4, socket 0)

[ 6125.983572]  in libQt6Gui.so.6.8.1[7a580b,7ff340e56000+595000]
[ 6125.983573] Code: 0a 01 00 cc cc cc cc cc cc cc cc cc cc cc cc 55 41 57 41 56 41 55 41 54 53 49 89 e3 49 81 eb 00 90 01 00 48 81 ec 00 10 00 00 <48> c7 04 24 00 00 00 00 4c 39 dc 75 ec 48 81 ec a8 00 00 00 48 89
[ 6125.983573] Code: 0a 01 00 cc cc cc cc cc cc cc cc cc cc cc cc 55 41 57 41 56 41 55 41 54 53 49 89 e3 49 81 eb 00 90 01 00 48 81 ec 00 10 00 00 <48> c7 04 24 00 00 00 00 4c 39 dc 75 ec 48 81 ec a8 00 00 00 48 89
[ 6125.983577]  likely on CPU 3 (core 3, socket 0)
[ 6125.983581] Code: 0a 01 00 cc cc cc cc cc cc cc cc cc cc cc cc 55 41 57 41 56 41 55 41 54 53 49 89 e3 49 81 eb 00 90 01 00 48 81 ec 00 10 00 00 <48> c7 04 24 00 00 00 00 4c 39 dc 75 ec 48 81 ec a8 00 00 00 48 89



Reproducible: Always

Steps to Reproduce:
1. Compile telegram-desktop with the ~amd64 keyword and the qt6 USE flag enabled
2. Run telegram-desktop
3. Try to login into your account.
Actual Results:  
I go back to my desktop immediately.

Expected Results:  
Interact with all the highly educated and civilized folk in Telegram, exchanging high quality footage of relevant events and relevant and useful information within public interest.

It shouldn't have crashed.
Comment 1 asdfg 2024-12-30 21:09:21 UTC
Created attachment 915553 [details]
emerge --info
Comment 2 asdfg 2024-12-30 23:32:12 UTC
Created attachment 915561 [details]
lldb backtrace

I haven't really compiled telegram-desktop with debug C*FLAGS, but I believe this can be useful.
Comment 3 asdfg 2024-12-31 03:16:00 UTC
I managed to copy Telegram data from my previous install, thus importing active sessions and eliminating the need to sign in.

Most features work. It only segfaults when I scroll down the channels list.
Comment 4 Esteve Varela Colominas 2024-12-31 08:31:35 UTC
Thanks for reporting!

I don't think what you posted is a backtrace, and if it is, I cannot interpret it. Can you use GDB and use the "bt" (backtrace) command after it crashes?

Also your emerge --info output is lacking the USE and C*FLAGS that telegram-desktop was built with. Make sure to run "emerge --info net-im/telegram-desktop". Info about how tg_owt and any other libraries involved in the crash like Qt6 were built would be useful too.

I cannot reproduce this (I've been using USE=qt6 with this package for a while), so I can only assume it's a clang/musl issue. This combination is tested by very few people so things like this can happen. I'd recommend trying to rebuild both tg_owt and telegram-desktop to make sure nothing is lacking a rebuild. If that doesn't work, try with GCC, or an empty CFLAGS, or enable debug info while at it and generate a full backtrace.
Comment 5 Joe Kappus 2025-06-10 19:21:23 UTC
Is this still an issue? Qt5 support was dropped out back in March, so all builds should be qt6 now.
Comment 6 Esteve Varela Colominas 2025-06-11 05:41:42 UTC
Feel free to create a new issue with the requested information:
- "emerge --info net-im/telegram-desktop"
- a gdb backtrace, if you manage to capture it or a coredump
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-06-11 06:02:47 UTC
And if it does come back, please build telegram-desktop & qtbase w/ debugging symbols.