gdb/2102: gdb coredumps in cplus_demangle_type while trying to demangle non-mangled identifier

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gdb/2102: gdb coredumps in cplus_demangle_type while trying to demangle non-mangled identifier

alexok

>Number:         2102
>Category:       gdb
>Synopsis:       gdb coredumps in cplus_demangle_type while trying to demangle non-mangled identifier
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 17 14:18:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexok
>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 coredups during loading symbols from simple C-application, which contains "_Zs" identifier. This simple application is attached.
>How-To-Repeat:
compile attached file with gcc including debug information and open resulted executable with gdb

gcc -g gdb_bug.c -o gdb_bug
gdb gdb_bug

gdb should coredump on loading symbols from gdb_bug
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="gdb_bug.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdb_bug.c"

c3RhdGljIGludCBfWnNbXSA9IHsgMSwyLDMgfTsKdHlwZWRlZiBzdHJ1Y3QgIHsKICAgaW50ICog
YTsKfSBiOwpzdGF0aWMgYiBjYXRlW10gPSB7CiAgIHsgX1pzIH0KfTsKCmludCBtYWluKCkgewog
ICByZXR1cm4gMDsKfQo=