From: "Harald Schiöberg" <harald@net.t-labs.tu-berlin.de>
To: Shane Volpe <shanevolpe@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: gdb backtrace after SIGILL on Xscale (ARM)
Date: Fri, 26 Sep 2008 08:35:00 -0000 [thread overview]
Message-ID: <48DC9EA0.4040509@net.t-labs.tu-berlin.de> (raw)
In-Reply-To: <8c7950360809231027m64797d8dwfa60be3c164fd80c@mail.gmail.com>
This sounds like an EABI vs. OABI issue. see this thread:
http://sourceware.org/ml/gdb/2008-01/msg00032.html
harald
Shane Volpe wrote:
> I'm trying to perform a backtrace using gdb after a SIGILL event on an
> Xscale (ARM) target device. In order to simplify the issue I have
> wrote a small program (http://en.wikipedia.org/wiki/SIGILL) whose only
> purpose is to cause a SIGINT.
>
> The code is:
> int main()
> {
> unsigned char insn[4] = { 0xff, 0xff, 0xff, 0xff };
> void (*function)() = (void (*)()) insn;
> function();
> }
>
> I compiled it as follows:
> gcc -o sigill sigill.c
>
> I then run it on my host machine 'Linux, Arch: x86"
>
> gdb /home/sigill
> (gdb) run
> Starting program: /home/sigill
>
> Program received signal SIGILL, Illegal instruction.
> 0xbf81d400 in ?? ()
> (gdb) bt
> #0 0xbf81d400 in ?? ()
> #1 0x08048363 in main ()
>
>
> Every thing work as expected, I got a backtrace showing me the correct steps.
>
> I then compiled the program for my target system "Linux, Arch: Xscale (ARM)"
> I ran the app and got the following:
>
> /home/sigill
> BFD: /lib/.debug/ld-2.5.so: warning: sh_link not set for section `.ARM.exidx'
> BFD: /lib/.debug/libc-2.5.so: warning: sh_link not set for section `.ARM.exidx'
>
> Program received signal SIGILL, Illegal instruction.
> 0xbea7fc44 in ?? ()
> (gdb) bt
> #0 0xbea7fc44 in ?? ()
> (gdb)
>
> There is NO real information provided in the backtrace, why is this,
> what might I be doing wrong?
>
> Regards,
> Shane
--
Harald Schiöberg
Technische Universität Berlin | T-Laboratories | FG INET
www: http://www.net.t-labs.tu-berlin.de
Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47
next prev parent reply other threads:[~2008-09-26 8:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-23 17:28 Shane Volpe
2008-09-26 8:35 ` Harald Schiöberg [this message]
2008-09-29 20:03 ` Shane Volpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48DC9EA0.4040509@net.t-labs.tu-berlin.de \
--to=harald@net.t-labs.tu-berlin.de \
--cc=gdb@sourceware.org \
--cc=shanevolpe@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox