public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/48097] New: new Throw_2 failures in libjava under Xcode 4.0
@ 2011-03-12 21:28 howarth at nitro dot med.uc.edu
  2011-03-12 21:35 ` [Bug target/48097] " howarth at nitro dot med.uc.edu
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-03-12 21:28 UTC (permalink / raw)
  To: gcc-bugs

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)


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-08-27 14:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-12 21:28 [Bug target/48097] New: new Throw_2 failures in libjava under Xcode 4.0 howarth at nitro dot med.uc.edu
2011-03-12 21:35 ` [Bug target/48097] " howarth at nitro dot med.uc.edu
2011-03-12 21:37 ` howarth at nitro dot med.uc.edu
2011-03-17 20:18 ` howarth at nitro dot med.uc.edu
2011-03-18  0:45 ` howarth at nitro dot med.uc.edu
2011-03-18  8:18 ` jakub at gcc dot gnu.org
2011-03-18  8:35 ` iains at gcc dot gnu.org
2011-03-18  8:55 ` jakub at gcc dot gnu.org
2011-03-18 17:48 ` howarth at nitro dot med.uc.edu
2012-02-26  8:15 ` howarth at nitro dot med.uc.edu
2013-09-14 15:47 ` iains at gcc dot gnu.org
2013-09-16 14:38 ` howarth at nitro dot med.uc.edu
2021-02-28 15:35 ` [Bug target/48097] gcc sometimes generates code that uses the buggy libgcc_s unwinder on darwin (originally exposed by Throw_2 failures in libjava testsuite under Xcode 4.0) egallager at gcc dot gnu.org
2021-03-01 19:37 ` cvs-commit at gcc dot gnu.org
2021-03-21 23:52 ` cvs-commit at gcc dot gnu.org
2021-05-01 13:08 ` cvs-commit at gcc dot gnu.org
2021-08-27 14:38 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).