From: 代尔欣 <daierxin@gmail.com>
To: gdb@sourceware.org
Subject: Re: No useful backtrace in core dump.
Date: Thu, 22 Apr 2010 09:36:00 -0000 [thread overview]
Message-ID: <u2v8f4584b51004220236qd7e4b08cu3c7c3063f8d4726d@mail.gmail.com> (raw)
In-Reply-To: <20100422091645.GD7781@radix50.net>
Baurzhan Ismagulov,
Thanks your valuable reply. I will try find who call abort(). Hope
I do not go wrong direction.
Thanks!
2010/4/22 Baurzhan Ismagulov <ibr@radix50.net>:
> 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/
>
next prev parent reply other threads:[~2010-04-22 9:36 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
2010-04-22 9:36 ` 代尔欣 [this message]
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=u2v8f4584b51004220236qd7e4b08cu3c7c3063f8d4726d@mail.gmail.com \
--to=daierxin@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