From owner-freebsd-current@FreeBSD.ORG Mon Aug 18 20:45:05 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 05832F1D for ; Mon, 18 Aug 2014 20:45:05 +0000 (UTC) Received: from mail-oa0-x229.google.com (mail-oa0-x229.google.com [IPv6:2607:f8b0:4003:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C60383562 for ; Mon, 18 Aug 2014 20:45:04 +0000 (UTC) Received: by mail-oa0-f41.google.com with SMTP id j17so4489407oag.14 for ; Mon, 18 Aug 2014 13:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qcTpnh6O8FtjoV6gMUGjekHnk374we5955a8De1SF5g=; b=iUMgjTUp/ytdPX85zxWFk2dxcqjxu4sp+a8mPfKwunH+eaAVfSArEsFR0PQKRyQkBp U4tN/YiPuVQPhPzBwsXECpg9Xi2V326zh+MyiYekwR2vuaWk+UUvDg6iYRczozdriHth 0ARSQrwJeHlgVpaNgohkIrVSdXJ+tsqW0pLElLuv0ycB3bhYUplnwcuyqVQyNYdtex3k xwpNDCY7iy5C/5VKEBwQ/41QqkcUPCW7BmNci+MUSnmI2m3hhbBLT3sZo8dVcnPqvXd2 FRmiERjmtk9CCZe8X5WUMOaS7WcHxSLcen87JftzsZal8N+Za0xbRHc2earr/HuOS3I1 paEw== MIME-Version: 1.0 X-Received: by 10.182.114.169 with SMTP id jh9mr38983276obb.25.1408394704135; Mon, 18 Aug 2014 13:45:04 -0700 (PDT) Received: by 10.76.187.39 with HTTP; Mon, 18 Aug 2014 13:45:04 -0700 (PDT) In-Reply-To: <20140818152138.GA3481@borg.lerctr.org> References: <20140818152138.GA3481@borg.lerctr.org> Date: Mon, 18 Aug 2014 16:45:04 -0400 Message-ID: Subject: Re: DEADLKRES crash From: Ryan Stone To: Larry Rosenman Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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, 18 Aug 2014 20:45:05 -0000 On Mon, Aug 18, 2014 at 11:21 AM, Larry Rosenman wrote: > I got the following: > > borg.lerctr.org dumped core - see /var/crash/vmcore.8 > > Mon Aug 18 07:30:42 CDT 2014 > > FreeBSD borg.lerctr.org 11.0-CURRENT FreeBSD 11.0-CURRENT #63 r269784M: Sun Aug 10 12:33:07 CDT 2014 root@borg.lerctr.org:/usr/obj/usr/src/sys/VT-LER amd64 > > panic: deadlkres: possible deadlock detected for 0xfffff8002abeb000, blocked for 1800926 ticks > > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "amd64-marcel-freebsd"... > > Unread portion of the kernel message buffer: > panic: deadlkres: possible deadlock detected for 0xfffff8002abeb000, blocked for 1800926 ticks > > cpuid = 3 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe100bff1a10 > kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe100bff1ac0 > vpanic() at vpanic+0x126/frame 0xfffffe100bff1b00 > panic() at panic+0x43/frame 0xfffffe100bff1b60 > deadlkres() at deadlkres+0x35c/frame 0xfffffe100bff1bb0 > fork_exit() at fork_exit+0x84/frame 0xfffffe100bff1bf0 > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe100bff1bf0 > --- trap 0, rip = 0, rsp = 0xfffffe100bff1cb0, rbp = 0 --- > Uptime: 7d14h14m38s The first thing that I'd like to see is (in kgdb): set $td=(struct thread)0xfffff8002abeb000 tid $td->td_tid bt That will show us the backtrace of the thread that was blocked for so long.