From owner-freebsd-alpha Tue Dec 11 0:43:58 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from postino.fi.infn.it (postino.fi.infn.it [192.84.145.9]) by hub.freebsd.org (Postfix) with ESMTP id 7395037B416 for ; Tue, 11 Dec 2001 00:43:53 -0800 (PST) Received: from dijkstra.fi.infn.it (dijkstra.fi.infn.it [192.84.145.11]) by postino.fi.infn.it (8.11.5/8.11.5) with ESMTP id fBB8hSK83432; Tue, 11 Dec 2001 09:43:28 +0100 (CET) From: Riccardo.Veraldi@fi.infn.it Received: by dijkstra.fi.infn.it (Postfix, from userid 1001) id C76351E02; Tue, 11 Dec 2001 09:42:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by dijkstra.fi.infn.it (Postfix) with ESMTP id 78C9318601; Tue, 11 Dec 2001 09:42:07 +0100 (CET) Date: Tue, 11 Dec 2001 09:42:06 +0100 (CET) X-X-Sender: To: Andrew Gallatin Cc: Rich Bud , Subject: Re: ifconfig gives unaligned access with faith driver In-Reply-To: <15381.22096.993339.435960@grasshopper.cs.duke.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Filter-Version: 1.7 (postino.fi.infn.it) 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 very nice this uac program! here is hte result I got from the ifconfig.core Program terminated with signal 10, Bus error. #0 status (afp=0x12003e538, addrcount=2, sdl=0x30312e3534312e34, ifm=0x12006c134, ifam=0x12006c214) at ifconfig.c:1148 1148 if (allfamilies || afp->af_status == ether_status) (gdb) bt #0 status (afp=0x12003e538, addrcount=2, sdl=0x30312e3534312e34, ifm=0x12006c134, ifam=0x12006c214) at ifconfig.c:1148 #1 0x120000cbc in main (argc=0, argv=0x12006c134) at ifconfig.c:633 (gdb) info registers v0 0xa 10 t0 0x120070038 4832297016 t1 0x3e5453414349544c 4491306268162085964 t2 0x5453414349544c 23735437810553932 t3 0x120056958 4832192856 t4 0x2c 44 t5 0x0 0 t6 0x3d736761 1030973281 t7 0xa6576693d736761 749135107401672545 s0 0x12006c214 4832281108 s1 0x12003e538 4832093496 s2 0x3 3 s3 0x0 0 s4 0x2 2 s5 0x1 1 fp 0x12006c134 4832280884 a0 0x54 84 a1 0x0 0 a2 0x4 4 a3 0x11ffb49c 301970588 a4 0x120070010 4832296976 a5 0x0 0 t8 0x0 0 t9 0x0 0 t10 0x0 0 t11 0x0 0 ra 0x1200022b0 4831847088 t12 0x120034800 4832053248 at 0x120056b80 4832193408 gp 0x12005ef28 4832227112 sp 0x11ffb658 301971032 zero 0x0 0 pc 0x1200022bc 4831847100 vfp 0x11ffba28 301972008 (gdb) info frame Stack level 0, frame at 0x11ffba28: pc = 0x1200022bc in status (ifconfig.c:1148); saved pc 0x120000cbc called by frame at 0x11ffbae8 source language c. frame pointer is at sp+976 Arglist at 0x11ffb9f8, args: afp=0x12003e538, addrcount=2, sdl=0x30312e3534312e34, ifm=0x12006c134, ifam=0x12006c214 Locals at 0x11ffba28, Previous frame's sp is 0x11ffba28 Saved registers: s0 at 0x11ffb660, s1 at 0x11ffb668, s2 at 0x11ffb670, s3 at 0x11ffb678, s4 at 0x11ffb680, s5 at 0x11ffb688, fp at 0x11ffb690, ra at 0x11ffb658, pc at 0x11ffb658 I hope this can be useful ciao Rick On Mon, 10 Dec 2001, Andrew Gallatin wrote: > Date: Mon, 10 Dec 2001 19:41:52 -0500 (EST) > From: Andrew Gallatin > To: Rich Bud > Cc: freebsd-alpha@freebsd.org > Subject: Re: ifconfig gives unaligned access with faith driver > > > 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. > > Drew > > 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