bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/11302] Segfault in _bfd_dwarf2_find_nearest_line


From: loose at astron dot nl
Subject: [Bug binutils/11302] Segfault in _bfd_dwarf2_find_nearest_line
Date: 3 Mar 2010 11:26:08 -0000

------- Additional Comments From loose at astron dot nl  2010-03-03 11:26 
-------
Hi Nick,

Segfaults remain, though they occur at different places now. Again, they have to
do with not checking the return value of bfd_zalloc. This still happens in a LOT
of places. Is this a deliberate choice of speed over robustness? Or is it just
sloppiness? Here's a sample backtrace of the first few stack frames (using
binutils-2.20.51.20100301, the CVS HEAD of March 1st):

#0  0x00007ffff7b09880 in scan_unit_for_symbols (unit=0x668270)
    at ./dwarf2.c:1976
        amt = 56
        bytes_read = 1
        i = 8
        abbrev = 0x6677b0
        func = 0x0
        var = 0x0
        low_pc = 0
        abbrev_number = 30
        attr = {
          name = DW_AT_const_value,
          form = DW_FORM_data2,
          u = {
            str = 0x100 <Address 0x100 out of bounds>,
            blk = 0x100,
            val = 256,
            sval = 256
          }
        }
        high_pc = 0
        abfd = 0x60e9c0
        info_ptr = 0x63d57b "N\n"
        nesting_level = 3
        nested_funcs = 0x671030
        nested_funcs_size = 32
        __PRETTY_FUNCTION__ = "scan_unit_for_symbols"
#1  0x00007ffff7b0a4de in comp_unit_find_nearest_line (unit=0x668270,
    addr=4225314, filename_ptr=0x7fffffffd338,
    functionname_ptr=0x7fffffffd340, linenumber_ptr=0x7fffffffd348,
    stash=0x6204b0) at ./dwarf2.c:2359
        line_p = 6718064
        func_p = 0
        function = 0x407922
#2  0x00007ffff7b0bec8 in find_line (abfd=0x60e9c0, section=0x61cce0,
    offset=6914, symbol=0x0, symbols=0x60fb00, filename_ptr=0x7fffffffd338,
    functionname_ptr=0x7fffffffd340, linenumber_ptr=0x7fffffffd348,
    addr_size=4, pinfo=0x60ef10) at ./dwarf2.c:3288
        length = 20818
        offset_size = 4
        info_ptr_unit = 0x63cf55 "RQ"
        stash = 0x6204b0
        addr = 4225314
        each = 0x668270
        found = 0
        do_line = 0
        __PRETTY_FUNCTION__ = "find_line"
#3  0x00007ffff7b0c019 in _bfd_dwarf2_find_nearest_line (abfd=0x60e9c0,
    section=0x61cce0, symbols=0x60fb00, offset=6914,
    filename_ptr=0x7fffffffd338, functionname_ptr=0x7fffffffd340,
    linenumber_ptr=0x7fffffffd348, addr_size=0, pinfo=0x60ef10)
    at ./dwarf2.c:3323
No locals.
#4  0x00007ffff7b2c719 in _bfd_elf_find_nearest_line (abfd=0x60e9c0,
    section=0x61cce0, symbols=0x60fb00, offset=6914,
    filename_ptr=0x7fffffffd338, functionname_ptr=0x7fffffffd340,
    line_ptr=0x7fffffffd348) at elf.c:7254
        found = 0


-- 


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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]