This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj segfaults on i686/x86_64-apple-darwin*


On Mon, Nov 09, 2009 at 02:33:11PM +0000, Andrew Haley wrote:
> Jack Howarth wrote:
>
>>    Shouldn't the libjava testsuite contain some rudimentary tests using gcj
>> to make sure it is functional?
>
> Sure.
>
>> The recent testsuite results don't suggest
>> major problems with java on intel darwin...
>>
>> http://gcc.gnu.org/ml/gcc-testresults/2009-11/msg00666.html
>> http://gcc.gnu.org/ml/gcc-testresults/2009-10/msg01308.html
>
> This means that, whatever the cause of the bug, it wasn't present
> when these tests were run.
>
> You can easily verify that yourself by running 'make check-target-libjava'.
>
> Andrew.

Andrew,
   Actually the nature of the testsuite will mask this failure on intel darwin.
The gcj compiler doesn't segfault when presented with a *.class file to compile
into an executable. Only when presented a *.java file will the gcj compiler abort.
The output to libjava.log suggests that all of the tests in libjava.lang are executed
via the class file contained in the associated jar file rather than compiling directly
the java file itself. 

Running /sw/src/fink.build/gcc45-4.4.999-20091107/gcc-4.5-20091107/libjava/testsuite/libjava.lang/lang.exp ...
set_ld_library_path_env_vars: ld_library_path=.:/sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/./libjava/.libs
Executing on host: /sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/libjava/testsuite/../libtool --silent --tag=GCJ --mode=link /sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/./gcc/gcj -B/sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/libjava/ -B/sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/./gcc/ -B/sw/lib/gcc4.5/x86_64-apple-darwin10.2.0/bin/ -B/sw/lib/gcc4.5/x86_64-apple-darwin10.2.0/lib/ -isystem /sw/lib/gcc4.5/x86_64-apple-darwin10.2.0/include -isystem /sw/lib/gcc4.5/x86_64-apple-darwin10.2.0/sys-include    --encoding=UTF-8 -B/sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/libjava/testsuite/../ /sw/src/fink.build/gcc45-4.4.999-20091107/gcc-4.5-20091107/libjava/testsuite/libjava.lang/ArrayStore.jar  -w  -bind_at_load -multiply_defined suppress -Wl,-allow_stack_execute --main=ArrayStore -g  -L/sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/./libjava/.libs -lm   -o /sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/libjava/testsuite/ArrayStore.exe    (timeout = 300)
PASS: ArrayStore compilation from source
set_ld_library_path_env_vars: ld_library_path=.:/sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/./libjava/.libs
invoke: /sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/libjava/testsuite/ArrayStore.exe  
Setting LD_LIBRARY_PATH to .:/sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/./libjava/.libs:.:/sw/src/fink.build/gcc45-4.4.999-20091107/darwin_objdir/x86_64-apple-darwin10.2.0/./libjava/.libs
java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayStoreException
java.lang.ArrayIndexOutOfBoundsException
foobar
PASS: ArrayStore execution - source compiled test
PASS: ArrayStore output - source compiled test

I suspect if the libjava harness was fixed to compile the java files if a ecj1 was
built that all of the libjava.lang tests would suddenly fail on darwin.
             Jack


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]