gdb/2113: gdb crash when reading binary informations
>Synopsis: gdb crash when reading binary informations
>Arrival-Date: Tue Apr 11 14:18:01 GMT 2006
>Originator: [hidden email] >Release: gdb 6.3
Solaris 5.9 64bit
gcc version 3.3.1 to build the binary to debug generating the gdb core
in some .c files, lh->include_dirs is used without testing lh->include_dirs==NULL
Loaded symbols for /usr/lib/64/libthread_db.so.1
#0 0x0000000100158f40 in dwarf_decode_lines (lh=0x1008ee350, comp_dir=0x0,
abfd=0x1004d59c0, cu=0xffffffff7fffbf70, pst=0x1011c2060)
6560 dir = lh->include_dirs[fe->dir_index - 1];
Setting up the environment for debugging gdb.
Breakpoint 1 at 0x10004fc94: file utils.c, line 850.
Breakpoint 2 at 0x10008fc5c: file cli/cli-cmds.c, line 193.
perhaps try to debug a gcc 3.3.1 binary
NB: this bug was also present in gdb 6.2.
check lh->include_dirs!=NULL before using it