From owner-freebsd-current@FreeBSD.ORG Wed Nov 14 03:07:32 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1937A16A418 for ; Wed, 14 Nov 2007 03:07:32 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (rafe.jeamland.net [202.45.126.103]) by mx1.freebsd.org (Postfix) with ESMTP id CB93A13C461 for ; Wed, 14 Nov 2007 03:07:31 +0000 (UTC) (envelope-from benno@jeamland.net) Received: from mail.jeamland.net (localhost [127.0.0.1]) by mail.jeamland.net (Postfix) with ESMTP id 99F8B1CD34 for ; Wed, 14 Nov 2007 14:07:20 +1100 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on rafe.jeamland.net X-Spam-Level: X-Spam-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from urtzweil.blueboxdevices.com (eth785.vic.adsl.internode.on.net [150.101.222.16]) by mail.jeamland.net (Postfix) with ESMTP id 34DA71CC7E for ; Wed, 14 Nov 2007 14:07:20 +1100 (EST) Message-Id: From: Benno Rice To: current@freebsd.org In-Reply-To: <57A598F5-54A4-433D-9DB2-6141BC50B554@jeamland.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Wed, 14 Nov 2007 14:07:12 +1100 References: <57A598F5-54A4-433D-9DB2-6141BC50B554@jeamland.net> X-Mailer: Apple Mail (2.912) X-Virus-Scanned: ClamAV using ClamSMTP at rafe.jeamland.net Cc: Subject: Re: Repeatable crash with fdisk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 14 Nov 2007 03:07:32 -0000 On 14/11/2007, at 1:42 PM, Benno Rice wrote: > So I've got these lovely IBM HS21 XM blades to play with, and I'm > trying some tricks for automated setup. I'm writing a script that > does the fdisk/bsdlabel/newfs stuff for me. > > Runs ok the first time around, but when I run it the second time > around, I get this: > > # ./strap.sh > GEOM******* Working _Lon device /dev/dAa0 ******* > Bfdisk: ELWARNING line 2: :number of cylind Lers (8924) may babe out- > of-range > el (must be wit uhin 1-1024 for nfsormal/b BIOS operation,oo > unless the entit re disk > is rededicated to FremoeBSD)ve > d. > > Fatal trap 12: page fault while in kernel mode > cpuid = 1; apic id = 01 > fault virtual address = 0x20 > fault code = supervisor read data, page not present > instruction pointer = 0x8:0xffffffff8024ed1a > stack pointer = 0x10:0xffffffff9ed24ba0 > frame pointer = 0x10:0xffffff00035a5200 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 2 (g_event) > trap number = 12 > panic: page fault > cpuid = 1 Now that I have a kernel with DDB: Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x20 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff80256ac4 stack pointer = 0x10:0xffffffff9ed19b80 frame pointer = 0x10:0xffffffff9ed19bd0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 2 (g_event) [thread pid 2 tid 100014 ] Stopped at g_mbr_config+0x64: movq 0x20(%rax),%r15 db> bt Tracing pid 2 tid 100014 td 0xffffff00010946a0 g_mbr_config() at g_mbr_config+0x64 g_run_events() at g_run_events+0x1b8 g_event_procbody() at g_event_procbody+0x57 fork_exit() at fork_exit+0x11f fork_trampoline() at fork_trampoline+0xe --- trap 0, rip = 0, rsp = 0xffffffff9ed19d30, rbp = 0 --- db> -- Benno Rice benno@jeamland.net