Using pkg 2.8.1: "pkg -c CHROOTPLACE upgrade -rFreeBSD-base" got a Segmentation fault (core dumped) [usual context?]; pkg-static got a jemalloc failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Jul 2026 20:30:59 UTC
I attempted:
# pkg -v
2.8.1
# pkg -c /usr/obj/DESTDIRs/official-aarch64-FreeBSD-set-minimal-jail/ \
upgrade -rFreeBSD-base
and got:
. . . (through fetching then) . . .
Checking integrity... done (2 conflicting)
- FreeBSD-lldb-15.snap20260725132238 [FreeBSD-base] conflicts with
FreeBSD-clang-15.snap20260626224917 [installed] on
/usr/lib/libprivatelldb.so.21
- FreeBSD-lldb-dbg-15.snap20260725132238 [FreeBSD-base] conflicts with
FreeBSD-clang-dbg-15.snap20260626224917 [installed] on
/usr/lib/debug/usr/lib/libprivatelldb.so.21.debug
pkg: internal solver error: variable is not found
pkg: cannot convert job to SAT problem
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
Segmentation fault (core dumped)
(Note: gdb got no useful backtrace.)
But:
) for the pkg -c command pkg was 2.8.1 via use of a local port-package
repository --unlike the chroot directory tree.
) /usr/obj/DESTDIRs/official-aarch64-FreeBSD-set-minimal-jail/ was still
at 2.7.5 inside this chroot driectry tree because it gets its port
packages from upstream FreeBSD-ports and the aarch64 distribution had
not happened yet for pkg 2.8.* . Inside a use of the chroot:
# pkg -v
2.7.5
# pkg repos
FreeBSD-ports: {
url :
"pkg+https://pkg.FreeBSD.org/FreeBSD:15:aarch64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-ports-kmods: {
url :
"pkg+https://pkg.FreeBSD.org/FreeBSD:15:aarch64/kmods_latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-base: {
url :
"pkg+https://pkg.FreeBSD.org/FreeBSD:15:aarch64/base_latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
But attempting use of pkg-static (2.8.1) via gdb use got:
# gdb pkg-static
GNU gdb (GDB) 15.1 [GDB v15.1 for FreeBSD]
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-portbld-freebsd16.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pkg-static...
(gdb) run -c
/usr/obj/DESTDIRs/official-aarch64-FreeBSD-set-minimal-jail/ upgrade
-rFreeBSD-base
Starting program: /usr/local/sbin/pkg-static -c
/usr/obj/DESTDIRs/official-aarch64-FreeBSD-set-minimal-jail/ upgrade
-rFreeBSD-base
[Detaching after fork from child process 52347]
pkg-static: Warning: Major OS version upgrade detected. Running "pkg
bootstrap -f" recommended
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
FreeBSD-base is up to date.
Checking for upgrades (183 candidates): 100%
Processing candidates (183 candidates): 100%
Checking integrity... done (2 conflicting)
- FreeBSD-lldb-15.snap20260725132238 [FreeBSD-base] conflicts with
FreeBSD-clang-15.snap20260626224917 [installed] on
/usr/lib/libprivatelldb.so.21
- FreeBSD-lldb-dbg-15.snap20260725132238 [FreeBSD-base] conflicts with
FreeBSD-clang-dbg-15.snap20260626224917 [installed] on
/usr/lib/debug/usr/lib/libprivatelldb.so.21.debug
pkg-static: internal solver error: variable is not found
pkg-static: cannot convert job to SAT problem
<jemalloc>: jemalloc_jemalloc.c:2883: Failed assertion: "alloc_ctx.szind
!= SC_NSIZES"
Program received signal SIGABRT, Aborted.
Sent by kill() from pid 52346 and user 0.
kill () at kill.S:4
warning: 4 kill.S: No such file or directory
May be that detail is just because a chroot action is involved in a pkg
instance that was started under gdb.
--
===
Mark Millard
marklmi at yahoo.com