Re: struct x*pcb size mismatch

From: Attilio Rao <attilio_at_freebsd.org>
Date: Mon, 16 Apr 2007 11:16:05 +0200
2007/4/6, Julian Elischer <julian_at_elischer.org>:
> Matteo Riondato wrote:
> > I rebuild my system with HEAD sources as of today and began
> > experiencing the following problem:
> > [rionda_at_kaiser][~]> sockstat
> > sockstat: struct xtcpcb size mismatch
> > sockstat: struct xinpcb size mismatch
> > sockstat: struct xunpcb size mismatch
> > sockstat: struct xunpcb size mismatch
> > USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN
> > ADDRESS
> > [rionda_at_kaiser][~]>
> >
> >
> > Any idea of what can cause this problem?
> > Kernel and world are *not* out of sync: I recompiled both.
> >
> > Thanks
> > Best regards
>
>
> Remove some debugging options in your kernel.
> (or put the same options in /etc/make.conf)
>
> and recompile
>
> Unfortunately some of the profiling and debugging options
> change the size of some of the structures..
>
>
> In particular I think the lock-profiling one changes the size of a mutex
> which is included everywhere.
>
> This is a bug, but don't expect it to be fixed too quickly.

Hello,
I have a fix for that.
As extra bonus, it reduces size of struct mtx.
The patch is yet highly untested, but I hope to have stability test
for tonight here:
http://users.gufi.org/~rookie/works/patches/lp0416.diff

If you can report any error ASAP, it would be a lot better.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein
Received on Mon Apr 16 2007 - 07:16:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:08 UTC