[Converted from Gnats 1797] $ gdb a.out GNU gdb 6.2.1 Copyright 2004 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 "sparc-sun-solaris2.8"... dwarf2-frame.c:1136: internal-error: Invalid or unsupported encoding A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) Release: gdb-6.2.1 Environment: Solaris 2.8/SPARC GDB 6.2.1 compiled with Sun C 5.5 Patch 112760-12 2004/07/20 GCC 3.3.2 using the Sun assembler How-To-Repeat: $ uname -a SunOS gax 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-V250 $ g++ -v Reading specs from /opt/TWWfsw/gcc332/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs Configured with: /opt/build/gcc-3.3.2/configure --enable-nls --with-included-gettext --enable-shared --enable-libgcj --enable-threads --datadir=/opt/TWWfsw/gcc332/share --with-local-prefix=/opt/TWWfsw/gcc332 --prefix=/opt/TWWfsw/gcc332 Thread model: posix gcc version 3.3.2 (TWW) $ gdb --version GNU gdb 6.2.1 Copyright 2004 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 "sparc-sun-solaris2.8". $ cat libmy.cc #include <stdio.h> int func() { return printf("func\n"); } $ cat static.cc #include <stdio.h> extern int func(); int main() { func(); } $ g++ -g -fPIC -c -o libmy.o libmy.cc $ ar cr libmy.a libmy.o $ ranlib libmy.a $ g++ -g static.cc -L. -lmy
State-Changed-From-To: open->closed State-Changed-Why: Fixed.
From: Laurie_E_Williams@raytheon.com To: gdb-gnats@sources.redhat.com, nobody@sources.redhat.com, china@thewrittenword.com, gdb-prs@sources.redhat.com Cc: Subject: Re: backtrace/1797: internal-error: Invalid or unsupported encoding in dwarf2-frame.c Date: Tue, 22 Feb 2005 16:09:50 -0500 Hello, This bug report 1797 says it was closed and says "fixed" at the bottom, but there is no fix given. I assumed that meant it was fixed in gdb 6.3, but I have the same problem with gdb 6.3 running on Solaris 8 with gcc 3.4.2. Any suggestions? Thanks, Laurie
From: china@thewrittenword.com (Albert Chin-A-Young) To: Laurie_E_Williams@raytheon.com Cc: gdb-gnats@sources.redhat.com, nobody@sources.redhat.com, gdb-prs@sources.redhat.com Subject: Re: backtrace/1797: internal-error: Invalid or unsupported encoding in dwarf2-frame.c Date: Tue, 22 Feb 2005 15:27:21 -0600 On Tue, Feb 22, 2005 at 04:09:50PM -0500, Laurie_E_Williams@raytheon.com wrote: > This bug report 1797 says it was closed and says "fixed" at the > bottom, but there is no fix given. I assumed that meant it was > fixed in gdb 6.3, but I have the same problem with gdb 6.3 running > on Solaris 8 with gcc 3.4.2. Then you're not having the same problem. It was fixed in 6.3. The patch below fixed it for us on 6.2.1 and this patch was merged into 6.3. Looks like there might be other instances of this bug. -- albert chin (china@thewrittenword.com) -- snip snip --- gdb/dwarf2-frame.c.orig Tue Nov 2 13:49:05 2004 +++ gdb/dwarf2-frame.c Tue Nov 2 14:48:01 2004 @@ -1109,7 +1109,7 @@ internal_error (__FILE__, __LINE__, "Invalid or unsupported encoding"); } - if ((encoding & 0x0f) == 0x00) + if ((encoding & 0x07) == 0x00) encoding |= encoding_for_size (ptr_len); switch (encoding & 0x0f)
*** Bug 8946 has been marked as a duplicate of this bug. ***