From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 307 invoked from network); 11 Jul 1998 11:12:46 -0000 Received: from mea.tmt.tele.fi (root@194.252.70.2) by mail2.redhat.com with SMTP; 11 Jul 1998 11:12:46 -0000 Received: by mea.tmt.tele.fi id <92216-5230>; Sat, 11 Jul 1998 14:12:00 +0300 Subject: Re: Debugging unaligned traps In-Reply-To: from "B. James Phillippe" at "Jul 11, 98 00:57:16 am" To: bryan@terran.org Date: Sat, 11 Jul 1998 14:12:00 +0300 (EEST) Cc: axp-list@redhat.com From: Matti Aarnio Phone: +358-20402082 (office, with redirection to cellular) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <19980711111203Z92216-5230+1@mea.tmt.tele.fi> > Hello, > > I'd like to learn more about finding and fixing unaligned traps on > Linux/Alpha. I'm an accomplished C programmer, but frankly have very > little know-how on AXP. I understand the concepts and principles behind > what an unaligned access is, and I can recognize it in the code if I know > where to look. My main hurdle now is knowing where to look. I understand > that the two addresses printed in the printk are 1.) the address improperly > accessed, and 2.) the address of the accessor. What do the other values > represent, and how could I use gdb to find the offending line(s) of code? > I've done some net searches, but turned up very little. Looking into the kernel sources would have told you something too.. Lets have an example: X(31263): unaligned trap at 000000012004e50c: 000000012076ddb2 28 1 This means that program called X (pid 31263) has done unaligned access with Alpha instruction 0x28 (LDL -- 32-bit load) on PC address 0x12004e50c while loading from 0x12076ddb2 into integer register 1. > thanks, > -bp > -- > B. James Phillippe /Matti Aarnio