This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb 5.3 bug
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