Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Dec 2001 09:46:29 +0100 (CET)
From:      Riccardo.Veraldi@fi.infn.it
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        Andrew Gallatin <gallatin@cs.duke.edu>, <freebsd-alpha@freebsd.org>, Rich Bud <rbud@fortean.com>
Subject:   Re: ifconfig gives unaligned access with faith driver
Message-ID:  <Pine.NEB.4.33.0112110945570.280-100000@dijkstra.fi.infn.it>
In-Reply-To: <XFMail.011210165223.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

In my case ifconfig reports unaligned access on dc0 and fxp0 the 2 NICs

dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::200:f8ff:fe75:81c0%dc0 prefixlen 64 scopeid 0x1
        ether 00:00:f8:75:81:c0
        media: Ethernet autoselect (10baseT/UTP)
        status: active
pid 14068 (ifconfig): unaligned access: va=0x12006c154 pc=0x1200022bc
ra=0x1200022b0 op=ldq
pid 14068 (ifconfig): unaligned access: va=0x12006c14c pc=0x1200022d8
ra=0x1200022b0 op=ldq
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 172.16.16.254 netmask 0xffffff00 broadcast 172.16.16.255
        inet6 fe80::202:b3ff:fe2b:2591%fxp0 prefixlen 64 scopeid 0x2
        ether 00:02:b3:2b:25:91
        media: Ethernet autoselect (10baseT/UTP)
        status: active
pid 14068 (ifconfig): unaligned access: va=0x12006c2c4 pc=0x1200022bc
ra=0x1200022b0 op=ldq
pid 14068 (ifconfig): unaligned access: va=0x12006c2bc pc=0x1200022d8
ra=0x1200022b0 op=ldq
Rick

On Mon, 10 Dec 2001, John Baldwin wrote:

> Date: Mon, 10 Dec 2001 16:52:23 -0800 (PST)
> From: John Baldwin <jhb@FreeBSD.org>
> To: Andrew Gallatin <gallatin@cs.duke.edu>
> Cc: freebsd-alpha@freebsd.org, Rich Bud <rbud@fortean.com>
> Subject: Re: ifconfig gives unaligned access with faith driver
>
>
> On 11-Dec-01 Andrew Gallatin wrote:
> >
> > Rich Bud writes:
> >
> >  > kernel to pop the error messages? If not, do i plug in va,pc,ra or op
> >  > somewhere to track unaligned accesses down?
> >  >
> >
> > Run uac -s in the shell you're debugging from, then run ifconfig under
> > gdb.  The program should die with a sigbus at the site of the
> > unaligned access trap.
>
> Compiling with -Wcast-align might help track down problems as well.
>
> --
>
> John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-alpha" in the body of the message
>


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?Pine.NEB.4.33.0112110945570.280-100000>