From owner-freebsd-current@FreeBSD.ORG Sun Dec 21 17:41:51 2003 Return-Path: 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 5C06B16A4CF for ; Sun, 21 Dec 2003 17:41:51 -0800 (PST) Received: from fgwmail6.fujitsu.co.jp (fgwmail6.fujitsu.co.jp [192.51.44.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6128043D39 for ; Sun, 21 Dec 2003 17:41:48 -0800 (PST) (envelope-from yoshint@flab.fujitsu.co.jp) Received: from m2.gw.fujitsu.co.jp ([10.0.50.72]) by fgwmail6.fujitsu.co.jp (8.12.10/Fujitsu Gateway) id hBM1flEO023177 for ; Mon, 22 Dec 2003 10:41:47 +0900 (envelope-from yoshint@flab.fujitsu.co.jp) Received: from s5.gw.fujitsu.co.jp by m2.gw.fujitsu.co.jp (8.12.10/Fujitsu Domain Master) id hBM1fk1d018582 for ; Mon, 22 Dec 2003 10:41:47 +0900 (envelope-from yoshint@flab.fujitsu.co.jp) Received: from cerberus.proc.flab.fujitsu.co.jp (cerberus.proc.flab.fujitsu.co.jp [10.25.135.155]) by s5.gw.fujitsu.co.jp (8.12.10) id hBM1fkqg009440 for ; Mon, 22 Dec 2003 10:41:46 +0900 (envelope-from yoshint@flab.fujitsu.co.jp) Received: from cerberus.proc.flab.fujitsu.co.jp (localhost [127.0.0.1]) hBM1fj1s000709 for ; Mon, 22 Dec 2003 10:41:46 +0900 (JST) (envelope-from yoshint@flab.fujitsu.co.jp) To: freebsd-current@freebsd.org References: From: TOMITA Yoshinori X-Fortune: =?ISO-2022-JP?B?GyRCOiNGfCROJCQkRjpCJE8hIhsoQg==?= X-Weather: =?ISO-2022-JP?B?GyRCOiNGfCROP0BGYEBuOCkkT0AyJEckORsoQg==?= X-Face: [|Q@oQ4-)'>a|hK#Wn5u?MMwDs*kTH^u&/.`JOMCIf]22\}]}Fr7`pwbU:1]f>~F(i7vJxW 0JUQD.wjQto]`; 7uMKT\?C<,J~3LpT?c|~&l7kMjEvWhoSNj)oWGORj3R"I\/AGXBkCs(w!+Cx)'Ue n&%HI0W0Dc7>4J"% MIME-Version: 1.0 (generated by WEMIKO 1.14.1 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCNl9KXExTQ24bKEIi?=) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: Mon, 22 Dec 2003 10:41:45 +0900 In-Reply-To: (Matthias Andree's message of "Fri, 12 Dec 2003 00:03:57 +0100") Message-ID: User-Agent: T-gnus/6.16.3 (based on Gnus v5.10.3) (revision 02) Mule-UCS/0.84 (=?ISO-2022-JP?B?S09VR0VUU1VEQUk6GyRCOH43bkJmGyhC?=) WEMIKO/1.14.1 (=?ISO-2022-JP?B?GyRCNl9KXExTQ24bKEI=?=) SLIM/1.14.7 (=?ISO-2022-JP?B?GyRCPHIwZjpMTD4bKEI=?=) APEL/10.3 MULE XEmacs/21.4 (patch 13) (Rational FORTRAN) (i386-unknown-freebsd4.8) Subject: Re: ypwhich bus error on i386? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 22 Dec 2003 01:41:51 -0000 >> On Fri, 12 Dec 2003 00:03:57 +0100, Matthias Andree >> said: Ma> This happens on a very fresh 5-CURRENT install on a Xeon (HTT enabled): Ma> # ypwhich -m Ma> ypwhich: can't find the master of `=1B$BPPPPPPPP=1B(Bethers.byaddr: rea= son: No such map in server's domain Ma> Bus error (core dumped) I think this "ypmaster -m" error happens from revision 1.15 of ypwhich.c struct ypmaplist is defined in and and they are incompatible. <> struct ypmaplist { mapname map; struct ypmaplist *next; }; <> struct ypmaplist { char ypml_name[YPMAXMAP + 1]; struct ypmaplist *ypml_next; }; struct ypmaplist of yp_prot.h is used in ypwhich.c, while yp_maplist function returns struct ypmaplist of yp.h. I could find this with gdb ypwhich. <> (gdb) p ypml $2 =3D (struct ypmaplist *) 0x804d050 (gdb) p *ypml $3 =3D {map =3D 0x804d060 "amd_home", next =3D 0x804d080} (gdb) p ypml+1 $4 =3D (struct ypmaplist *) 0x804d058 <> (gdb) p ypml $11 =3D (struct ypmaplist *) 0x804d050 (gdb) p *ypml $12 =3D { ypml_name =3D "`=D0\004\b\200=D0\004\b=D0=D0=D0=D0=D0=D0=D0=D0amd_home\0= =D0=D0=D0=D0=D0=D0=D0udp\0", '=D0' , "=A0=D0\004\b=B0=D0\= 004\b=D0=D0=D0=D0=D0=D0=D0=D0t", ypml_next =3D 0xd0d0d0d0} (gdb) p ypml+1 $13 =3D (struct ypmaplist *) 0x804d098 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/local/www/cvsroot/FreeBSD/src/usr.bin/ypwhich/ypwhich.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -p -r1.14 -r1.15 --- src/usr.bin/ypwhich/ypwhich.c 2002/02/27 14:32:43 1.14 +++ src/usr.bin/ypwhich/ypwhich.c 2003/10/26 05:30:40 1.15 @@ -28,12 +28,15 @@ */ =20 #include -__FBSDID("$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.bin/ypwhich/ypw= hich.c,v 1.14 2002/02/27 14:32:43 dwmalone Exp $"); +__FBSDID("$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.bin/ypwhich/ypw= hich.c,v 1.15 2003/10/26 05:30:40 peter Exp $"); =20 #include #include #include =20 +#include +#include +#include #include =20 #include @@ -47,10 +50,6 @@ __FBSDID("$FreeBSD: /usr/local/www/cvsro #include #include #include -#include -#include -#include -struct dom_binding{}; --snip-- --=20 --- TOMITA Yoshinori (Fujitsu Laboratories Ltd., Kawasaki, Japan)