This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2162: gdb dumps core in cplus_demangle_type() while trying to demangle non-mangled identifier
- From: dns at fortess dot net
- To: gdb-gnats at sources dot redhat dot com
- Date: 30 Aug 2006 12:34:45 -0000
- Subject: gdb/2162: gdb dumps core in cplus_demangle_type() while trying to demangle non-mangled identifier
- Reply-to: dns at fortess dot net
>Number: 2162
>Category: gdb
>Synopsis: gdb dumps core in cplus_demangle_type() while trying to demangle non-mangled identifier
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 30 12:38:01 UTC 2006
>Closed-Date:
>Last-Modified:
>Originator: dns
>Release: gdb 6.4
>Organization:
>Environment:
gdb "sparc-sun-solaris2.8" + gcc v3.4.3
also reproduced on
gdb "i386-redhat-linux-gnu" + gcc v4.0.0
>Description:
gdb dumps core during loading symbols from simple C-application which contains "_Zs" identifier. This simple application is attached.
This problem was already submitted as PR #2102, but somehow vanished from the list of bugs.
>How-To-Repeat:
Compile attached file with gcc including debug information and open its executable with gdb.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-csrc; name="gdb_bug.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdb_bug.c"
c3RhdGljIGludCBfWnNbXSA9IHsgMSwyLDMgfTsKdHlwZWRlZiBzdHJ1Y3QgIHsKICAgaW50ICog
YTsKfSBiOwpzdGF0aWMgYiBjYXRlW10gPSB7CiAgIHsgX1pzIH0KfTsKCmludCBtYWluKCkgewog
ICByZXR1cm4gMDsKfQo=