Re: after updating to latest, pkg base segfaults and leaves me unbootable

From: Florian Smeets <flo_at_smeets.xyz>
Date: Sat, 09 Aug 2025 12:47:47 UTC
On 09.08.25 12:52, Lexi Winter wrote:
> Dan Mahoney:
>> [598/1127] Deleting files for p5-MIME-Base32-1.303: 100%
>> [599/1127] Deinstalling p5-MIME-Base64-3.16...
>> [599/1127] Deleting files for p5-MIME-Base64-3.16: 100%
>> Child process pid=21537 terminated abnormally: Segmentation fault
> 
> do you happen to know what process got SEGV here?  if you still have a
> copy of the broken system it should be logged in /var/log/messages, e.g.:
> 
> Aug  8 16:52:34 tansy kernel: pid 80112 (su), jid 0, uid 0: exited on signal 11 (core dumped)
> 

> you can fix this by reinstalling the base system with pkg-static, which
> is the pkgbase equivalent of extracting base.txz:
> 
> 	pkg-static install -r base -g 'FreeBSD-*'
> 

pkg-static was also the first thing I was looking at when trying to 
recover. But it was unusable as well.

Thanks to Dan's posted log 
(https://users.isc.org/~dmahoney/failedupgrade.txt) we have the error 
message, I couldn't recall from memory.

# pkg-static install -f pkg
pkg-static: Unable to determine the ABI, none of the ABI_FILEs can be read.
pkg-static: Cannot parse configuration file!

I also tried pkg-static add with a few files in /var/cache/pkg, until I 
came up with my plan to untar those files.

Maybe there would have been a way to get pkg-static going, but once I 
thought about untaring the .pkg files I stopped looking.

> however, this will overwrite all your configuration files, including
> /etc/master.passwd, so be very careful.
> 
That's an important note for everyone that's affected. I had a 
recent-ish .pkgsave file of master.passwd and groups, luckily.

Florian