From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28852 invoked by alias); 27 Jan 2012 23:44:49 -0000 Received: (qmail 28835 invoked by uid 22791); 27 Jan 2012 23:44:48 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Jan 2012 23:44:30 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0RNiTLp019176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 Jan 2012 18:44:29 -0500 Received: from host2.jankratochvil.net (ovpn-116-47.ams2.redhat.com [10.36.116.47]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q0RNiMUW000903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 27 Jan 2012 18:44:27 -0500 Date: Fri, 27 Jan 2012 23:44:00 -0000 From: Jan Kratochvil To: sudhakar govindavajhala Cc: gdb@sourceware.org Subject: Re: Problems with gdb on 64 bit systems Message-ID: <20120127234421.GA11914@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-01/txt/msg00103.txt.bz2 On Sat, 28 Jan 2012 00:33:01 +0100, sudhakar govindavajhala wrote: > On a 64 bit system, I am unable to read any core dump in gdb. I > generated the core dumps in two ways: via null pointer derefernce in > program and via gdb attach and gcore. > > In both the cases, I am unable to read the core files. Do you have any thoughts? Works for me on Fedora 16 x86_64: $ echo 'f(){*(int*)0=0;}main(){f();}'|cc -x c -;(ulimit -c unlimited;./a.out);gdb -batch ./a.out ./core.* -ex bt [New LWP 11907] Missing separate debuginfo for Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/1e/2a683b7d877576970e4275d41a6aaec280795e Core was generated by `./a.out'. Program terminated with signal 11, Segmentation fault. #0 0x000000000040047d in f () #0 0x000000000040047d in f () #1 0x0000000000400493 in main () > For gdb 7, I tried two different machines maintained by different > organizations to see what the issue may be. Both are failing. You need to be more specific. And best to submit the problem for GDB release by that OS vendor. Regards, Jan