Re: pkg upgrade segfaults on 15-STABLE

From: Nick Price <nick_at_spun.io>
Date: Sat, 08 Nov 2025 16:07:18 UTC

On Sat, Nov 8, 2025, at 5:57 AM, Lexi Winter wrote:
> Christos Margiolis wrote in <DE3D09D5MHFK.2GP6VDWDK2ZT@freebsd.org>:
> > On Sat Nov 8, 2025 at 2:07 PM CET, Ricardo Branco wrote:
> > > $ pkg --version
> > > 2.3.1
> > >
> > > # pkg upgrade
> > > ...
> > > [1/7] Upgrading FreeBSD-utilities from 15.snap20251105170707 to
> > > 15.snap20251107233400...
> > > [1/7] Extracting FreeBSD-utilities-15.snap20251107233400:   0%Child process
> > > pid=51001 terminated abnormally: Segmentation fault
> > 
> > Been having the same problem since yesterday, exactly at the extraction
> > stage, like you:
> > 
> > [...]
> > [1/15] Upgrading FreeBSD-openssl from 15.0.b4.20251105194318 to 15.0.b5.20251107060943...
> > [1/15] Extracting FreeBSD-openssl-15.0.b5.20251107060943:   0%Child process pid=5894 terminated abnormally: Segmentation fault
> 
> i also ran into this and found it was fixed in pkg 2.4.99, which
> probably means it's fixed in 2.4.[01] as well.  to recover a broken
> system, you could (build, and) copy over a pkg-static from another
> system.
> 
> i mentioned this to Colin, and it's apparently too late to get pkg 2.4
> into the 15.0 release, but it should be on pkg.f.o before the release,
> which means 'pkg upgrade' will pick it up before running the upgrade.
> 
> 
> *Attachments:*
>  • signature.asc

I think this was fixed here - 2.4.1 seemed to resolve it for me

https://github.com/freebsd/pkg/commit/dec5e78058729933d31bc252127818a31bf0201a