From owner-freebsd-current@FreeBSD.ORG Fri May 27 23:03:09 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 669E3106564A for ; Fri, 27 May 2011 23:03:09 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 2774B8FC14 for ; Fri, 27 May 2011 23:03:09 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAIgs4E2DaFvO/2dsb2JhbABVG4Quom6IcK1ckDiFF4EHBJBCjzA X-IronPort-AV: E=Sophos;i="4.65,283,1304308800"; d="scan'208";a="122131605" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 27 May 2011 19:03:08 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 626E1B3F25; Fri, 27 May 2011 19:03:08 -0400 (EDT) Date: Fri, 27 May 2011 19:03:08 -0400 (EDT) From: Rick Macklem To: Goran Lowkrantz Message-ID: <1297732809.928917.1306537388344.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_928916_555251632.1306537388342" X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - IE7 (Win)/6.0.10_GA_2692) Cc: freebsd-current@freebsd.org Subject: Re: Testing new nfs and VIMAGE 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: Fri, 27 May 2011 23:03:09 -0000 ------=_Part_928916_555251632.1306537388342 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit > And the attached core.txt got eaten. > > > /glz > > --On May 27, 2011 10:37:32 +0200 Goran Lowkrantz > > wrote: > > > > > I have been testing VIMAGE a lot lately to see how it works an all > > my > > test cases works as expected except when I use NFSv4 from an NFS > > client > > with a kerrel with VIMAGE enabled. > > > > All other permutations work and this error is very specific. All > > crashes > > occurs when trying to read or write to an NFS v4 volume. I have seen > > it > > on both i386 and amd64. > > > ># 12 0xc0a73c15 in rt_tables_get_rnh (table=0, fam=2) > > at /usr/src/sys/net/route.c:153 > > > > > > static __inline struct radix_node_head ** > > rt_tables_get_rnh_ptr(int table, int fam) > > { > > struct radix_node_head **rnh; > > > > KASSERT(table >= 0 && table < rt_numfibs, ("%s: table out of > > bounds.", > > __func__)); > > KASSERT(fam >= 0 && fam < (AF_MAX+1), ("%s: fam out of > > bounds.", > > __func__)); > > > > /* rnh is [fib=0][af=0]. */ > > ---> rnh = (struct radix_node_head **)V_rt_tables; > > /* Get the offset to the requested table and fam. */ > > rnh += table * (AF_MAX+1) + fam; > > > > return (rnh); > > } > > > > Any ideas? > > > > Cores and dumps are available plus a vmware player setup to test and > > debug. > > I know diddly about VIMAGE, but you could try the attached patch which imitates what is done other places. If the patch isn't attached, you can find it at: http://people.freebsd.org/~rmacklem/vnet.patch rick ------=_Part_928916_555251632.1306537388342 Content-Type: text/x-patch; name=vnet.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=vnet.patch LS0tIGZzL25mc2NsaWVudC9uZnNfY2xwb3J0LmMuc2F2CTIwMTEtMDUtMDQgMTk6MTI6MTAuMDAw MDAwMDAwIC0wNDAwCisrKyBmcy9uZnNjbGllbnQvbmZzX2NscG9ydC5jCTIwMTEtMDUtMjcgMTg6 NTI6MTEuMDAwMDAwMDAwIC0wNDAwCkBAIC05NDMsNyArOTQzLDkgQEAgbmZzY2xfZ2V0bXlpcChz dHJ1Y3Q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