[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[DejaGnu] Problems killing running tests
From: |
Billinghurst, David (CRTS) |
Subject: |
[DejaGnu] Problems killing running tests |
Date: |
Thu, 9 May 2002 09:11:55 +1000 |
Version: dejagnu-1.4.2
Platform: cygwin-1.3.10 on win2k
I have a problem with the gcc libjava testsuite on cygwin.
A number of execution tests get stuck in infinite loops, but
when dejagnu tries to kill them after 300 second, it dies.
The failure occurs while trying to exec the code
# This is very, very nasty. Then again, if after did something
# reasonable...
set pgid "-[join $pid { -}]";
exec sh -c "exec > /dev/null 2>&1 && (kill -2 $pgid || kill -2
$pid) && sleep 5 && (kill $pgid || kill $pid) && sleep 5 && (kill -9 $pgid ||
kill -9 $pid)" &;
in procedure standard_close in remote.exp. The error messages
are below.
While trying to understand what was happening, I found that
executing "exec > /dev/null 2>&1" at a bash prompt with
both bash-2.04+irix6.5 or bash-2.05+cygwin the shell locks up.
Test Run By Administrator on Thu May 9 00:21:15 2002
Native configuration is i686-pc-cygwin
=== 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 /usr/local/src/gcc/libjava/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /usr/local/src/gcc/libjava/testsuite/libjava.lang2/lang.exp ...
Executing on host:
/usr/local/obj/gcc-java/i686-pc-cygwin/libjava/testsuite/../libtool --silent
--tag=GCJ --mode=link /usr/local/obj/gcc-java/gcc/gcj
-B/usr/local/obj/gcc-java/gcc/ --encoding=UTF-8
-B/usr/local/obj/gcc-java/i686-pc-cygwin//libjava/
/usr/local/src/gcc/libjava/testsuite/libjava.lang2/Array_3.java
--main=Array_3 -g -L/usr/local/obj/gcc-java/i686-pc-cygwin//libjava/.libs
-L/usr/local/obj/gcc-java/i686-pc-cygwin//boehm-gc/.libs -o
/usr/local/obj/gcc-java/i686-pc-cygwin/libjava/testsuite/Array_3.exe
(timeout = 20)
spawn /usr/local/obj/gcc-java/i686-pc-cygwin/libjava/testsuite/../libtool
--silent --tag=GCJ --mode=link /usr/local/obj/gcc-java/gcc/gcj
-B/usr/local/obj/gcc-java/gcc/ --encoding=UTF-8
-B/usr/local/obj/gcc-java/i686-pc-cygwin//libjava/
/usr/local/src/gcc/libjava/testsuite/libjava.lang2/Array_3.java --main=Array_3
-g -L/usr/local/obj/gcc-java/i686-pc-cygwin//libjava/.libs
-L/usr/local/obj/gcc-java/i686-pc-cygwin//boehm-gc/.libs -o
/usr/local/obj/gcc-java/i686-pc-cygwin/libjava/testsuite/Array_3.exe
PASS: Array_3 compilation from source
spawn [open ...]
WARNING: program timed out.
ERROR: tcl error sourcing
/usr/local/src/gcc/libjava/testsuite/libjava.lang2/lang.exp.
ERROR: forked process couldn't set up input/output: bad file number
while executing
"exec sh -c "(kill -2 $pgid || kill -2 $pid) && sleep 5 && (kill $pgid || kill
$pid) && sleep 5 && (kill -9 $pgid || kill -9 $pid)" &"
(procedure "standard_close" line 27)
invoked from within
"standard_close "unix""
("eval" body line 1)
invoked from within
"eval ${try}_${proc} \"$dest\" $args"
(procedure "call_remote" line 33)
invoked from within
"call_remote "" close "$host""
(procedure "remote_close" line 3)
invoked from within
"remote_close $dest"
(procedure "standard_wait" line 55)
invoked from within
"standard_wait "unix" 300"
("eval" body line 1)
invoked from within
"eval ${try}_${proc} \"$dest\" $args"
(procedure "call_remote" line 57)
invoked from within
"call_remote "" wait "unix" 300"
("eval" body line 1)
invoked from within
"eval call_remote \"\" wait \"$dest\" $timeout"
(procedure "remote_wait" line 2)
invoked from within
"remote_wait $dest 300"
(procedure "unix_load" line 41)
invoked from within
"unix_load "unix"
/usr/local/obj/gcc-java/i686-pc-cygwin/libjava/testsuite/Array_3.exe {} {}"
("eval" body line 1)
invoked from within
"eval ${try}_${proc} \"$dest\" $args"
(procedure "call_remote" line 57)
invoked from within
"call_remote "" load "unix"
"/usr/local/obj/gcc-java/i686-pc-cygwin/libjava/testsuite/Array_3.exe" {} {}"
("eval" body line 1)
invoked from within
"eval call_remote \"\" load \"$dname\" \"$prog\" $args"
(procedure "remote_load" line 67)
invoked from within
"remote_load target $program $program_args $input_file"
(procedure "libjava_load" line 13)
invoked from within
"libjava_load $executable "" "$inpfile""
(procedure "test_libjava_from_source" line 108)
invoked from within
"test_libjava_from_source $options $srcfile $compile_args $inpfile $resultfile
$exec_args"
(procedure "test_libjava" line 2)
invoked from within
"test_libjava $options "${prefix}.java" "" $inpfile $resfile $args"
("foreach" body line 23)
invoked from within
"foreach x $srcfiles {
regsub "\\.out$" $x "" prefix
set bname [file tail $prefix]
if [file exists $srcdir/$subdir/${bname}.xpo] {
set re..."
(file "/usr/local/src/gcc/libjava/testsuite/libjava.lang2/lang.exp" line 7)
invoked from within
"source /usr/local/src/gcc/libjava/testsuite/libjava.lang2/lang.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source /usr/local/src/gcc/libjava/testsuite/libjava.lang2/lang.exp"
invoked from within
"catch "uplevel #0 source $test_file_name""
testcase /usr/local/src/gcc/libjava/testsuite/libjava.lang2/lang.exp completed
in 306 seconds
=== libjava Summary ===
# of expected passes 1
runtest completed at Thu May 9 00:26:21 2002
- [DejaGnu] Problems killing running tests,
Billinghurst, David (CRTS) <=