[Bug debug/42362] New: gdb stack crawl at point of internal error in WalkerTest
howarth at nitro dot med dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Sun Dec 13 22:30:00 GMT 2009
The dwarf debug code generated by gcj in gcc trunk is not backward compatible
with the older gdb release used by Apple in darwin10. When compiled as...
gcj WalkerTest.jar -w -bind_at_load -multiply_defined suppress
-Wl,-allow_stack_execute --main=WalkerTest -g -lm -o WalkerTest.exe
The resulting WalkerTest.exe binary from gcc trunk causes the following error
in Apple's gdb...
gdb ./WalkerTest.exeGNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep
18 20:40:51 UTC 2009)
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 "x86_64-apple-darwin"...Reading symbols for shared
libraries ...... done
gdb stack crawl at point of internal error:
0 gdb-i386-apple-darwin 0x00000001001076e7 internal_vproblem +
308
1 gdb-i386-apple-darwin 0x00000001001078c1 internal_verror + 27
2 gdb-i386-apple-darwin 0x000000010010795f align_down + 0
3 gdb-i386-apple-darwin 0x00000001000b1fc4
find_partial_die_in_comp_unit + 79
4 gdb-i386-apple-darwin 0x00000001000bd97f find_partial_die +
626
5 gdb-i386-apple-darwin 0x00000001000bd9cc fixup_partial_die +
55
6 gdb-i386-apple-darwin 0x00000001000be08d scan_partial_symbols
+ 58
7 gdb-i386-apple-darwin 0x00000001000bef51
dwarf2_build_psymtabs + 2982
8 gdb-i386-apple-darwin 0x0000000100144af3 macho_symfile_read +
294
9 gdb-i386-apple-darwin 0x000000010004bbb8 syms_from_objfile +
1401
10 gdb-i386-apple-darwin 0x000000010004c601
symbol_file_add_with_addrs_or_offsets_using_objfile + 690
11 gdb-i386-apple-darwin 0x000000010004c5bb
symbol_file_add_with_addrs_or_offsets_using_objfile + 620
12 gdb-i386-apple-darwin 0x000000010004c894
symbol_file_add_name_with_addrs_or_offsets + 117
13 gdb-i386-apple-darwin 0x000000010004cd5c
symbol_file_add_main_1 + 207
14 gdb-i386-apple-darwin 0x000000010006e75d catch_command_errors
+ 65
/SourceCache/gdb/gdb-1346/src/gdb/dwarf2read.c:8233: internal-error: could not
find partial DIE in cache
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
This error doesn't occur when the FSF gdb from the current gdb cvs is used. The
problem also doesn't occur with Apple's gdb when the WalkerTest is compiled
with the gcj from gcc 4.4.2.
--
Summary: gdb stack crawl at point of internal error in WalkerTest
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: x86_64-apple-darwin10
GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42362
More information about the Gcc-bugs
mailing list