public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/16822] New: Segmentation fault on add-symbol-file
@ 2014-04-08 20:09 ubrindis at ti dot com
  2014-04-08 20:10 ` [Bug gdb/16822] Segmentation fault on add-symbol-file command ubrindis at ti dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: ubrindis at ti dot com @ 2014-04-08 20:09 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 16822
           Summary: Segmentation fault on add-symbol-file
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: ubrindis at ti dot com

Using GDB version 7.7 compiled with --host=arm-linux-gnueabi and
--target=tic6x-ti-elf there is a segmentation fault when attempting to add a
symbol file generated by TI C6x compiler version 7.4.4. I did not notice the
segmentation fault in GDB version 7.2.

Debugging into GDB a bit I notice that the seg fault comes from dwarf2read.c.
On line 8464 the function dwarf2_attr returns a non-null but unusable attr. I
have searched through my symbol file and I notice that for the specific DIE,
there is no DW_AT_MIPS_linkage_name specified. I suspect that the null
detecting condition needs reworking (line 8472 in dwarf2read.c). This then
causes gdb_demangled to be called with a bad argument. I am not exactly sure
how to fix this issue, so I am posting it here.

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-09-24 21:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-08 20:09 [Bug gdb/16822] New: Segmentation fault on add-symbol-file ubrindis at ti dot com
2014-04-08 20:10 ` [Bug gdb/16822] Segmentation fault on add-symbol-file command ubrindis at ti dot com
2014-04-09  2:27 ` qiyao at gcc dot gnu.org
2014-04-09 14:33 ` ubrindis at ti dot com
2014-04-09 14:35 ` ubrindis at ti dot com
2014-04-09 15:43 ` keiths at redhat dot com
2014-04-09 16:24 ` ubrindis at ti dot com
2014-04-10 18:47 ` c-addison at ti dot com
2015-05-18 11:29 ` thangaraj.ponnusamy at in dot bosch.com
2015-05-19  5:23 ` kleiber.tamas at gmail dot com
2015-05-20  5:52 ` thangaraj.ponnusamy at in dot bosch.com
2015-05-21  5:50 ` tony.liu at arm dot com
2015-09-24 21:38 ` kevinb at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).