From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12155 invoked from network); 12 Jul 1998 09:19:50 -0000 Received: from stefan.sime.com (193.228.80.247) by mail2.redhat.com with SMTP; 12 Jul 1998 09:19:50 -0000 Received: (from stefan@localhost) by stefan.sime.com (8.8.7/8.8.7) id LAA01667; Sun, 12 Jul 1998 11:17:44 +0200 Date: Sun, 12 Jul 1998 11:17:44 +0200 Message-Id: <199807120917.LAA01667@stefan.sime.com> From: Quant-X Alpha Linux Support To: axp-list@redhat.com In-reply-to: <19980711111203Z92216-5230+1@mea.tmt.tele.fi> (message from Matti Aarnio on Sat, 11 Jul 1998 14:12:00 +0300 (EEST)) Subject: Re: Debugging unaligned traps MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: Quant-X Alpha Linux Support Reply-To: Quant-X Alpha Linux Support Organization: Quant-X Service & Consulting Ges.m.b.H. X-Mailer: GNU Emacs 20.2.1 C-x m (X11 ; I; Linux 2.1.108 i586) References: <19980711111203Z92216-5230+1@mea.tmt.tele.fi> Hi Matti ! > 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. Yes, but let me add a source example: /* * uac.S */ .text .globl __start .ent __start .align 3 __start: ldgp $29, 0($27) lda $0, uac /* load unaligned address */ .align 4 /* make PC 0xXXXXXXXXXXXXXXX0 */ ldq $1, 0($0) /* unaligned access 64 Bit */ .align 4 ldl $2, 0($0) /* unaligned access 32 Bit */ lda $16, 0x0 /* rc */ lda $0, 0x1 /* sys_exit */ call_pal 131 /* syscall */ .align 4 .align 0 ac: .byte 0 uac: .quad 0x0123456789abcdef /* at 0xXXXXXXXXXXXXXXX1 */ .end __start /* * Local variables: * compile-command: "gcc -g -nostartfiles -o uac uac.S" * End: */ -- Quant-X Service & Ph: (+43) 4212 6004-0 Consulting Ges.m.b.H. Fax: (+43) 4212 600420 http://www.quant-x.com Email: support@quant-x.com