Date: Sun, 23 Dec 2001 10:46:40 +0000 (GMT) From: Doug Rabson <dfr@nlsystems.com> To: Wilko Bulte <wkb@freebie.xs4all.nl> Cc: <freebsd-alpha@freebsd.org> Subject: Re: FW: Re: bah: new bug, unaligned accesses in ifconfig on -stable Message-ID: <20011223103646.H457-100000@salmon.nlsystems.com> In-Reply-To: <20011221175252.A25617@freebie.xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011223103646.H457-100000>