This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Weird New libjava Testsuite Failure (PR java/14104)
Andrew Haley writes:
> Ranjit Mathew writes:
> >
> > Any insights into the problem or at least how to
> > try to reproduce it reliably?
>
> I'll have a look.
Okay, so it's even weirder than I thought. If I rename libjava.jar to
libjava.0jar in order to make it run first in the testsuite, it
doesn't fail either!
We have a real Heisenbug here...
FWIW, there is a way to catch this: install a SEGV signal handler that
either sends the process SIGSTOP or goes into an infinite loop. I'll
do it.
Andrew.
=== libjava tests ===
Schedule of variations:
unix
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /local/aph/gcc/gcc/libjava/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /local/aph/gcc/gcc/libjava/testsuite/libjava.0jar/jar.exp ...
Executing on host: /cuddles/aph/gcc/build/i686-pc-linux-gnu/libjava/testsuite/../libtool --silent --tag=GCJ --mode=link /local/aph/gcc/build/gcc/gcj -B/local/aph/gcc/build/gcc/ --encoding=UTF-8 -B/local/aph/gcc/build/i686-pc-linux-gnu//libjava/ /local/aph/gcc/gcc/libjava/testsuite/libjava.0jar/simple.jar -no-install --main=simple -g -L/local/aph/gcc/build/i686-pc-linux-gnu//libjava/.libs -lm -o simple (timeout = 300)
spawn /cuddles/aph/gcc/build/i686-pc-linux-gnu/libjava/testsuite/../libtool --silent --tag=GCJ --mode=link /local/aph/gcc/build/gcc/gcj -B/local/aph/gcc/build/gcc/ --encoding=UTF-8 -B/local/aph/gcc/build/i686-pc-linux-gnu//libjava/ /local/aph/gcc/gcc/libjava/testsuite/libjava.0jar/simple.jar -no-install --main=simple -g -L/local/aph/gcc/build/i686-pc-linux-gnu//libjava/.libs -lm -o simple
PASS: linking simple
spawn [open ...]
hi
PASS: simple output
spawn [open ...]
hi
PASS: /local/aph/gcc/gcc/libjava/testsuite/libjava.0jar/simple.jar execution - gij test
PASS: /local/aph/gcc/gcc/libjava/testsuite/libjava.0jar/simple.jar output - gij test
testcase /local/aph/gcc/gcc/libjava/testsuite/libjava.0jar/jar.exp completed in 1 seconds
R