From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 19:54:47 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 2684CC42; Wed, 28 Jan 2015 19:54:47 +0000 (UTC) Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) (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 AD43838B; Wed, 28 Jan 2015 19:54:46 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id x12so22596900wgg.4; Wed, 28 Jan 2015 11:54:45 -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=IYmR3rQw/jhoTIGV+D8BrpIyfbwB5nzkSH4Pbd81vUY=; b=yNOZwHZPxtzpl8DRIanzhAYhOfy/afXdWhGxsgFUFvjOeuPqwVm9BsfjVIcqVTuUOQ bqfB0dw7fePWYJ7TU1lHeQVIwu0MmQbXkqSRUxFmZTMSve52UiotVTgcEBpN0PwlJO2z 5djZfu7fn8peJbeo2E5OFSndFYaoW0fwA2QDX16SU87qfVQhxZ1H35jpBnIL6eSmPNzF mpkym8RfCe+KqpXgBy0cv42REe+78YKNOMiSpLYd7fvoXzUk8R2iVAzJqHPFYdeElYCo rO5ejwbsp6rB9hQxIZrWITMaiQsbsdvrAl3P964dg95CccXJqzZc6hwBA4hHqP1J1ThG RLnw== MIME-Version: 1.0 X-Received: by 10.194.189.77 with SMTP id gg13mr10856718wjc.81.1422474884993; Wed, 28 Jan 2015 11:54:44 -0800 (PST) Received: by 10.27.5.207 with HTTP; Wed, 28 Jan 2015 11:54:44 -0800 (PST) In-Reply-To: <20150128193315.GC15484@glebius.int.ru> 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: Wed, 28 Jan 2015 11:54:44 -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: Wed, 28 Jan 2015 19:54:47 -0000 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"