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

* [Bug gdb/17157] GDB segfault when demangling symbol
  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 ` gbenson at redhat dot com
  2014-12-12 20:08 ` sourceware at ca dot sh13.net
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: gbenson at redhat dot com @ 2014-07-15  8:39 UTC (permalink / raw)
  To: gdb-prs

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

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gbenson at redhat dot com

--- Comment #1 from Gary Benson <gbenson at redhat dot com> ---
Confirmed and filed as:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61805

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


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

* [Bug gdb/17157] GDB segfault when demangling symbol
  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
  3 siblings, 0 replies; 5+ messages in thread
From: sourceware at ca dot sh13.net @ 2014-12-12 20:08 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from sourceware at ca dot sh13.net ---
Ok, this problem is a bit more complicated. First, a newer GCC (4.9.1) and
Clang 3.5 doesn't produce the symbol any more. Running a more recent c++filt on
it now crashes c++filt -- if you look closely, the originally demangled type
was also incorrect, as: decltype (((float)()*(float)())) does not make sense --
should have been decltype (float ()*float ()) which is simply float.

I'm debugging a new crash now where the demangler/libiberty starts producing a
symbol name with decltype in it, which I strongly suspect is similar to the
original issue. Am I right to assume that decltype is never part of a mangled
symbol name?

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


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

* [Bug gdb/17157] GDB segfault when demangling symbol
  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
  3 siblings, 0 replies; 5+ messages in thread
From: gbenson at redhat dot com @ 2014-12-19 13:04 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Gary Benson <gbenson at redhat dot com> ---
It might be best to add your comments to the GCC bug above, it's more likely to
be seen by those with the right kind of expertise.

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


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

* [Bug gdb/17157] GDB segfault when demangling symbol
  2014-07-14 18:24 [Bug gdb/17157] New: GDB segfault when demangling symbol sourceware at ca dot sh13.net
                   ` (2 preceding siblings ...)
  2014-12-19 13:04 ` gbenson at redhat dot com
@ 2024-01-02 16:18 ` ssbssa at sourceware dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ssbssa at sourceware dot org @ 2024-01-02 16:18 UTC (permalink / raw)
  To: gdb-prs

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

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |MOVED
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=61805
                 CC|                            |ssbssa at sourceware dot org
             Status|NEW                         |RESOLVED

--- Comment #4 from Hannes Domani <ssbssa at sourceware dot org> ---
Was fixed on gcc side some time ago.

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