From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30035 invoked by alias); 9 Mar 2009 04:29:37 -0000 Received: (qmail 30023 invoked by uid 22791); 9 Mar 2009 04:29:36 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_00,DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Mar 2009 04:29:31 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LgX7K-0004BO-1N for gdb@sourceware.org; Sun, 08 Mar 2009 21:29:30 -0700 Message-ID: <22407055.post@talk.nabble.com> Date: Mon, 09 Mar 2009 04:29:00 -0000 From: Santosh B R To: gdb@sourceware.org Subject: Backtrace failed when program crashed due to abort call. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2009-03/txt/msg00062.txt.bz2 Hi All, I think this is an existing bug in gdb wherein the backtrace fails to give information, when a program is terminated by abort call. Sample program: [/home]# cat abort-dump.c #include #include void bar(void) { printf("\n In bar: Calling abort"); abort(); } void foo(void) { printf("\n In foo"); bar(); } main() { printf("\n In main\n"); foo(); } Compilation: # arm-none-linux-gnueabi-gcc -g -o abort-dump abort-dump.c Backtrace Result: Program terminated with signal 6, Aborted. #0 0x4005bdc4 in raise () from /lib/libc.so.6 (gdb) bt #0 0x4005bdc4 in raise () from /lib/libc.so.6 #1 0x4005d250 in abort () from /lib/libc.so.6 Backtrace stopped: frame did not save the PC GDB version: gdb-6.8 GCC version: gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51) Target: arm The same program works fine in x86 architecture for the same gdb version. Please give me some pointers to solve the above issue. I have already browsed the bugs related to the above issue in the database and have found no clear solution. Thank You all in advance. Regards, Santosh -- View this message in context: http://www.nabble.com/Backtrace-failed-when-program-crashed-due-to-abort-call.-tp22407055p22407055.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.