JDK-4731363 : JCK tests failed with exit code 128
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2002-08-14
  • Updated: 2002-08-14
  • Resolved: 2002-08-14
Related Reports
Duplicate :  
Description

Name: ipR10067			Date: 08/14/2002



JDK 1.4.1 Java machine returns unexpected exit code 128
when running JCK-1.4a new tests
vm/instr/iload_w/iload_w003/iload_w00310m1/iload_w00310m1.html
vm/instr/lload_w/lload_w003/lload_w00310m1/lload_w00310m1.html
vm/instr/lstore_w/lstore_w005/lstore_w00510m1/lstore_w00510m1.html
lang/CLSS/clss015/clss01507m1/clss01507m1.html
lang/CLSS/clss212/clss21201m1/clss21201m1.html
under Windows NT/XP.

Also tests
vm/instr/istore_w/istore_w005/istore_w00510m1/istore_w00510m1.html
vm/instr/ret_w/ret_w002/ret_w00210m1/ret_w00210m1.html
failed with runtime java.lang.StackOverflowError.

The VM options -Xss, -Xmx and -Xms with various values 
don't change the result.

To reproduce this bug run repro.bat file
--------------------------- repro.bat ------------------------------------
set JAVA=G:\java\re\jdk\1.4.1\promoted\rc\b18\binaries\windows-i586\bin\java.exe
set CLASSPATH=G:\java\re\jck\1.4a\nightly\binaries\latest\JCK-runtime-14a\classes

%JAVA% -Xfuture -version
%JAVA% -Xfuture javasoft.sqe.tests.vm.instr.iload_w.iload_w003.iload_w00310m1.iload_w00310m1
echo %errorlevel%
%JAVA% -Xfuture javasoft.sqe.tests.vm.instr.istore_w.istore_w005.istore_w00510m1.istore_w00510m1
echo %errorlevel%

-------------------------- log ------------------------------------------

java version "1.4.1-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b18)
Java HotSpot(TM) Client VM (build 1.4.1-rc-b18, mixed mode)
128
Failed with runtime exception: java.lang.StackOverflowError
97

--------------------------------------------------
The hardware configurations used are dual-processor Pentium II 350MHz, 512Mb (Win NT)
and Pentium 4, 2GHz, 512Mb (Win XP).

The same result is observed for JDK1.4.0 and 1.4.2.


======================================================================

Comments
WORK AROUND editbin /stack:400000 java.exe to increase the amount of stack used for the threads in java.exe.
11-06-2004

EVALUATION Same error occurs with JDK 1.4.0 upto JDK 1.4.2 release. I would say this is not a showstopper for hopper based on the findings. Thes are also new tests for Mantis release. JDK 1.4a I thought was for JDK 1.4.2 mantis ###@###.### 2002-08-14 I've been able to reproduce the problems on a win2k system (doit.bat as attached). There might be more than one issue here. The stack overflow errors which aren't fixed with -Xss might be a duplicate of bug 4689767 main stack size not the same as other threads on all platforms If other problems are identified as a result of these tests, separate bugs will be filed. ###@###.### 2002-08-14 ###@###.### pointed me to the editbin utility. Bumping the stack size of java.exe caused the stack overflow to go away, leading me to believe this is a case where the primordial thread's stack is too small (and it cannot be adjusted by -Xss). This bug is a duplicate of 4689767 main stack size not the same as other threads on all platforms ###@###.### 2002-08-14
14-08-2002