This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/10819] New: gdb 7.0 crashes on Solaris 8 when reading symbols from the program being debugged


gdb 7.0 crashes on Solaris 8 when reading symbols from the program being
debugged. This has been reproduced with several different programs, both big and
small. Here is an example:

GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/ds/5/SOLARIS_build/red_redac/programs/rinf_to_pcb...Segmentation Fault (core
dumped)

I have built a debug version of gdb 7.0 and debugged it using gdb 6.7. Here is
the traceback:

#0  0x001f9f18 in bsearch_cie_cmp (key=0xffbed430, element=0x0) at
dwarf2-frame.c:1514
#1  0xfeeb60e0 in bsearch () from /usr/lib/libc.so.1
#2  0x001fa024 in find_cie (cie_table=0xffbed640, cie_pointer=0) at
dwarf2-frame.c:1528
#3  0x001fa838 in decode_frame_entry_1 (unit=0xba4760, start=0xfef52774 "",
eh_frame_p=0,
    cie_table=0xffbed640, fde_table=0xffbed638) at dwarf2-frame.c:1686
#4  0x001fb354 in decode_frame_entry (unit=0xba4760, start=0xfef52774 "",
eh_frame_p=0,
    cie_table=0xffbed640, fde_table=0xffbed638) at dwarf2-frame.c:1907
#5  0x001fbab4 in dwarf2_build_frame_info (objfile=0x519910) at dwarf2-frame.c:2081
#6  0x000d1428 in elf_symfile_read (objfile=0x519910, mainline=0) at elfread.c:739
#7  0x00141b6c in syms_from_objfile (objfile=0x519910, addrs=0x504860,
offsets=0x0, num_offsets=0,
    add_flags=6) at symfile.c:889
#8  0x00141e08 in symbol_file_add_with_addrs_or_offsets (abfd=0x501b48,
add_flags=6, addrs=0x0,
    offsets=0x0, num_offsets=0, flags=0) at symfile.c:990
#9  0x00142194 in symbol_file_add_from_bfd (abfd=0x501b48, add_flags=6,
addrs=0x0, flags=0)
    at symfile.c:1091
#10 0x001421e0 in symbol_file_add (name=0xffbee0c1 "rinf_to_pcb", add_flags=6,
addrs=0x0, flags=0)
    at symfile.c:1103
#11 0x00142274 in symbol_file_add_main_1 (args=0xffbee0c1 "rinf_to_pcb",
from_tty=1, flags=0)
    at symfile.c:1126
#12 0x00142210 in symbol_file_add_main (args=0xffbee0c1 "rinf_to_pcb",
from_tty=1) at symfile.c:1119
#13 0x00173270 in catch_command_errors (command=0x1421f0 <symbol_file_add_main>,
    arg=0xffbee0c1 "rinf_to_pcb", from_tty=1, mask=6) at exceptions.c:525
#14 0x00047e78 in captured_main (data=0xffbedd20) at main.c:804
#15 0x00173170 in catch_errors (func=0x46d38 <captured_main>, func_args=0xffbedd20,
    errstring=0x3ed3a0 "", mask=6) at exceptions.c:510
#16 0x00048598 in gdb_main (args=0xffbedd20) at main.c:911
#17 0x00046974 in main (argc=2, argv=0xffbedda4) at gdb.c:33

The line in question is:

struct dwarf2_cie *cie = *(struct dwarf2_cie **) element;

and element is NULL

-- 
           Summary: gdb 7.0 crashes on Solaris 8 when reading symbols from
                    the program being debugged
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: stevee at zuken dot co dot uk
                CC: gdb-prs at sourceware dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


http://sourceware.org/bugzilla/show_bug.cgi?id=10819

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]