From owner-freebsd-current Fri Mar 14 9:26:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F3C037B401 for ; Fri, 14 Mar 2003 09:26:52 -0800 (PST) Received: from antares.student.iastate.edu (antares.student.iastate.edu [64.113.65.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EC9E43F93 for ; Fri, 14 Mar 2003 09:26:51 -0800 (PST) (envelope-from kparz@antares.student.iastate.edu) Received: from antares.student.iastate.edu (localhost [127.0.0.1]) by antares.student.iastate.edu (8.12.8/8.12.8) with ESMTP id h2EHQoff091712; Fri, 14 Mar 2003 11:26:50 -0600 (CST) (envelope-from kparz@antares.student.iastate.edu) Received: (from kparz@localhost) by antares.student.iastate.edu (8.12.8/8.12.8/Submit) id h2EHQjWS091711; Fri, 14 Mar 2003 11:26:45 -0600 (CST) Date: Fri, 14 Mar 2003 11:26:45 -0600 From: Krzysztof Parzyszek To: Poul-Henning Kamp Cc: walt , freebsd-current@FreeBSD.ORG Subject: Re: GEOM_MBR breaks my kernel Message-ID: <20030314172645.GA91658@antares.student.iastate.edu> Reply-To: kristof@swissmail.org References: <3E71E323.5010808@myrealbox.com> <6592.1047652673@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <6592.1047652673@critter.freebsd.dk> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Mar 14, 2003 at 03:37:53PM +0100, Poul-Henning Kamp wrote: > In message <3E71E323.5010808@myrealbox.com>, walt writes: > >I've been unable to boot any kernel I've built since about March 11 > >and I've narrowed it down to the GEOM_MBR option. > > > >With GEOM_MBR I get a kernel page fault error when trying to > >mount the root filesystem at boot time. > > Can you get us the messages and a traceback ? I saw the same thing on my system. I don't have the exact message or traceback around, but the problem was essentially a null pointer dereference while in kernel mode. I was able to locate the offending line in the source: In devfs_allocv: if (de->de_dirent->d_type == DT_CHR) { dev = *devfs_itod(de->de_inode); if (dev == NULL) return (ENOENT); } else { ... The first comparison causes the problem, since de->de_dirent == NULL. The problem did not exist until I turned WITNESS & INVARIANTS off (in a kernel with all GEOM_* stuff enabled). Let me know if you need more information. If you need the traceback, I'd appreciate if you told me how to get it written to a file. :) Krzysztof To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message