From owner-freebsd-alpha Wed May 10 5:21:56 2000 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 28CA837B5C5 for ; Wed, 10 May 2000 05:21:52 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) 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 IAA26475; Wed, 10 May 2000 08:21:50 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id IAA80291; Wed, 10 May 2000 08:21:50 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 10 May 2000 08:21:50 -0400 (EDT) To: Christian Weisgerber Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: How to fix unaligned access errors? In-Reply-To: <20000510135444.A65751@fettuccini.unix-ag.uni-kl.de> References: <20000510135444.A65751@fettuccini.unix-ag.uni-kl.de> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14617.21495.418598.708837@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Christian Weisgerber writes: > You start a program, the kernel throws a million "unaligned access" > errors. > > How do you go about finding and fixing those in the source? > See uac(1) In the parent shell, say "uac -s" This will cause a SIGBUS to be sent to any children of this shell when they generate an unaligned access. You should now be able to debug it. Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message