From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3371 invoked by alias); 6 Jun 2009 13:16:45 -0000 Received: (qmail 3361 invoked by uid 22791); 6 Jun 2009 13:16:44 -0000 X-SWARE-Spam-Status: No, hits=2.4 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,SPF_HELO_PASS,SPF_PASS 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; Sat, 06 Jun 2009 13:16:39 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MCvlF-0000Rn-GH for gdb@sourceware.org; Sat, 06 Jun 2009 06:16:37 -0700 Message-ID: <23901800.post@talk.nabble.com> Date: Sat, 06 Jun 2009 13:16:00 -0000 From: nitinvk04 To: gdb@sourceware.org Subject: gdb exits with segmentation fault 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-06/txt/msg00061.txt.bz2 I hope I am at the right forum. I am trying to run simplest program - #include int main(int argc, char *args[]) { int num1; num1 = 10; printf("VALUE OF NUM1=%d\n",num1); return 0; } i can run the program - [nitin@localhost shellCode]$ ./simple VALUE OF NUM1=10 But gdb exits with segmentation fault - [nitin@localhost shellCode]$ gdb simple GNU gdb 6.0 Copyright 2003 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 "i686-pc-linux-gnu"... (gdb) run Starting program: simple Segmentation fault [nitin@localhost shellCode]$ I am using Mandrake 10 with a kernel 2.6.3-7mdk. and the gdb is 6.0 - quite old, but i have some requirement. I have compiled gdb from source as it was not installed. While compiling gdb i dint get any errors. I cant figure out whats wrong with gdb. It's happening with all executable programs. Can run few other commands like disassemble, help but not run. Any help would be appreciated. Thanks a lot. Nitin -- View this message in context: http://www.nabble.com/gdb-exits-with-segmentation-fault-tp23901800p23901800.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.