public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17157] New: GDB segfault when demangling symbol
@ 2014-07-14 18:24 sourceware at ca dot sh13.net
  2014-07-15  8:39 ` [Bug gdb/17157] " gbenson at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sourceware at ca dot sh13.net @ 2014-07-14 18:24 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17157
           Summary: GDB segfault when demangling symbol
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: sourceware at ca dot sh13.net

Created attachment 7712
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7712&action=edit
Repro-Case

The following symbol fails to demangle with GDB 7.7.1 (built from source.)
Comes from Code compiled with GCC 4.8.2 on Ubuntu 14.04. Also fails on
distro-provided GDB (7.7.)

"_ZNK5niven5ColorIfLi4EEdvIfEENSt9enable_ifIXsrSt13is_arithmeticIT_E5valueEKNS0_IDTmlcvS5__Ecvf_EELi4EEEE4typeES5_"

c++filt correctly demangles this to:

std::enable_if<std::is_arithmetic<float>::value, niven::Color<decltype
(((float)())*((float)())), 4> const>::type niven::Color<float,
4>::operator/<float>(float) const

For the repro-case, assuming it has been put into the GDB source root directory
and GDB is built, use: gcc -Iinclude/ test.c ./libiberty/libiberty.a -o test

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


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

end of thread, other threads:[~2024-01-02 16:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-14 18:24 [Bug gdb/17157] New: GDB segfault when demangling symbol sourceware at ca dot sh13.net
2014-07-15  8:39 ` [Bug gdb/17157] " gbenson at redhat dot com
2014-12-12 20:08 ` sourceware at ca dot sh13.net
2014-12-19 13:04 ` gbenson at redhat dot com
2024-01-02 16:18 ` ssbssa at sourceware dot org

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).