From owner-freebsd-current@FreeBSD.ORG Mon Sep 11 18:59:40 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E847E16A403; Mon, 11 Sep 2006 18:59:40 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B804243D64; Mon, 11 Sep 2006 18:59:36 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5E294.dip.t-dialin.net [84.165.226.148]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8BIbsSf088090; Mon, 11 Sep 2006 20:37:55 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8BIxWIo099766; Mon, 11 Sep 2006 20:59:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Mon, 11 Sep 2006 20:59:53 +0200 From: Alexander Leidinger To: Pawel Jakub Dawidek Message-ID: <20060911205953.78b2e31a@Magellan.Leidinger.net> In-Reply-To: <20060911180205.GA44856@garage.freebsd.pl> References: <20060910194536.1b699733@Magellan.Leidinger.net> <20060910184359.GA7152@xor.obsecurity.org> <20060910230003.28fbc780@Magellan.Leidinger.net> <20060910211556.GA9924@xor.obsecurity.org> <20060911100117.GA92022@garage.freebsd.pl> <20060911194740.0c671c28@Magellan.Leidinger.net> <20060911180205.GA44856@garage.freebsd.pl> X-Mailer: Sylpheed-Claws 2.4.0 (GTK+ 2.8.20; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: rwatson@freebsd.org, current@freebsd.org, Kris Kennaway Subject: Re: panic: System call old.recv returning with 1 locks held 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, 11 Sep 2006 18:59:41 -0000 Quoting Pawel Jakub Dawidek (Mon, 11 Sep 2006 20:02:05 +0200): > On Mon, Sep 11, 2006 at 07:47:40PM +0200, Alexander Leidinger wrote: > > Quoting Pawel Jakub Dawidek (Mon, 11 Sep 2006 12:01:18 +0200): > > > > > In HEAD (not sure if it was MFCed) jhb@ added code to track number of > > > mutexes/sx-locks acquired/released. So bascially this panic can happen > > > when you leak a lock of any kind. > > > > > > 'show alllocks' has to show them when the kernel (and modules) is > > > compiled with WITNESS. > > > > exclusive sleep mutex so_snd r=0 (0xc2b204c4) locked @ kern/uipc_socket.c:984 > [...] > > Much easier now. > > > How to track this down? > > Try this patch: > > http://people.freebsd.org/~pjd/patches/uipc_socket.c.2.patch Works (send01 runs, but I start a complete test now). Thanks! I'm going ahead and suggest to have at least rev 1.281 of uipc_socket.c in the linuxolator-wiki. Now... anyone up to porting the ltp to FreeBSD (or at least having a look at the testcases and adopting them to our regression test)? BTW: your key is expired. Bye, Alexander. -- The slowest checker is always at the quick-check-out lane. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137