Date: Mon, 16 Apr 2007 11:16:05 +0200 From: "Attilio Rao" <attilio@freebsd.org> To: "Julian Elischer" <julian@elischer.org> Cc: Matteo Riondato <matteo@freebsd.org>, current@freebsd.org, kmacy@freebsd.org Subject: Re: struct x*pcb size mismatch Message-ID: <3bbf2fe10704160216i1b55fe1fkba27744e8b6eab64@mail.gmail.com> In-Reply-To: <4615A164.6010900@elischer.org> References: <20070405231707.GB1625@kaiser.sig11.org> <4615A164.6010900@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
2007/4/6, Julian Elischer <julian@elischer.org>: > Matteo Riondato wrote: > > I rebuild my system with HEAD sources as of today and began > > experiencing the following problem: > > [rionda@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3bbf2fe10704160216i1b55fe1fkba27744e8b6eab64>