Index | Thread | Search

From:
Chris Billington <emulti@disroot.org>
Subject:
Re: net/tdesktop 6.1.3 segmentation fault on 7.8
To:
Klemens Nanni <kn@openbsd.org>, ports@openbsd.org
Date:
Sat, 2 May 2026 14:34:15 +0800

Download raw body.

Thread
Klemens Nanni wrote:
> 01.05.2026 16:21, Chris Billington пишет:
>> 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.
> 
> Sounds like some other dependency of tdesktop that updated in -stable causes this.
> 
> You could check /var/log/messages for which packages got changed try to roll them
> back (if you have old packages available).
> 
My logs only go back two months or so, and there are plenty of 
dependencies. I don't have the old packages around any more 
unfortunately, but I think I was able to figure out how to list only 
packages that have seen Makefile updates in -stable.
Is the followinn correct:
cd /usr
cvs -qd anoncvs@anoncvs.spacehopper.org:/cvs rdiff -s -r 
OPENBSD_7_8_BASE -r OPENBSD_7_8 ports |grep Makefile > 
~/7.8-stable-changes.txt

If that list is correct the tdesktop dependencies that changed are

devel/ffmpeg 6.1.3v1 > 6.1.3p0v1(patch changes). I tried rebuilding the 
original but failed, maybe I picked the wrong patch?

net/tg_owt (add a dependency on libsrtp, which is installed)

However, given that tdesktop users will likely be desktop users and 
therefore almost certain to upgrade to 7.9 soon, I figured that is 
probably enough digging into this mystery. Thanks for the pointers.

Chris