Re: No useful backtrace in core dump.

代尔欣
2010-04-22T09:36:53Z

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/
>