From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6744 invoked by alias); 14 Jul 2014 18:24:05 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 6701 invoked by uid 48); 14 Jul 2014 18:24:03 -0000 From: "sourceware at ca dot sh13.net" To: gdb-prs@sourceware.org Subject: [Bug gdb/17157] New: GDB segfault when demangling symbol Date: Mon, 14 Jul 2014 18:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sourceware at ca dot sh13.net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q3/txt/msg00078.txt.bz2 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::value, niven::Color const>::type niven::Color::operator/(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.