From owner-freebsd-stable@FreeBSD.ORG Thu Apr 25 14:15:02 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 16BC2843 for ; Thu, 25 Apr 2013 14:15:02 +0000 (UTC) (envelope-from guy.helmer@gmail.com) Received: from mail-ye0-f178.google.com (mail-ye0-f178.google.com [209.85.213.178]) by mx1.freebsd.org (Postfix) with ESMTP id D5DF8174D for ; Thu, 25 Apr 2013 14:15:01 +0000 (UTC) Received: by mail-ye0-f178.google.com with SMTP id q9so430008yen.23 for ; Thu, 25 Apr 2013 07:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version:x-mailer; bh=XR2wvI45RQvBkRj/0SxxVaMvDS5KCoifkFztPfsUwBk=; b=yvl2uEA/v/z6sqHjQHJWSkB3Il8l1hzNqOd+24qew/CswoiqkU96vg7luSP4Sk4fq0 LTUK4UBHyHLQzeFlmcyyLE1u2VVvB9efIefluwVyhgCuzCHtXsL/SB47+d72xM8ubLOz ZTHCjJQ5/NJD9yaHFo0pr41bYMbKb8rTYvlfHnzOGXOybJnkRu/qLUPJBWDh2gL7Qek8 HiniB8euqvcHAR8Ljo5eY60NK+XZxEic54HppypvgSztk3Wc19nA6dYI7iPNhSPyj8zG dg8zqpryVSpTQhuLyf+ykyc9miejsz3nirVMYZdTj5J6AlazOXvZKsuniUu5uIVgNzPU Wn9Q== X-Received: by 10.236.129.112 with SMTP id g76mr25476782yhi.58.1366898810816; Thu, 25 Apr 2013 07:06:50 -0700 (PDT) Received: from [172.16.2.51] ([216.81.189.10]) by mx.google.com with ESMTPSA id e63sm9753500yhg.27.2013.04.25.07.06.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Apr 2013 07:06:49 -0700 (PDT) From: Guy Helmer Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: FreeBSD 9: fdisk -It crashes kernel Message-Id: <80F41679-9C3A-4E61-8AAD-403410344C32@gmail.com> Date: Thu, 25 Apr 2013 09:06:49 -0500 To: FreeBSD Stable Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) X-Mailer: Apple Mail (2.1503) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Apr 2013 14:15:02 -0000 Encountered a surprise when my disk resizing rc.d script caused FreeBSD = 9.1-STABLE to crash. I used "fdisk -It ada0" to determine what the = available size of the disk (which happened to be the root disk), and on = FreeBSD 9.1 the kernel comes crashing down: + fdisk -It ada0 + /rescue/sed -En 's,.*start ([0-9]+).*size ([0-9]+).*,\1 + \2,p' vnode_pager_getpages: I/O read error vm_fault: pager read error, pid 65 (fdisk) pid 65 (fdisk), uid 0: exited on signal 11 eval: arithmetic expression: expecting primary: "" Entropy harvesting: point_to_pointeval: date: Device not configured eval: df: Device not configured eval: dmesg: Device not configured cat: /bin/ls: Device not configured kickstart. eval: cannot open /etc/fstab: Device not configured eval: cannot open /etc/fstab: Device not configured eval: swapon: Device not configured Warning! No /etc/fstab: skipping disk checks fstab: /etc/fstab:0: Device not configured Fatal trap 12: page fault while in kernel mode cpuid =3D 1; apic id =3D 01 fault virtual address =3D 0x0 fault code =3D supervisor read, page not present instruction pointer =3D 0x20:0xc0825fc4 stack pointer =3D 0x28:0xc5a088c8 frame pointer =3D 0x28:0xc5a08914 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DLP 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 91 (mount) [ thread pid 91 tid 100056 ] Stopped at g_access+0x24: mlvl 0(%ebx),%eax db> where Tracing pid 91 tid 100056 td 0xc84c42f0 g_access(c8481d34,0,1,1,0,=85) at g_access+0x24/frame 0xc5a08914 ffs_mount(c8481d34,c0d78380,2,c5a08c00,c829ae6c,=85) af = ffs_mount+0xf74/frame 0xc5a08a34 vfs_donmount(c84c42f0,10000,0,c84cf200,c84cf200,=85) at = vfs_donmount+0x1423/frame 0xc5a08c24 sys_nmount(c84c42f0,c5a08ccc,c5a08cc4,1010006,c5a08d08,=85) at = sys_nmount+0x7f/frame 0xc5a08c48 syscall(c5a08d08) at syscall+0x443/frame 0xc508cfc Xint0x80_syscall() at Xint0x80_syscall+0x21/frame 0xc5a08cfc --- syscall (378, FreeBSD ELF32, sys_nmount), eip =3D 0x480d5feb, esp =3D = 0xbfbfce1c, ebp =3D 0xbfbfd378 --- I'll fix my script to not do this, but it seems odd that fdisk -It can = make the disk "go away". Guy=