From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17887 invoked by alias); 18 Oct 2007 03:20:04 -0000 Received: (qmail 17877 invoked by uid 22791); 18 Oct 2007 03:20:03 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 Oct 2007 03:19:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id B62FD2ABAEC for ; Wed, 17 Oct 2007 23:19:57 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mAP8G--j35Zw for ; Wed, 17 Oct 2007 23:19:57 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 713F32ABAE8 for ; Wed, 17 Oct 2007 23:19:57 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id F3E8AE7A13; Wed, 17 Oct 2007 20:19:54 -0700 (PDT) Date: Thu, 18 Oct 2007 03:20:00 -0000 From: Joel Brobecker To: gdb@sourceware.org Subject: Re: SEGV running gdb-6.7 on Tru64 UNIX 5.1 Message-ID: <20071018031954.GN16618@adacore.com> References: <20071017233802.GA74638@mail1.thewrittenword.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071017233802.GA74638@mail1.thewrittenword.com> User-Agent: Mutt/1.4.2.2i 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-10/txt/msg00129.txt.bz2 > Anyone running 6.7 successfully on Tru64 UNIX 5.1? gdb-6.6 Worked ok. I am able to run it through your example. However, I did build the executable using gcc, not cc. That's probably where the difference is. > >0 0x120125920 in symbol_found(funfirstline=1, canonical=0x0, copy=0x1401778d0="main", sym=0x14014d7c0, file_symtab=0x0, sym_symtab=0x0) "linespec.c":1786 The problem here is that both file_symtab and sym_symtab are NULL. Looking at the frame just above it: > #1 0x120125744 in decode_variable(copy=0x1401778d0="main", funfirstline=1, canonical=0x0, file_symtab=0x0, not_found_ptr=0x0) "linespec.c":1737 Apparently, lookup_symbol found a symbol for "main", but did not return the associated symtab. You'll probably need to debug GDB to find out why lookup_symbol_in_language set the symtab to NULL... -- Joel