From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10868 invoked by alias); 28 Feb 2003 17:18:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10860 invoked from network); 28 Feb 2003 17:18:54 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 28 Feb 2003 17:18:54 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18oq33-0006Gi-00; Fri, 28 Feb 2003 13:19:58 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18oo9m-00037q-00; Fri, 28 Feb 2003 12:18:46 -0500 Date: Fri, 28 Feb 2003 17:18:00 -0000 From: Daniel Jacobowitz To: Lev Assinovsky , gdb@sources.redhat.com Subject: Re: gdb 5.3 bug Message-ID: <20030228171845.GB24839@nevyn.them.org> Mail-Followup-To: Lev Assinovsky , gdb@sources.redhat.com References: <3F6F4712B759A34ABD453A8B39C10D6229DB66@bagman.edm.com> <20030227190930.GC9375@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030227190930.GC9375@nevyn.them.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00609.txt.bz2 On Thu, Feb 27, 2003 at 02:09:30PM -0500, Daniel Jacobowitz wrote: > On Thu, Feb 27, 2003 at 09:11:14PM +0300, Lev Assinovsky wrote: > > GNU gdb 5.3 > > Copyright 2002 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 "i386-pc-solaris2.8"... > > (gdb) l > > > > Program received signal SIGSEGV, Segmentation fault. > > 0x08136671 in finish_block (symbol=0x6e5f5f3a, listhead=0x82241f4, old_blocks=0x3a787863, start=1634562671, > > end=1634562720, objfile=0x8263fe0) at buildsym.c:304 > > 304 struct type *ftype = SYMBOL_TYPE (symbol); > > (gdb) > > > > > > Any clue what might be the reason of gdb crash? > > OK, the value of "symbol" is obviously wrong. Could you privately send > me the binary? If that's not possible, at least a backtrace would be > useful... Lev, You're in luck, this has already been fixed. It appears to be a bug in the Sun compilers - it outputs end-of-function markers without a corresponding beginning-of-function marker. If you get a GDB snapshot from CVS (http://sources.redhat.com/gdb/) it should handle your program gracefully. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer