From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11865 invoked by alias); 24 Jan 2006 04:48:39 -0000 Received: (qmail 11856 invoked by uid 22791); 24 Jan 2006 04:48:38 -0000 X-Spam-Check-By: sourceware.org Received: from mxsrv2.tranzpeer.net (HELO mxsrv2.tranzpeer.net) (202.180.66.215) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 24 Jan 2006 04:48:36 +0000 Received: from wmsrv2.tranzpeer.net ([202.180.66.2] helo=localhost) by mxsrv2.tranzpeer.net with ESMTP (Exim 4.34) id 1F1G6a-0006xb-Gt; Tue, 24 Jan 2006 17:48:32 +1300 Received: from external.hosting.co.nz (external.hosting.co.nz [203.97.46.10]) by webmail.slingshot.co.nz (Horde) with HTTP for ; Tue, 24 Jan 2006 17:48:32 +1300 Message-ID: <20060124174832.ef3kswkocw8osgk8@webmail.slingshot.co.nz> Date: Tue, 24 Jan 2006 10:37:00 -0000 From: Paul Blacquiere To: Daniel Jacobowitz Cc: "gdb@sourceware.org" Subject: Re: gdb/gdbserver uclibc illegal instruction References: <20060123171224.gtz440o04ockk00s@webmail.slingshot.co.nz> <20060123043611.GA4519@nevyn.them.org> In-Reply-To: <20060123043611.GA4519@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00227.txt.bz2 Hi, session log: 1 #include 2 3 int main( int argc, char *argv[] ) { 4 printf("Hello World....\n\n"); 5 6 return 0; 7 } Starting program: /home/blacq/src/bin/hello Program received signal SIGILL, Illegal instruction. 0x40003360 in ?? () Dump of assembler code from 0x40003350 to 0x40003370: 0x40003350: str r6, [r1] 0x40003354: str r12, [r11, #-304] 0x40003358: str lr, [r11, #-280] 0x4000335c: bl 0x40000b60 0x40003360: bl 0x40001670 0x40003364: ldr r3, [pc, #2304] ; 0x40003c6c 0x40003368: ldr r3, [r10, r3] 0x4000336c: ldr r2, [r3] End of assembler dump. Dump of assembler code from 0x40001670 to 0x400016a0: 0x40001670: stmdb sp!, {r4, r5, r6, r7, r8, r10, lr} 0x40001674: ldr r10, [pc, #668] ; 0x40001918 0x40001678: ldr r6, [pc, #668] ; 0x4000191c 0x4000167c: add r10, pc, r10 0x40001680: ldr lr, [r10, r6] 0x40001684: ldr r0, [lr] 0x40001688: cmn r0, #1 ; 0x1 0x4000168c: sub sp, sp, #88 ; 0x58 0x40001690: beq 0x40001910 0x40001694: cmp r0, #0 ; 0x0 0x40001698: bne 0x400018ac 0x4000169c: ldr r7, [pc, #636] ; 0x40001920 End of assembler dump. Hope this gives some insight. PaulB. Quoting Daniel Jacobowitz : > On Mon, Jan 23, 2006 at 05:12:24PM +1300, Paul Blacquiere wrote: >> Hi, >> >> I am attempting to run gdb/gdbserver on an Arm Linux board built using the >> uclibc libraries. >> >> Attempting to run an app causes an illegal instruction error (the >> simple hello >> world app obviously runs normally). One oddity is that the address that it >> reports seems to contain a valid arm instruction. > > And what instruction is it? What's around that instruction? Could you > post a complete session log? > > There's not enough information here to help you, sorry. > > -- > Daniel Jacobowitz > CodeSourcery