Created attachment 770198 [details, diff] Fix-double-destruction.patch Debian managed to track down and solve this bug over at : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008156 I believe this will only be triggered if a Telegram user has multiple accounts signed in. Opening the sidebar menu and selecting anything will trigger a reproducible segfault, even closing it after the initial opening will trigger it. Quick workaround, start telegram with the below exported: LD_PRELOAD=libjemalloc.so.2 telegram-desktop I am attaching the patch that fixes this issue. Hopefully can get a revision bump with the patch on Bug #837569 included as well.
confirm, patch works for me, thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35dad0d1895f480f390231f42b3e64b02b148f89 commit 35dad0d1895f480f390231f42b3e64b02b148f89 Author: Esteve Varela Colominas <esteve.varela@gmail.com> AuthorDate: 2022-04-24 17:52:29 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2022-04-25 01:42:29 +0000 net-im/telegram-desktop: Fix use after free affecting multi user Closes: https://bugs.gentoo.org/837914 Thanks-to: Joe Kappus <joe@wt.gd> Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25184 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> .../files/tdesktop-3.6.1-fix-use-after-free.patch | 44 ++++++++++++++++++++++ ...6.1.ebuild => telegram-desktop-3.6.1-r1.ebuild} | 1 + 2 files changed, 45 insertions(+)