gdb/2162: gdb dumps core in cplus_demangle_type() while trying to demangle non-mangled identifier

dns@fortess.net dns@fortess.net
Wed Aug 30 12:38:00 GMT 2006


>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=



More information about the Gdb-prs mailing list