From owner-freebsd-current@FreeBSD.ORG Mon Apr 16 09:16:08 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F17F016A401 for ; Mon, 16 Apr 2007 09:16:08 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id B055C13C45E for ; Mon, 16 Apr 2007 09:16:08 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1734623ana for ; Mon, 16 Apr 2007 02:16:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qEOOEOWzCeZdR6KpPbnWMBeyxs+TOexRCd4a/7xWAOj/QQ5t43hE6QFsAlf5O4teVGd/csnj092PRsfDXxA7sNIp1ZCYbtWNKKM33pLgd/kJfUxNHM9Mlp7WVGJeiXc/JkWcaf5ropNucSXxVwv7VxejF0qCDksB3BDYgrkZ0aA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=CxKhV8jQqZEpBrYCv/m25SZ4MaTpQrsVoJFL8Hc9WWJdtC1jhCQedYXOhZ4bYEMX9GSTXqX8JTMCS6/jQi6UcL+8GIL8Uf+5C8lXKxhDxLtpjW8DmJW4j4DzD9ghA/dZmpKPOcf6xaMGg+SfhGLQnYNplnpLiy3nULtsnmpBLLA= Received: by 10.100.125.5 with SMTP id x5mr4315778anc.1176714965905; Mon, 16 Apr 2007 02:16:05 -0700 (PDT) Received: by 10.100.191.11 with HTTP; Mon, 16 Apr 2007 02:16:05 -0700 (PDT) Message-ID: <3bbf2fe10704160216i1b55fe1fkba27744e8b6eab64@mail.gmail.com> Date: Mon, 16 Apr 2007 11:16:05 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Julian Elischer" In-Reply-To: <4615A164.6010900@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070405231707.GB1625@kaiser.sig11.org> <4615A164.6010900@elischer.org> X-Google-Sender-Auth: 1ca8f35393840112 Cc: Matteo Riondato , current@freebsd.org, kmacy@freebsd.org Subject: Re: struct x*pcb size mismatch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2007 09:16:09 -0000 2007/4/6, Julian Elischer : > 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