From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 538 invoked by alias); 22 Apr 2010 09:02:19 -0000 Received: (qmail 32485 invoked by uid 22791); 22 Apr 2010 09:02:18 -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:02:13 +0000 Received: by qyk5 with SMTP id 5so11468790qyk.3 for ; Thu, 22 Apr 2010 02:02:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.94.204 with HTTP; Thu, 22 Apr 2010 02:02:10 -0700 (PDT) In-Reply-To: <20100422084947.GA7781@radix50.net> References: <201004220818.o3M8INMG014249@glazunov.sibelius.xs4all.nl> <20100422084947.GA7781@radix50.net> Date: Thu, 22 Apr 2010 09:02:00 -0000 Received: by 10.229.221.14 with SMTP id ia14mr4037381qcb.8.1271926930955; Thu, 22 Apr 2010 02:02:10 -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/msg00074.txt.bz2 http://sources.redhat.com/ml/gdb/2008-08/msg00123.html =46rom above thread: Indeed, changing abort() to invalid memory reference makes backtrace work. foo (int a, int b) { int c=3D40; abort(); <--- IIUC, change to invalid memory reference return a+b; } I don't know whether can remove the __attribute__((noreturn)) or not when compiling glibc. It seems the problem a little complicated.... 2010/4/22 Baurzhan Ismagulov : > On Thu, Apr 22, 2010 at 04:35:41PM +0800, =B4=FA=B6=FB=D0=C0 wrote: >> How about I use lower optimize option with GCC? If this still >> can't work, I will follow your suggestion... > > IIUC, the thread implies that rebuilding glibc without > __attribute__((noreturn)) for abort() should solve the problem, but I > haven't tried that. > > With kind regards, > -- > Baurzhan Ismagulov > http://www.kz-easy.com/ >