This is the mail archive of the java-patches@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: patch/RFC/RFT detect ICE in libjava testsuite


Janis Johnson wrote:
This isn't fully tested yet, but I wanted to check on my approach for
reporting internal compiler errors in the libjava testsuite. The test that David Daney added for me doesn't ICE on powerpc*-linux so I had
to fake it by looking for another string, but it seems to work for
libjava/testsuite/libjava.compile.


I modified bytecompile_file so that instead of returning 0 for fail,
1 for success, it now returns 0 for success, 1 for failure, 2 for
failure with "internal compiler error" in the compiler output.  Since
I don't have a libjava test that ICEs, I don't even know if that's the
string gcj uses, or whether it's appropriate to look for it from
bytecompile_file as well as from libjava_tcompile.  Currently only
lib/libjava.exp handles a 2 from bytecompile_file; other places that
call it were modified to handle 0 instead of 1 for "pass", but it
would be easy to change them to report ICEs as well.

Am I on the right track?

2006-05-12 Janis Johnson <janis187@us.ibm.com>

	PR testsuite/24128:
	* testsuite/lib/libjava.exp (bytecompile_file): Change return value
	to 0 for pass, 1 for fail, 2 for ICE.
	(test_libjava_from_source): Detect and report ICE.
	(test_libjava_from_javac): Ditto.
	* testsuite/libjava.cni/cni.exp (gcj_cni_test_one): Handle new
	return value from bytecompile_file.
	* testsuite/libjava.mauve/mauve.exp (test_mauve): Ditto.
	(test_mauve_sim): Ditto.
	* testsuite/libjava.special/special.exp (gcj_special_run): Ditto.
	* testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Ditto.
	(gcj_jni_invocation_test_one): Ditto.
	* testsuite/libjava.loader/loader.exp (gcj_loader_run): Ditto.


I tried the patch, and it does indeed seem to produce FAILs when the compiler ICEs and the xfail file contains 'shouldfail'. However I have been unsuccessful supressing the FAIL messages.


The best I could do was to place 'xfail-gcj' and 'xfail-gcjC' in the xfail file. That reduced my FAILs from six to two on the test case.

PRx0418.xfail contains:
----------
xfail-gcj
xfail-gcjC
----------

The xfails seem to come when we are using libtool to compile. I am not sure how to suppress those.

This is a portion of my libjava.log:

-------------------
set_ld_library_path_env_vars: ld_library_path=.:/home/daney/gccsvn/native/i686-pc-linux-gnu/./libjava/.libs:/home/daney/gccsvn/native/gcc
Executing on host: /home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/../libtool --silent --tag=GCJ --mode=link /home/daney/gccsvn/native/gcc/gcj -B/home/daney/gccsvn/native/gcc/ --encoding=UTF-8 -B/home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/../ /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java -no-install --main=PR20418 -g -L/home/daney/gccsvn/native/i686-pc-linux-gnu/./libjava/.libs -lm -o /home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/PR20418.exe (timeout = 300)
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In class 'PR20418':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In method 'PR20418.main(java.lang.String[])':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java:5: internal compiler error: internal error in check-init: tree code not implemented: type_decl
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In class 'PR20418':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In method 'PR20418.main(java.lang.String[])':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java:5: internal compiler error: internal error in check-init: tree code not implemented: type_decl
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


FAIL: PR20418 compilation from source (internal compiler error)
UNTESTED: PR20418 execution from source compiled test
UNTESTED: PR20418 output from source compiled test
byte compile: /home/daney/gccsvn/native/gcc/gcj -B/home/daney/gccsvn/native/gcc/ --encoding=UTF-8 -C -I/home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/../libgcj-4.2.0.jar -g /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java -d /home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite 2>@ stdout
couldn't compile /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In class 'PR20418':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In method 'PR20418.main(java.lang.String[])':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java:5: internal compiler error: internal error in check-init: tree code not implemented: type_decl
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
child process exited abnormally
XFAIL: PR20418 byte compilation (internal compiler error)
UNTESTED: PR20418 compilation from bytecode
byte compile: /home/daney/gccsvn/native/gcc/gcj -B/home/daney/gccsvn/native/gcc/ --encoding=UTF-8 -C -I/home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/../libgcj-4.2.0.jar -g /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java -d /home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite 2>@ stdout
couldn't compile /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In class 'PR20418':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In method 'PR20418.main(java.lang.String[])':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java:5: internal compiler error: internal error in check-init: tree code not implemented: type_decl
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
child process exited abnormally
XFAIL: PR20418 byte compilation (internal compiler error)
UNTESTED: PR20418 compilation from bytecode
set_ld_library_path_env_vars: ld_library_path=.:/home/daney/gccsvn/native/i686-pc-linux-gnu/./libjava/.libs:/home/daney/gccsvn/native/gcc
Executing on host: /home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/../libtool --silent --tag=GCJ --mode=link /home/daney/gccsvn/native/gcc/gcj -B/home/daney/gccsvn/native/gcc/ --encoding=UTF-8 -B/home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/../ /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java -no-install --main=PR20418 -O3 -g -L/home/daney/gccsvn/native/i686-pc-linux-gnu/./libjava/.libs -lm -o /home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/PR20418.exe (timeout = 300)
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In class 'PR20418':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In method 'PR20418.main(java.lang.String[])':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java:5: internal compiler error: internal error in check-init: tree code not implemented: type_decl
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In class 'PR20418':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In method 'PR20418.main(java.lang.String[])':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java:5: internal compiler error: internal error in check-init: tree code not implemented: type_decl
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


FAIL: PR20418 -O3 compilation from source (internal compiler error)
UNTESTED: PR20418 -O3 execution from source compiled test
UNTESTED: PR20418 -O3 output from source compiled test
byte compile: /home/daney/gccsvn/native/gcc/gcj -B/home/daney/gccsvn/native/gcc/ --encoding=UTF-8 -C -I/home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/../libgcj-4.2.0.jar -g /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java -d /home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite 2>@ stdout
couldn't compile /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In class 'PR20418':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In method 'PR20418.main(java.lang.String[])':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java:5: internal compiler error: internal error in check-init: tree code not implemented: type_decl
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
child process exited abnormally
XFAIL: PR20418 byte compilation (internal compiler error)
UNTESTED: PR20418 compilation from bytecode
byte compile: /home/daney/gccsvn/native/gcc/gcj -B/home/daney/gccsvn/native/gcc/ --encoding=UTF-8 -C -I/home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite/../libgcj-4.2.0.jar -g /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java -d /home/daney/gccsvn/native/i686-pc-linux-gnu/libjava/testsuite 2>@ stdout
couldn't compile /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: /home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In class 'PR20418':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java: In method 'PR20418.main(java.lang.String[])':
/home/daney/gccsvn/gcc/libjava/testsuite/libjava.compile/PR20418.java:5: internal compiler error: internal error in check-init: tree code not implemented: type_decl
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
child process exited abnormally
XFAIL: PR20418 byte compilation (internal compiler error)
UNTESTED: PR20418 compilation from bytecode
------------------------------------------------------------------------------------



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