From owner-freebsd-alpha Sun Dec 23 2:49:30 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id 690D437B691 for ; Sun, 23 Dec 2001 02:48:29 -0800 (PST) Received: from [62.49.251.130] (helo=herring.nlsystems.com) by anchor-post-30.mail.demon.net with esmtp (Exim 2.12 #1) id 16I6BA-000HWU-0U; Sun, 23 Dec 2001 10:48:28 +0000 Received: from salmon.nlsystems.com (salmon [10.0.0.3]) by herring.nlsystems.com (8.11.2/8.11.2) with ESMTP id fBNAlD923803; Sun, 23 Dec 2001 10:47:13 GMT (envelope-from dfr@nlsystems.com) Date: Sun, 23 Dec 2001 10:46:40 +0000 (GMT) From: Doug Rabson To: Wilko Bulte Cc: Subject: Re: FW: Re: bah: new bug, unaligned accesses in ifconfig on -stable In-Reply-To: <20011221175252.A25617@freebie.xs4all.nl> Message-ID: <20011223103646.H457-100000@salmon.nlsystems.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 21 Dec 2001, Wilko Bulte wrote: > Hi, > > I just verified it on my DS10 with 4.5-PRERELEASE and the > problem is exactly what Rich describes below: > > ds10#gdb ./ifconfig ifconfig.core > GNU gdb 4.18 > Copyright 1998 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "alpha-unknown-freebsd"... > Core was generated by `ifconfig'. > Program terminated with signal 10, Bus error. > Reading symbols from /usr/lib/libipx.so.2...done. > Reading symbols from /usr/lib/libc.so.4...done. > Reading symbols from /usr/libexec/ld-elf.so.1...done. > #0 0x1200039dc in status (afp=0x120009da8, addrcount=0, > sdl=0x74656e62772e30, > ifm=0x12002011c, ifam=0x0) at ifconfig.c:1152 > 1152 if (ifm->ifm_data.ifi_metric) > (gdb) > > I don't quite understand why it happens this way Its a problem with the way that the interface list is reported to the user via sysctl. The interface structures are not properly aligned by the code in sysctl_iflist(), I think. -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message