From owner-freebsd-current@FreeBSD.ORG Tue Feb 10 01:33:02 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D6966AD; Tue, 10 Feb 2015 01:33:01 +0000 (UTC) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6680D97C; Tue, 10 Feb 2015 01:33:01 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id n12so30438124wgh.6; Mon, 09 Feb 2015 17:32:59 -0800 (PST) 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=Q/pPTzkSn/zmWAQ9dao8AZvZoPn5sryztbQGPZn4tzY=; b=dCEXnLYsVCAXKN7zYpu0u7njiceq8LY0CBeHRygPS1AYMRvmZqeV08oFQQnK1g0w8v ssjUlj+iFRAR8X2+W8ImIkPdQMxGLxEQeSTa/Ea30Ikqj8rHANpSRWGS5Cef0edq3vLm lhn+S4QOviFU9K+gAZWAHxyg6/xBUbm33Aj5b8srpQOGzfASy963mt2Jppu0ez6QipDP HR8xeXr7YXn1Ln3Usmlt09xDNaAU8BOK2rvu+IKNSdc0MSCLgXCALftfY8RYXL4aIvRB sGWxVvUv9mZgZnRzp5sXoaCn48gUy2tg2+HYpAFqFJVAKWD0gEj5GNYVJbtn4yRDuK0s hgog== MIME-Version: 1.0 X-Received: by 10.180.37.33 with SMTP id v1mr32058007wij.76.1423531979782; Mon, 09 Feb 2015 17:32:59 -0800 (PST) Received: by 10.27.91.79 with HTTP; Mon, 9 Feb 2015 17:32:59 -0800 (PST) In-Reply-To: References: <20150127203103.GZ15484@glebius.int.ru> <20150128104842.GL42409@kib.kiev.ua> <20150128182230.GB15484@glebius.int.ru> <20150128190441.GO42409@kib.kiev.ua> <20150128193315.GC15484@glebius.int.ru> Date: Mon, 9 Feb 2015 17:32:59 -0800 Message-ID: Subject: Re: panic in softdep_slowdown() From: Neel Natu To: Gleb Smirnoff Content-Type: text/plain; charset=UTF-8 Cc: Konstantin Belousov , "current@freebsd.org" , Peter Grehan 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: Tue, 10 Feb 2015 01:33:02 -0000 A fix for this panic was submitted by kib@ as r277922: https://svnweb.freebsd.org/base?view=revision&revision=277922 best Neel On Wed, Jan 28, 2015 at 11:54 AM, Neel Natu wrote: > Hi Gleb, > > On Wed, Jan 28, 2015 at 11:33 AM, Gleb Smirnoff wrote: >> On Wed, Jan 28, 2015 at 09:04:42PM +0200, Konstantin Belousov wrote: >> K> > I can't see where integer divide fault can happen with stat_flush_threads=1 :( >> K> >> K> Look at the exact asm instruction which faulted, also look at the registers >> K> content. >> K> >> K> It might be hypervisor bug, after all. >> >> Yes, for me it looks like it. %edx should be one as well as -0x44(%rbp). >> >> 0xffffffff80895d43 : mov -0x20(%rbp),%ecx >> 0xffffffff80895d46 : mov %ecx,%edx >> 0xffffffff80895d48 : shr $0x1f,%edx >> 0xffffffff80895d4b : add %edx,%ecx >> 0xffffffff80895d4d : sar %ecx >> 0xffffffff80895d4f : mov 0xffffffff80ee24c8,%edx >> 0xffffffff80895d56 : mov %rax,-0x40(%rbp) >> 0xffffffff80895d5a : mov %ecx,%eax >> 0xffffffff80895d5c : mov %edx,-0x44(%rbp) >> 0xffffffff80895d5f : cltd >> 0xffffffff80895d60 : mov -0x44(%rbp),%ecx >> 0xffffffff80895d63 : idiv %ecx >> >> (kgdb) p &stat_flush_threads >> $5 = (int *) 0xffffffff80ee24c8 >> (kgdb) info registers >> rax 0x12b86 76678 >> rbx 0x4 4 >> rcx 0x0 0 >> rdx 0x0 0 >> rsi 0x3e8 1000 >> rdi 0x99 153 >> rbp 0xfffffe001eb5f2b0 0xfffffe001eb5f2b0 >> ... >> (kgdb) p *(int *)($rbp - 0x44) >> $4 = 0 >> (kgdb) p *(int *)($rbp - 0x40) >> $8 = 0 >> (kgdb) p &max_softdeps_hard >> $11 = (int *) 0xfffffe001eb5f290 >> (kgdb) p (int *)($rbp - 0x20) >> $12 = (int *) 0xfffffe001eb5f290 >> (kgdb) p max_softdeps_hard >> $10 = 153357 >> > > Can you upload the core file and the kernel someplace that I can access? > > best > Neel > >> -- >> Totus tuus, Glebius. >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"