Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Baurzhan Ismagulov <ibr@radix50.net>
To: gdb@sourceware.org
Subject: Re: No useful backtrace in core dump.
Date: Thu, 22 Apr 2010 09:17:00 -0000	[thread overview]
Message-ID: <20100422091645.GD7781@radix50.net> (raw)
In-Reply-To: <s2t8f4584b51004220202uf9ebc310s2341b6520b94082e@mail.gmail.com>

On Thu, Apr 22, 2010 at 05:02:10PM +0800, 代尔欣 wrote:
> http://sources.redhat.com/ml/gdb/2008-08/msg00123.html
> From above thread:
> Indeed, changing abort() to invalid memory reference makes backtrace work.
> foo (int a, int b)
> {
> int c=40;
> abort(); <--- IIUC, change to invalid memory reference
> return a+b;
> }

This is basically refraining from using abort(), which you said could be
difficult for you to modify, especially since you don't know yet who
calls it.

As the first step, I'd run the app under gdb / gdbserver to find out the
caller.

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/


  reply	other threads:[~2010-04-22  9:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-22  2:41 代尔欣
2010-04-22  6:01 ` Baurzhan Ismagulov
2010-04-22  7:09   ` 代尔欣
2010-04-22  8:18 ` Mark Kettenis
2010-04-22  8:35   ` 代尔欣
2010-04-22  8:50     ` Baurzhan Ismagulov
2010-04-22  9:02       ` 代尔欣
2010-04-22  9:17         ` Baurzhan Ismagulov [this message]
2010-04-22  9:36           ` 代尔欣
2010-04-22  9:44             ` Baurzhan Ismagulov

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=20100422091645.GD7781@radix50.net \
    --to=ibr@radix50.net \
    --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