[Bug gdb/21563] New: gdb segfaults when trying to read DWARF symbols created by TI compiler

mr.nuke.me at gmail dot com sourceware-bugzilla@sourceware.org
Fri Jun 9 22:55:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21563

            Bug ID: 21563
           Summary: gdb segfaults when trying to read DWARF symbols
                    created by TI compiler
           Product: gdb
           Version: 7.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: mr.nuke.me at gmail dot com
  Target Milestone: ---

Created attachment 10086
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10086&action=edit
ELF file that causes GDB to go tits up

arm-none-eabi-gdb will segfault when trying to read or demangle a symbol from a
DWARF section created with TI code composer studio.

There are several ways to produce the crash, either by typing break, then
hitting <Tab> to autocomplete, or trying to break on a function name. The
segfault happens in 'd_demangle_callback()' every time.

    $ arm-none-eabi-gdb ~/ti_ccs_gdb_crash.elf 
    GNU gdb (GDB) 7.6.2
    [snip]
    Reading symbols from /home/mrnuke/ti_ccs_gdb_crash.elf...done.
    (gdb) break main
    Segmentation fault (core dumped)

I expect that gdb either sets the correct breakpoint, or says that symbol
cannot be found (if it cannot demangle the names).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list