From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31295 invoked by alias); 12 Mar 2011 21:28:30 -0000 Received: (qmail 31286 invoked by uid 22791); 12 Mar 2011 21:28:29 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_IB,TW_YM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 12 Mar 2011 21:27:31 +0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/48097] New: new Throw_2 failures in libjava under Xcode 4.0 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 12 Mar 2011 21:28:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg01273.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48097 Summary: new Throw_2 failures in libjava under Xcode 4.0 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: howarth@nitro.med.uc.edu The libjava testsuite exhibits four new execution failures for Throw_2 when Xcode 4.0 is installed... FAIL: Throw_2 execution - source compiled test FAIL: Throw_2 -findirect-dispatch execution - source compiled test FAIL: Throw_2 -O3 execution - source compiled test FAIL: Throw_2 -O3 -findirect-dispatch execution - source compiled test These are not present when Xcode 3.2.5 is used for cctools. These fail as follows... [MacPro:x86_64-apple-darwin10.7.0/libjava/testsuite] root# /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/libjava/testsuite/../libtool --silent --tag=GCJ --mode=link /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./gcc/gcj -B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/libjava/ -B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./gcc/ -B/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/bin/ -B/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/lib/ -isystem /sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/include -isystem /sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/sys-include --encoding=UTF-8 -B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/libjava/testsuite/../ /sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110311/libjava/testsuite/libjava.lang/Throw_2.jar -w -bind_at_load -multiply_defined suppress -Wl,-allow_stack_execute --main=Throw_2 -g -L/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/./libjava/.libs -lm -m64 -o /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/libjava/testsuite/Throw_2.exe [MacPro:x86_64-apple-darwin10.7.0/libjava/testsuite] root# ./Throw_2.exe 1 Abort It is interesting that the gdb from Xcode 4.0 doesn't like this executable... [MacPro:x86_64-apple-darwin10.7.0/libjava/testsuite] root# gdb ./Throw_2.exe GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011) 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 .... warning: Could not find object file "/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/iconv.o" - no debug information available for "./iconv.c". warning: Could not find object file "/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/localcharset.o" - no debug information available for "./../libcharset/lib/localcharset.c". warning: Could not find object file "/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/relocatable.o" - no debug information available for "./relocatable.c". .. done gdb stack crawl at point of internal error: 0 gdb-i386-apple-darwin 0x000000010010a10a internal_vproblem + 308 1 gdb-i386-apple-darwin 0x000000010010a2e4 internal_verror + 27 2 gdb-i386-apple-darwin 0x000000010010a382 align_down + 0 3 gdb-i386-apple-darwin 0x00000001000b4426 find_partial_die_in_comp_unit + 88 4 gdb-i386-apple-darwin 0x00000001000bff8b find_partial_die + 628 5 gdb-i386-apple-darwin 0x00000001000bffd8 fixup_partial_die + 55 6 gdb-i386-apple-darwin 0x00000001000c06cd scan_partial_symbols + 58 7 gdb-i386-apple-darwin 0x00000001000c15a9 dwarf2_build_psymtabs + 3006 8 gdb-i386-apple-darwin 0x000000010014e1e0 macho_symfile_read + 299 9 gdb-i386-apple-darwin 0x000000010004fe18 syms_from_objfile + 1403 10 gdb-i386-apple-darwin 0x00000001000508bb symbol_file_add_with_addrs_or_offsets_using_objfile + 780 11 gdb-i386-apple-darwin 0x0000000100050872 symbol_file_add_with_addrs_or_offsets_using_objfile + 707 12 gdb-i386-apple-darwin 0x0000000100050b69 symbol_file_add_name_with_addrs_or_offsets + 119 13 gdb-i386-apple-darwin 0x0000000100051031 symbol_file_add_main_1 + 207 14 gdb-i386-apple-darwin 0x0000000100073333 catch_command_errors + 65 /SourceCache/gdb/gdb-1518/src/gdb/dwarf2read.c:8388: 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 (gdb) r Starting program: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.7.0/libjava/testsuite/Throw_2.exe Reading symbols for shared libraries . done Reading symbols for shared libraries ...gdb stack crawl at point of internal error: 0 gdb-i386-apple-darwin 0x000000010010a10a internal_vproblem + 308 1 gdb-i386-apple-darwin 0x000000010010a2e4 internal_verror + 27 2 gdb-i386-apple-darwin 0x000000010010a382 align_down + 0 3 gdb-i386-apple-darwin 0x00000001000b4426 find_partial_die_in_comp_unit + 88 4 gdb-i386-apple-darwin 0x00000001000bff8b find_partial_die + 628 5 gdb-i386-apple-darwin 0x00000001000bffd8 fixup_partial_die + 55 6 gdb-i386-apple-darwin 0x00000001000c06cd scan_partial_symbols + 58 7 gdb-i386-apple-darwin 0x00000001000c15a9 dwarf2_build_psymtabs + 3006 8 gdb-i386-apple-darwin 0x000000010014e1e0 macho_symfile_read + 299 9 gdb-i386-apple-darwin 0x000000010004fe18 syms_from_objfile + 1403 10 gdb-i386-apple-darwin 0x00000001000508bb symbol_file_add_with_addrs_or_offsets_using_objfile + 780 11 gdb-i386-apple-darwin 0x0000000100050872 symbol_file_add_with_addrs_or_offsets_using_objfile + 707 12 gdb-i386-apple-darwin 0x0000000100051240 symbol_file_add_bfd_helper + 84 13 gdb-i386-apple-darwin 0x00000001000733b6 catch_errors + 70 14 gdb-i386-apple-darwin 0x000000010004d59a symbol_file_add_bfd_safe + 187 /SourceCache/gdb/gdb-1518/src/gdb/dwarf2read.c:8388: 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 .warning: Could not find object file "/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/iconv.o" - no debug information available for "./iconv.c". warning: Could not find object file "/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/localcharset.o" - no debug information available for "./../libcharset/lib/localcharset.c". warning: Could not find object file "/sw/src/fink.build/libiconv-1.12-4/libiconv-1.12/lib/.libs/relocatable.o" - no debug information available for "./relocatable.c". ... done 1 Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000014 _ZN4java4lang6String6lengthEJiv (this=0x0) at String.java:451 451 return count; (gdb) bt #0 _ZN4java4lang6String6lengthEJiv (this=0x0) at String.java:451 #1 0x0000000100072ca9 in java::lang::VMDouble::parseDouble (str=0x0) at ../../../gcc-4.6-20110311/libjava/java/lang/natVMDouble.cc:165 #2 0x00000001004391ba in _ZN4java4lang6Double11parseDoubleEJdPNS0_6StringE (str=0x0) at Double.java:348 #3 0x000000010006695e in gnu::java::lang::MainThread::call_main (this=0x1000021f8) at ../../../gcc-4.6-20110311/libjava/gnu/java/lang/natMainThread.cc:54 Previous frame inner to this frame (gdb could not unwind past this frame) (gdb)