From owner-freebsd-current@FreeBSD.ORG Sun May 13 23:24:14 2007 Return-Path: X-Original-To: freebsd-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 9C39216A403; Sun, 13 May 2007 23:24:14 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 8630213C458; Sun, 13 May 2007 23:24:14 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id CAEFC1A4D81; Sun, 13 May 2007 16:25:02 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id AA28852C45; Sun, 13 May 2007 19:24:13 -0400 (EDT) Date: Sun, 13 May 2007 19:24:13 -0400 From: Kris Kennaway To: Stefan Bethke Message-ID: <20070513232413.GA65863@xor.obsecurity.org> References: <97D4D7C1-8FE4-48C1-9604-A567420796D5@lassitu.de> <4644D331.9080901@freebsd.org> <5729FCC6-7CD5-4D26-B075-9D517B9A06D5@lassitu.de> <3bbf2fe10705131245y276af14as53f3839e62024473@mail.gmail.com> <355DA9CE-F097-46EA-8D37-BA4C27019246@lassitu.de> <20070513222114.GA64807@xor.obsecurity.org> <68AA0B73-75E0-4E20-8AE0-74FB2FB654ED@lassitu.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68AA0B73-75E0-4E20-8AE0-74FB2FB654ED@lassitu.de> User-Agent: Mutt/1.4.2.2i Cc: Attilio Rao , FreeBSD Current , Andre Oppermann , Kris Kennaway Subject: Re: panic: mutex tcp owned at /usr/src/sys/netinet/tcp_input.c:2475 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: Sun, 13 May 2007 23:24:14 -0000 On Mon, May 14, 2007 at 12:55:40AM +0200, Stefan Bethke wrote: > > Am 14.05.2007 um 00:21 schrieb Kris Kennaway: > > >On Mon, May 14, 2007 at 12:17:28AM +0200, Stefan Bethke wrote: > >> > >>Am 13.05.2007 um 21:45 schrieb Attilio Rao: > >> > >>>2007/5/11, Stefan Bethke : > >>>> > >>>>Am 11.05.2007 um 22:33 schrieb Andre Oppermann: > >>>> > >>>>>Stefan Bethke wrote: > >>>>>>Got this reproducable panic on AMD64 on a couple of days old - > >>>>>>current when I try to copy a file off a ZFS dataset via > >>>>>>netatalk's afpd (via TCP, no actual AppleTalk involved). > >>>>> > >>>>>This is a recursive leak of the INP_INFO_LOCK() you've hit here. > >>>>>We don't > >>>>>know yet where it gets leaked but we're working on it. > >>>> > >>>>Hhm. I can trigger it very easily. I don't have a serial > >>>>console on > >>>>this box, but I could try a few things in a debugger if anyone > >>>>wants > >>>>me to look at anything in particular. > >>> > >>>Hello Stefan, > >>>can you please recompile your kernel with INVARIANTS, DDB and KTR > >>>support? > >>> > >>>Just add those lines: > >>>options INVARIANTS > >>>options INVARIANT_SUPPORT > >>>options KDB > >>>options DDB > >>>options KTR > >>>options KTR_COMPILE=(KTR_LOCK) > >>>options KTR_ENTRIES=65534 > >>> > >>>and possibly remove kbdmux from your config file (not sure if it has > >>>still problems with our syscons, though). > >>> > >>>Then, when you hit that panic you should just be redirected to ddb. > >>>At that point please write 'show ktr' in the ddb prompt and report > >>>what it shows. > >> > >>Left kbdmux in for the moment. Hit the panic, and show ktr shows > >>nothings: > >> > >>db> show ktr > >>--- End of trace buffer --- > >>db> > >> > >>If you think it's useful, I can remove kdbmux as well and try again. > > > >You also need KTR_MASK=(KTR_LOCK) (or set debug.ktr.mask at runtime), > >this filters the events that are logged. > > Nothing still. OK, KTR_ENTRIES is also wrong as suggested by attilio, it must be a power of 2. Try 32768 or 65536 (the latter may be too large depending on your architecture). Kris