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 external/16944] New: Demangler crashes segfault GDB on startup


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

            Bug ID: 16944
           Summary: Demangler crashes segfault GDB on startup
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: critical
          Priority: P2
         Component: external
          Assignee: unassigned at sourceware dot org
          Reporter: gbenson at redhat dot com

The libiberty demangler is a complex piece of code written in an unusual style.
 Errors frequently result in segmentation faults, for example bug 9907, bug
11572, bug 14963, bug 16593, bug 16752, bug 16817 and bug 16845, but GDB does
not handle these.  If GDB is invoked on an inferior containing a symbol that
crashes the demangler then GDB will segfault on startup:

blade:[src]$ gdb test
GNU gdb (GDB) 7.7.50.20140513-cvs
Copyright (C) 2014 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 "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from test...Segmentation fault (core dumped)

GDB should be able to recover from such errors gracefully.

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


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