symtab/2079: dwarf2read.c:1471: internal-error: sect_index_text not initialized

schwab@suse.de schwab@suse.de
Wed Feb 8 16:48:00 GMT 2006


>Number:         2079
>Category:       symtab
>Synopsis:       dwarf2read.c:1471: internal-error: sect_index_text not initialized
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 08 16:48:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     schwab@suse.de
>Release:        6.4.50.20060208-cvs
>Organization:
>Environment:

>Description:
gdb can't handle shared libraries that contain no .text section.
>How-To-Repeat:
$ cat hello.c
#include <stdio.h>

int
main (void)
{
  printf ("Hello world\n");
  return 0;
}
$ cat notext.c
int foo;
$ gcc -g -c hello.c
$ gcc -g -c notext.c 
$ gcc -shared -nodefaultlibs -nostdlib notext.o -o libnotext.so
$ gcc -o hello hello.o libnotext.so -Wl,-rpath=.
$ gdb hello
GNU gdb 6.4.50.20060208-cvs
Copyright (C) 2006 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 "ia64-suse-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) b main
Breakpoint 1 at 0x4000000000000792: file hello.c, line 6.
(gdb) r
Starting program: /tmp/hello 
warning: Lowest section in /tmp/libnotext.so is .hash at 00000000000000e8
/cvs/gdb/gdb/dwarf2read.c:1471: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

/cvs/gdb/gdb/dwarf2read.c:1471: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
Hello world
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gdb-prs mailing list