From owner-freebsd-fs@FreeBSD.ORG Mon Nov 10 22:51:06 2014 Return-Path: Delivered-To: freebsd-fs@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 478D549B for ; Mon, 10 Nov 2014 22:51:06 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 165A296C for ; Mon, 10 Nov 2014 22:51:06 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAAMp59k065308 for ; Mon, 10 Nov 2014 22:51:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-fs@FreeBSD.org Subject: [Bug 188187] [zfs] [panic] 10-stable: Kernel panic on zpool import: integer divide fault Date: Mon, 10 Nov 2014 22:51:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: smh@FreeBSD.org X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-fs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2014 22:51:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188187 --- Comment #7 from Steven Hartland --- Created attachment 149271 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149271&action=edit early dump dev If you can build a kernel on another machine you can use this patch to allow you to configure the dump device via a tunable which will available prior to mounting root. >From the loader prompt run: set kern.shutdown.dumpdev_early= e.g. set kern.shutdown.dumpdev_early=/dev/ada0p3 This should be set to either an empty partition / disk or your swap partition. After that boot using: boot It will go through the usual process but should also dump the panic to the device listed above. Once you have the panic on disk you will need to boot with something like mfsbsd (which doesn't panic). After booted edit /etc/rc.conf and add: dumpdev="AUTO" Then run: /etc/rc.d/dumpon start If the kernel your running is not the same as the kernel which created the dump ensure you copy that kernel to /boot/kernel/ including all symbols. Now run: /etc/rc.d/savecore start This will copy the crash off the dump device to /var/crash/ and perform a trace on it which you can copy off along with the kernel to perform additional debugging on. Additional info which may well be helpful is the output from: zdb -l e.g. zdb -l /dev/ada0p2 Hope this all make sense. -- You are receiving this mail because: You are the assignee for the bug.