symtab/1651: gdb-6.1 crashes on long enum compiled with AIX cc -g
ppluzhnikov@charter.net
ppluzhnikov@charter.net
Fri May 14 20:58:00 GMT 2004
>Number: 1651
>Category: symtab
>Synopsis: gdb-6.1 crashes on long enum compiled with AIX cc -g
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 14 20:58:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Paul Pluzhnikov
>Release: gdb-6.1
>Organization:
>Environment:
AIX 5.1 / PowerPC
IBM C compiler: vacpp.cmp.C 5.0.2.0
>Description:
gdb 5.0 and 6.1 crash when debugging trivial attached test
case, apparently in scan_xcoff_symtab():
$ gdb-6.1/gdb/gdb a.out
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.1.0.0"...Illegal instruction (core dumped)
>How-To-Repeat:
Generate the test case:
$ perl ./junk.pl 1000 > junk.c &&
cc -g junk.c && gdb a.out
# Gdb crashes when repeat-count is over 750
# Note: it does not crash when the same code is compiled
# with 'gcc', only with IBM 'cc'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="junk.pl"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="junk.pl"
IyEvdXNyL2Jpbi9wZXJsCgokY291bnQgPSAkQVJHVlswXSB8fCAxMDAwMDsKCnByaW50ICJlbnVt
IGVycm9yX2NvZGUge1xuIjsKCmZvciAkaSAoMCAuLiAkY291bnQpIHsKICAgIHByaW50ZiAiICBl
bnVtX3ZhbHVlXyUwNmQsXG4iLCAkaQp9CgpwcmludCAiICBlbnVtX3ZhbHVlX2xhc3Rcbn07XG4i
OwoKcHJpbnQgPDwgIkVPRiI7CgppbnQgbWFpbigpCnsKICAgIGVudW0gZXJyb3JfY29kZSB4Owog
ICAgcmV0dXJuIDA7Cn0KRU9GCg==
More information about the Gdb-prs
mailing list