From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a0948e2c6e54511f X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-12-07 16:44:37 PST Path: gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!uunet!news.mentorg.com!hpcan240.mentorg.com!renfield!jhurst From: jhurst@renfield.mentorg.com (Jim Hurst) Newsgroups: comp.unix.osf.osf1 Subject: Re: unaligned access... Date: 7 Dec 1993 01:27:15 GMT Organization: Migration Software Message-ID: <2e0m5j$ch6@hpcan240.mentorg.com> References: <2dgh8k$1am@nntp2.Stanford.EDU> NNTP-Posting-Host: renfield.mentorg.com Keywords: It Can't Happen Here In article <2dgh8k$1am@nntp2.Stanford.EDU> schemers@leland.Stanford.EDU (Roland Schemers) writes: >How do I track down an unligned accesses? I'm getting messages >like: > >Unaligned access pid=1342 va=14001651c pc=12001e420 ra=12001e3dc type=stq >Unaligned access pid=1342 va=140016514 pc=12001e3f0 ra=12001e3dc type=ldq ^^ It's interesting to note that the pc noted above (^^) stands for "program counter", ie, the address where the code is generating these exceptions. This means you can set a breakpoint at that address in dbx, run the code, type "where" when it stops, and find out the routine and line number that generated the unaligned access. Unless, of course, the executable has been stripped. Hope this helps. -Jim