JDK-4932795 : TEST_BUG: Regression-cte CTE_REGTEST/Generic/4804447/ZeroLengthArray.java fails
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux
  • CPU: generic,x86
  • Submitted: 2003-10-06
  • Updated: 2005-11-14
  • Resolved: 2003-10-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description

Name: mmR10223			Date: 10/06/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b22, (passes with JDK1.4.2-b28)
Testbase       : Regression-cte
Platform[s]    : Solaris, Linux
switch/Mode    : default
Falling test[s]: CTE_REGTEST/Generic/4804447/ZeroLengthArray.java 

Regression-cte CTE_REGTEST/Generic/4804447/ZeroLengthArray.java test fails with JDK1.5.0-b22
because of changing of system error message format about number of a signal in a hotspot log file  :


$ cat -n Test4804447.sh 
    ...
    85	LD_LIBRARY_PATH=.${PS}${LD_LIBRARY_PATH}
    86	
    87	${TESTJAVA}${FS}bin${FS}java_g ${BIT_FLAG} ZeroLengthArray > test.out 2>&1
    88	
    89	rm -f core
    90	
    91	grep "Unexpected Signal : 11" test.out
    92	
    93	exit $?

-----------

This hotspot log file which is generated with JDK1.5.0-b22:

$cat hs_err_pid****.log

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xfd4e0550, pid=2774, tid=1
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-beta-b22-debug mixed mode)
# Problematic frame:
# C  [libzla.so+0x550]  Java_ZeroLengthArray_testme+0x54
#

---------------  T H R E A D  ---------------

Current thread (0x00046a90):  JavaThread "main" [_thread_in_native, id=1]

siginfo:si_signo=11, si_errno=0, si_code=2, si_addr=0xfd7a0000
^^^^^^^^^^^^^^^^^^^^^^^

Registers:
 O0=0xfd7a0000 O1=0x00000063 O2=0xff2c3a44 O3=0xff2bfc68
 O4=0xffbeeb9c O5=0x00000001 O6=0xffbeec00 O7=0xfd4e0540
.....


This hotspot log file which is generated with JDK1.4.2-b28:

$ cat hs_err_pid2798.log 

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xFD6C0550
^^^^^^^^^^^^^^^^^^^^^^^^
Function=Java_ZeroLengthArray_testme+0x54
Library=/net/linux-15/export/home/store/users/mmv/tiger/b22/workDir/test/scratch/libzla.so

Current Java thread:
	at ZeroLengthArray.testme(Native Method)
	at ZeroLengthArray.main(ZeroLengthArray.java:15)

Dynamic libraries:
0x10000 	/net/linux-15/export/home/java/jdk1.4.2/sparc/bin/java_g
0xff350000 	/usr/lib/libthread.so.1
.....



Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.5.0/test/CTE_REGTEST/Generic/4804447/ZeroLengthArray.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b22/regtest/sparc/sol9_sparc_gnome_novo48/workDir/cte/CTE_REGTEST/Generic/4804447/ZeroLengthArray.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables)
 
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir

#KOORI_ONESTOP is your path to koori.sfbay/onestop (/net/koori/onestop, /java/re)
KOORI_ONESTOP="/java/re"
#JPSE04 is your path to /net/jdk/export/jpse04
JPSE04="/net/jdk/export/jpse04"

#JT_HOME="/net/linux-15/export/home/java/jct"
JT_HOME="$KOORI_ONESTOP/jct-tools/3.1.2/archive/fcs/binaries"
#JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
JEMMY_JAR="$JPSE04/Jemmy/jemmy.jar"
#JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/sparc"
JAVA_HOME="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b22/binaries/solaris-sparc"

#TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/cte"
TEST_BASE_PATH="$JPSE04/Regression/1.5.0/test"		


TESTVMOPTS="-client"
CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

TEST="CTE_REGTEST/Generic/4804447/ZeroLengthArray.java"

mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1

#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

cd $WORK_DIR/scratch

$JAVA_HOME/bin/java -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="novo48" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"

--- script end ---




Script output:
==============

Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:compile
----------messages:(3/211)----------
command: compile /net/linux-15/export/home/java/regtest.tiger/cte/CTE_REGTEST/Generic/4804447/ZeroLengthArray.java 
reason: User specified action: run compile ZeroLengthArray.java 
elapsed time (seconds): 2.668
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:shell
----------messages:(3/119)----------
command: shell Test4804447.sh 
reason: User specified action: run shell Test4804447.sh 
elapsed time (seconds): 15.205
----------System.out:(5/140)----------
 inflated: libzla.so-Linux
 inflated: libzla.so-Linux-64
 inflated: libzla.so-i386
 inflated: libzla.so-sparc
 inflated: libzla.so-sparc-64
----------System.err:(2/55)----------
java full version "1.5.0-beta-b22"
Abort - core dumped
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1


Specific machine info:
======================
Hostname: linux-6
OS: Solaris 9 (x86) (CDE)
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)
Hostname: linux-24
OS: Linux RedHat

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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger VERIFIED IN: tiger-beta
14-06-2004

SUGGESTED FIX Test4804447.sh 91c83 < grep "SIGSEGV" test.out --- > grep "Unexpected Signal : 11" test.out
11-06-2004

EVALUATION As output from tiger builds is diff than 1.4.2, search string has been changed to 'SIGSEGV' to determine pass/fail. ###@###.### 2003-10-06
06-10-2003