From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27826 invoked by alias); 22 Apr 2010 09:36:53 -0000 Received: (qmail 27816 invoked by uid 22791); 22 Apr 2010 09:36:52 -0000 X-SWARE-Spam-Status: No, hits=4.6 required=5.0 tests=BAYES_00,CHARSET_FARAWAY_HEADER,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MIME_CHARSET_FARAWAY,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qy0-f175.google.com (HELO mail-qy0-f175.google.com) (209.85.221.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Apr 2010 09:36:48 +0000 Received: by qyk5 with SMTP id 5so11503876qyk.3 for ; Thu, 22 Apr 2010 02:36:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.94.204 with HTTP; Thu, 22 Apr 2010 02:36:46 -0700 (PDT) In-Reply-To: <20100422091645.GD7781@radix50.net> References: <201004220818.o3M8INMG014249@glazunov.sibelius.xs4all.nl> <20100422084947.GA7781@radix50.net> <20100422091645.GD7781@radix50.net> Date: Thu, 22 Apr 2010 09:36:00 -0000 Received: by 10.229.251.69 with SMTP id mr5mr2186271qcb.91.1271929006303; Thu, 22 Apr 2010 02:36:46 -0700 (PDT) Message-ID: Subject: Re: No useful backtrace in core dump. From: =?GB2312?B?tPq2+9DA?= To: gdb@sourceware.org Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00076.txt.bz2 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 : > On Thu, Apr 22, 2010 at 05:02:10PM +0800, =B4=FA=B6=FB=D0=C0 wrote: >> http://sources.redhat.com/ml/gdb/2008-08/msg00123.html >> From above thread: >> Indeed, changing abort() to invalid memory reference makes backtrace wor= k. >> foo (int a, int b) >> { >> int c=3D40; >> 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/ >