hastd not working, getgroups failure, COMPAT_FREEBSD14 enabled

From: S. Ross Gohlke <ross_at_bisd.ro>
Date: Tue, 26 Aug 2025 20:05:23 UTC
I tried running the latest PRERELEASE snapshot obtained from 
<https://download.freebsd.org/snapshots/amd64/15.0-PRERELEASE/>, 
published on Aug. 22.

The hastd rc service starts but "hastctl status" fails with the 
following error message:
[CRIT] Assertion failed: (getgroups(0, NULL) == 1), function drop_privs, 
file /usr/src/sbin/hastd/subr.c, line 287.

I have followed the "UPDATING stuff" thread on this list about 14 
compatibility, and my understanding is that getgroups syscalls should 
work as long as the kernel has "options COMPAT_FREEBSD14" enabled.

I am running a custom kernel, but it is based on MINIMAL, so "options 
COMPAT_FREEBSD14" is enabled.

% sysctl kern.conftxt | grep COMPAT_FREEBSD14
options    COMPAT_FREEBSD14

Am I doing something wrong? Might this be fixed in the next snapshot 
(due Thursday)?


Thanks,

Ross