From owner-freebsd-current@freebsd.org Tue Jul 21 19:28:48 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AC3C9A78EA for ; Tue, 21 Jul 2015 19:28:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7DBE91AB5 for ; Tue, 21 Jul 2015 19:28:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 7A6DD9A78E8; Tue, 21 Jul 2015 19:28:48 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79DE29A78E7; Tue, 21 Jul 2015 19:28:48 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4ED31AB3; Tue, 21 Jul 2015 19:28:47 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id t6LJSWPb046509 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 21 Jul 2015 22:28:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t6LJSWPb046509 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id t6LJSWYC046508; Tue, 21 Jul 2015 22:28:32 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 21 Jul 2015 22:28:32 +0300 From: Konstantin Belousov To: Mark Johnston Cc: David Wolfskill , current@freebsd.org, net@freebsd.org Subject: Re: panic: witness_warn head/amd64 @r285741 on 1 of 2 machines Message-ID: <20150721192832.GB2404@kib.kiev.ua> References: <20150721125734.GF1217@albert.catwhisker.org> <20150721133907.GR2404@kib.kiev.ua> <20150721161927.GN1217@albert.catwhisker.org> <20150721191743.GA39506@muskytusk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150721191743.GA39506@muskytusk> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Tue, 21 Jul 2015 19:28:48 -0000 On Tue, Jul 21, 2015 at 07:17:43PM +0000, Mark Johnston wrote: > On Tue, Jul 21, 2015 at 09:19:27AM -0700, David Wolfskill wrote: > > On Tue, Jul 21, 2015 at 04:39:07PM +0300, Konstantin Belousov wrote: > > > On Tue, Jul 21, 2015 at 05:57:34AM -0700, David Wolfskill wrote: > > > > My laptop had no problems, but the build machine has a panic that > > > > appears quite reproducible (4 "successes" out of 4 tries); here's a bit > > > > from the core.txt file: > > > > > > There must be kernel messages before the panic string. They are crusial > > > to understand what is going on. > > > ... > > > > Sorry I wasn't able to capture those before I needed to do Other Things. > > > > The machine had a (PCI-attached) serial console that was working > > for FreeBSD (thanks mostly to sbruno's help), but Somthing seems > > to Have Happened, and that's not presently working (even in stable/10, > > where I first got it working). > > > > I will try to get it working again, but I doubt I will have time to > > focus on that until about 9 hours from now. > > It's possible to extract log messages leading up to the panic from the > vmcore. From the kgdb prompt, running > > (kgdb) printf "%s", msgbufp->msg_ptr > > should bring them up. > > And, I just noticed that you posted the core.txt, which contains this > info near the end: > http://www.catwhisker.org/~david/FreeBSD/head/core.txt.1 Indeed, thank you. ithread_loop() at ithread_loop+0xa6/frame 0xfffffe083b9c0a70 fork_exit() at fork_exit+0x84/frame 0xfffffe083b9c0ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe083b9c0ab0 --- trap 0, rip = 0, rsp = 0xfffffe083b9c0b70, rbp = 0 --- suspending ithread with the following locks held: shared rw udpinp (udpinp) r = 3 (0xfffff80010c7d7b0) locked @ /usr/src/sys/netinet6/in6_pcb.c:1174 panic: witness_warn cpuid = 3 So it looks like net swi, leaking some udp6 lock.