Pkgbasify + Aarch64 + 15.0-BETA5 + pkg 2.3.1_1 = segfault

From: Nathan Reilly-list <lists_at_nreilly.com>
Date: Tue, 11 Nov 2025 01:07:41 UTC
Hello,

Just wanted to let people know that using the latest pkg available for aarch64/15 (2.3.1_1) I was getting segmentation faults when trying to run pkgbasify on a system upgraded from 14.3 to 15.0-BETA5.

https://gist.github.com/nreilly/a43b6b7eb94ece81800faf6b39e89eca

Compiling pkg 2.4.2 myself via ports seems to have resolved this for me.

2.3.1_1:
> root@spook:~nr # pkg install --no-repo-update -y -r FreeBSD-base FreeBSD-atf-15.0.b5.20251107061753
> Checking integrity... done (0 conflicting)
> The following 1 package(s) will be affected (of 0 checked):
> New packages to be INSTALLED:
> FreeBSD-atf: 15.0.b5.20251107061753 [FreeBSD-base]
> Number of packages to be installed: 1
> [1/1] Installing FreeBSD-atf-15.0.b5.20251107061753...
> [1/1] Extracting FreeBSD-atf-15.0.b5.20251107061753: 100%
> Child process pid=8044 terminated abnormally: Segmentation fault
> root@spook:~nr #


2.4.2:
> root@spook:/usr/ports/ports-mgmt/pkg # pkg install --no-repo-update -y -r FreeBSD-base FreeBSD-atf-15.0.b5.20251107061753
> Updating database digests format: 100%
> Checking integrity... done (0 conflicting)
> The following 1 package(s) will be affected (of 0 checked):
> 
> New packages to be INSTALLED:
>        FreeBSD-atf: 15.0.b5.20251107061753 [FreeBSD-base]
> 
> Number of packages to be installed: 1
> [1/1] Installing FreeBSD-atf-15.0.b5.20251107061753...
> [1/1] Extracting FreeBSD-atf-15.0.b5.20251107061753: 100%
> ==> Running trigger: mandoc.ucl
> Generating apropos(1) database for /usr/share/man...
> Generating apropos(1) database for /usr/share/openssl/man...
> root@spook:/usr/ports/ports-mgmt/pkg #


Regards,
Nathan