From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8250 invoked by alias); 18 May 2011 17:02:41 -0000 Received: (qmail 8212 invoked by uid 22791); 18 May 2011 17:02:36 -0000 X-SWARE-Spam-Status: No, hits=-6.2 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; Wed, 18 May 2011 17:02:19 +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 p4IH2G3s012823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 May 2011 13:02:16 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4IH2Fku006938; Wed, 18 May 2011 13:02:15 -0400 From: Phil Muldoon To: Lisa Lan 5a <5alisalan@gmail.com> Cc: gdb@sourceware.org Subject: Re: Fwd: segmentation fault References: Reply-to: pmuldoon@redhat.com X-URL: http://www.redhat.com Date: Wed, 18 May 2011 17:02:00 -0000 In-Reply-To: (Lisa Lan's message of "Wed, 18 May 2011 12:34:36 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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: 2011-05/txt/msg00088.txt.bz2 Lisa Lan 5a <5alisalan@gmail.com> writes: > I want to debug my =C2=A0new code in LMMAPS program. > > I type gdb ./lmp_linux. It has=C2=A0a error as below. Is it a bug? > > This GDB was configured as "x86_64-suse-linux"... > Segmentation fault > > Lisa If GDB segfaults for whatever reason it is bug. But there is not enough information to ascertain the problem. What version of GDB are you using? Type: gdb --version Cheers, Phil