From owner-freebsd-alpha Wed Feb 14 10:51:23 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 4A0B737B401 for ; Wed, 14 Feb 2001 10:51:20 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id NAA29294; Wed, 14 Feb 2001 13:51:19 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.1/8.9.1) id f1EIoaB54228; Wed, 14 Feb 2001 13:50:36 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14986.54140.54832.224655@grasshopper.cs.duke.edu> Date: Wed, 14 Feb 2001 13:50:36 -0500 (EST) To: Peter.Blok@inter.NL.net Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: unaligned access In-Reply-To: <200102141536.QAA03471@altrade.nijmegen.inter.nl.net> References: <200102141536.QAA03471@altrade.nijmegen.inter.nl.net> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Peter.Blok@inter.NL.net writes: > Hi, > > I am trying to port mpd-netgraph to alpha, but i'm getting a lot of uac's. I am trying to use gdb, but I am not used to gdb. When I try to lookup the address it tells me it is outside the map. > > Is it possible to make it core dump instead of this warning? It would be nice if you can say: run this command and core dump on uac. > > Are tools available to determine in which function the uac takes place? I can make something myself with perl and nm, but if there is already something out there? > > Which compiler options bring this up at compile time? > > Peter I don't know what mpd netgraph is. Can you elaborate further? Is the kernel crashing, or is it a userland app? If it is a userland app, try running uap -s prior to invoking gdb. Then run gdb on the app. You should get a SIGBUS at the PC of the unaligned access. If gdb misbehaves, try increasing the size of the heuristic-fence-post. Eg: (gdb) set heuristic-fence-post 0xffffffffffffffff Hope this helps, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message