From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21411 invoked by alias); 11 Sep 2007 20:31:04 -0000 Received: (qmail 21249 invoked by uid 22791); 11 Sep 2007 20:30:54 -0000 X-Spam-Check-By: sourceware.org Received: from elcamino.pasemi.com (HELO elcamino.pasemi.com) (67.155.108.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Sep 2007 20:30:48 +0000 Date: Tue, 11 Sep 2007 22:07:00 -0000 From: Robert Gries To: Robert Gries Cc: gdb@sourceware.org, Lou Falek , Robert Gries , Olof Johansson , Peter Bannon , Puneet Kumar , Thiago Jung Bauermann Message-ID: <813598146.29041189542646023.JavaMail.root@postoffice> In-Reply-To: <1487295349.28571189541563660.JavaMail.root@postoffice> Subject: Re: Does gdb-6.6 support -m64 apps? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: 2007-09/txt/msg00110.txt.bz2 I guess the -m64 is needed, I now get a good trace back: ag5-5:/proj/ext3/users/gries/math/gmpbench-0.1> /proj/ext3/users/gries/math/gdb-6.6.50.20070911/gdb/gdb test_rsa GNU gdb 6.6.50.20070911 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-unknown-linux-gnu"... Using host libthread_db library "/lib64/libthread_db.so.1". (gdb) r Starting program: /proj/ext3/users/gries/math/gmpbench-0.1/test_rsa warning: Breakpoint address adjusted from 0x100b2ce8 to 0x10064c0c. Program received signal SIGILL, Illegal instruction. 0x000000001000f690 in .__gmp_default_allocate () (gdb) where #0 0x000000001000f690 in .__gmp_default_allocate () #1 0x000000001000f950 in .__gmp_randinit_mt_noseed () #2 0x0000000010000d88 in .__gmp_randinit_mt () #3 0x0000000010000d50 in .__gmp_randinit_default () #4 0x00000000100005e8 in main (argc=, argv=0xfffffe9ef18) at test_rsa.c:99 (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /proj/ext3/users/gries/math/gmpbench-0.1/test_rsa warning: Breakpoint address adjusted from 0x100b2ce8 to 0x10064c0c. Program received signal SIGILL, Illegal instruction. 0x000000001000f690 in .__gmp_default_allocate () (gdb) ----- Original Message ----- From: "Robert Gries" To: "Thiago Jung Bauermann" Cc: gdb@sourceware.org, "Lou Falek" , "Robert Gries" , "Olof Johansson" , "Peter Bannon" , "Puneet Kumar" Sent: Tuesday, September 11, 2007 1:12:43 PM (GMT-0800) America/Los_Angeles Subject: Re: Does gdb-6.6 support -m64 apps? The new release just works, no -m64 needed: gries@orion-059:/proj/ext3/users/gries/math/gmpbench-0.1$ /proj/ext3/users/gries/math/gdb-6.6.50.20070911/gdb/gdb test_rsa GNU gdb 6.6.50.20070911 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-unknown-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r Starting program: /proj/ext3/users/gries/math/gmpbench-0.1/test_rsa warning: Breakpoint address adjusted from 0x100b2bf8 to 0x10064b6c. size of n 66 00aa36abce88acfdff55523c7fc4523f90efa00df3774a259f2e62b4c5d99cb5adb300a0285e5301930e0c70fb6876939ce616ce624a11e0086d341ebcaca0a1f500 pq abefeafff53ff53fef0f77adfebcd9fff3a2df393efffffbe7ee6bf0ef5feeaf50 Program received signal SIGABRT, Aborted. 0x1004584c0000d032 in ?? () (gdb) where #0 0x1004584c0000d032 in ?? () #1 0x10016e6800000000 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) ----- Original Message ----- From: "Thiago Jung Bauermann" To: "Robert Gries" Cc: gdb@sourceware.org, "Lou Falek" Sent: Tuesday, September 11, 2007 1:01:01 PM (GMT-0800) America/Los_Angeles Subject: Re: Does gdb-6.6 support -m64 apps? On Tue, 2007-09-11 at 12:06 -0700, Robert Gries wrote: > gries@orion-059:/proj/ext3/users/gries/math/gmpbench-0.1$ /proj/ext3/users/gries/math/gdb-6.6/gdb/gdb rsa > GNU gdb 6.6 > Copyright (C) 2006 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "powerpc64-unknown-linux-gnu"... > Using host libthread_db library "/lib/libthread_db.so.1". > (gdb) r 128 > Starting program: /proj/ext3/users/gries/math/gmpbench-0.1/rsa 128 > warning: Breakpoint address adjusted from 0x100ab998 to 0x10000180. > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x100001800002d032 in ?? () To debug 64 bit programs, your GDB should be compiled with -m64 as well. Is this the case? -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center