"sockstat: struct xinpgen size mismatch" in 11.2-p4 jail on 12-STABLE host

Paul Mather freebsd-lists at gromit.dlib.vt.edu
Tue Nov 27 15:10:29 UTC 2018


On Nov 26, 2018, at 6:44 PM, Brooks Davis <brooks at freebsd.org> wrote:

> 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.


Thank you for the response and the advice.

I'm not sure why/if I'm only bumping into this now.  It may be that I only looked deeper into why Salt was breaking this time around and saw the problem to be an invocation of "sockstat" by a Python module.  Salt has temporarily broken for me in the past due to updates, but usually mends itself on a subsequent rebuild/reinstall of the packages.

When the 12.0-RC2 announcement came out shortly after I reported the above I decided to upgrade to it.  That seemed to fix the problem with Salt (or at least coincide with the problem going away), which is my main concern.  I still get the same error as reported above when I invoke "sockstat" in the 11.2 jail, but as long as Salt is working again then that's all I really need. :-)

When 12.0-RELEASE comes out I will most likely just upgrade the 11.2 jails to 12.0.  The main reason for not updating now is that iocage doesn't appear to recognise the existence of any release more recent than 11.2.

Thanks again.

Cheers,

Paul.



More information about the freebsd-stable mailing list