Paul Mather
2018-Nov-24 14:17 UTC
"sockstat: struct xinpgen size mismatch" in 11.2-p4 jail on 12-STABLE host
I updated a system yesterday to the latest 12-STABLE as part of the upcoming 12-RELEASE cycle. I've installed several BETA and at least one RC of 12 since updating from 11-STABLE as part of the 12 cycle and have had no problems up to now. Currently, I am at FreeBSD 12.0-PRERELEASE r340834 GENERIC amd64. Since the most recent update, I have been getting this error when I invoke "sockstat" in any of the jails running on the system: sockstat: struct xinpgen size mismatch The jails are managed via iocage and all are running 11.2-RELEASE-p4, which is the most up-to-date version of 11.2-RELEASE. Has anyone encountered this error? Unfortunately, it means that it breaks Salt, which is what I use to help manage the jails. Sockstat works fine on the host, just not in the jails. I am using a GENERIC kernel which includes "options COMPAT_FREEBSD11". I assumed this would allow FreeBSD 11 binaries to work on a FreeBSD 12 kernel, which it has done up to now. Cheers, Paul.
Brooks Davis
2018-Nov-26 23:44 UTC
"sockstat: struct xinpgen size mismatch" in 11.2-p4 jail on 12-STABLE host
On Sat, Nov 24, 2018 at 09:17:23AM -0500, Paul Mather wrote:> I updated a system yesterday to the latest 12-STABLE as part of the upcoming 12-RELEASE cycle. I've installed several BETA and at least one RC of 12 since updating from 11-STABLE as part of the 12 cycle and have had no problems up to now. Currently, I am at FreeBSD 12.0-PRERELEASE r340834 GENERIC amd64. > > Since the most recent update, I have been getting this error when I invoke "sockstat" in any of the jails running on the system: > > sockstat: struct xinpgen size mismatch > > The jails are managed via iocage and all are running 11.2-RELEASE-p4, which is the most up-to-date version of 11.2-RELEASE. > > Has anyone encountered this error? Unfortunately, it means that it breaks Salt, which is what I use to help manage the jails. Sockstat works fine on the host, just not in the jails. > > I am using a GENERIC kernel which includes "options COMPAT_FREEBSD11". I assumed this would allow FreeBSD 11 binaries to work on a FreeBSD 12 kernel, which it has done up to now.We broke this system management ABI months ago. I'm not sure why you're only bumping into this now. We don't provide backward compatibility for these interfaces. To make this configuration work, I'd suggest replacing the sockstat in the jail with a statically linked version built for FreeBSD 12. -- Brooks -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 455 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20181126/3c8fa0ac/attachment-0001.sig>