Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2002 07:22:45 +0100
From:      phk@freebsd.org
To:        Craig Rodrigues <rodrigc@attbi.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: GEOM panic 
Message-ID:  <14740.1040278965@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 18 Dec 2002 20:34:18 EST." <20021218203418.A550@attbi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20021218203418.A550@attbi.com>, Craig Rodrigues writes:
>Hi,
>
>I just did a cvsup and rebuilt my kernel, and now my kernel
>panics upon bootup.  I don't have a serial console, so I wrote
>down the error messages that I saw:
>
>I saw this one in the middle of some GEOM debug statements:
>ar: FreeBSD check1 failed

Can you try this patch please ?

Index: geom_mbr.c
===================================================================
RCS file: /home/ncvs/src/sys/geom/geom_mbr.c,v
retrieving revision 1.28
diff -u -r1.28 geom_mbr.c
--- geom_mbr.c	17 Dec 2002 09:44:10 -0000	1.28
+++ geom_mbr.c	19 Dec 2002 06:22:00 -0000
@@ -393,6 +397,7 @@
 			g_mbr_print(1, dp + 1);
 			if ((dp[0].dp_flag & 0x7f) == 0 &&
 			     dp[0].dp_size != 0 && dp[0].dp_typ != 0) {
+				g_topology_lock();
 				g_slice_config(gp, slice, G_SLICE_CONFIG_SET,
 				    (((off_t)dp[0].dp_start) << 9ULL) + off,
 				    ((off_t)dp[0].dp_size) << 9ULL,
-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14740.1040278965>