Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Santosh B R <santoshbr4@gmail.com>
To: gdb@sourceware.org
Subject: Backtrace failed when program crashed due to abort call.
Date: Mon, 09 Mar 2009 04:29:00 -0000	[thread overview]
Message-ID: <22407055.post@talk.nabble.com> (raw)


Hi All,
I think this is an existing bug in gdb wherein the backtrace fails to give
information, when a program is terminated by abort call.

Sample program:
[/home]# cat abort-dump.c
#include <stdio.h>
#include <stdlib.h>

void bar(void)
{
        printf("\n In bar: Calling abort");
        abort();
}

void foo(void)
{
        printf("\n In foo");
        bar();
}

main()
{
        printf("\n In main\n");
        foo();
}

Compilation:
# arm-none-linux-gnueabi-gcc -g -o abort-dump abort-dump.c

Backtrace Result:
Program terminated with signal 6, Aborted.
#0  0x4005bdc4 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x4005bdc4 in raise () from /lib/libc.so.6
#1  0x4005d250 in abort () from /lib/libc.so.6
Backtrace stopped: frame did not save the PC

GDB version:
gdb-6.8

GCC version:
gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)

Target: arm

The same program works fine in x86 architecture for the same gdb version.

Please give me some pointers to solve the above issue. I have already
browsed
the bugs related to the above issue in the database and have found no clear
solution.

Thank You all in advance.

Regards,
Santosh
-- 
View this message in context: http://www.nabble.com/Backtrace-failed-when-program-crashed-due-to-abort-call.-tp22407055p22407055.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.


             reply	other threads:[~2009-03-09  4:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09  4:29 Santosh B R [this message]
2009-03-09  8:04 ` Mark Kettenis

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=22407055.post@talk.nabble.com \
    --to=santoshbr4@gmail.com \
    --cc=gdb@sourceware.org \
    /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