Date: Mon, 10 Dec 2001 17:13:12 -0500 (EST) From: Rich Bud <rbud@fortean.com> To: freebsd-alpha@freebsd.org Subject: ifconfig gives unaligned access with faith driver Message-ID: <Pine.BSF.3.96.1011210162912.10325A-100000@nemesis.fortean.com>
index | next in thread | raw e-mail
In the 'minor annoyance at best (worst?)' category, i rebuilt stable over
the weekend and ifconfig now gives unaligned access errors when it hits
the faith interface. All the other interfaces are fine. gdb gives:
=======
(gdb)
status (afp=0x12003dc98, addrcount=0, sdl=0x6f722f3d454d4f48, ifm=0x12006a4cc,
ifam=0x0) at /usr/src/sbin/ifconfig/ifconfig.c:1120
1120 if (ifm->ifm_data.ifi_metric)
(gdb)
pid 711 (ifconfig): unaligned access: va=0x12006a4ec pc=0x12000215c ra=0x120002150 op=ldq
1122 if (ifm->ifm_data.ifi_mtu)
(gdb)
pid 711 (ifconfig): unaligned access: va=0x12006a4e4 pc=0x120002178 ra=0x120002150 op=ldq
1123 printf(" mtu %ld", ifm->ifm_data.ifi_mtu);
(gdb)
faith0: flags=8000<MULTICAST> mtu 1500
=======
I checked back and the previous version of ifconfig.c had local integer vars
for metric and mtu, and printed to '%d'. ifm_data is struct if_data and
defined, and ifi_metric = 0 and ifi_mtu = 1500, both u_long...so i don't
see the problem. Is it even valid to step through gdb and wait for the
kernel to pop the error messages? If not, do i plug in va,pc,ra or op
somewhere to track unaligned accesses down?
Rich
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.1011210162912.10325A-100000>
