-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
mantis
-
x86
-
other
-
Verified
Name: aaR10208 Date: 11/07/2002
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b05
Testbase : Regression CTE
Platform[s] : Solaris x86
Falling test[s]: CTE_REGTEST/Generic/4657650/Test4657650.sh
RegTest CTE_REGTEST/Generic/4657650/Test4657650.sh test does not check anything on Solaris x86.
The test contains the .tar.Z file with a two native libraries needed for the test - one for
Linux platform and one for Solaris sparc platform.
The problem is that the test does not recognize Solx86 platform properly, and tries to use sparc
library for x86 box.
At the same time, the test makes assumption that only "FATAL ERROR" string in the java output
signals the error.
This causes the test to "pass" even if java is failed to start or is crashed while running.
Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/CTE_REGTEST/Generic/4657650/Test4657650.sh
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
uname -a
echo "-----"
#TESTJAVA="/net/linux-15/export/home/java/jdk1.4.2/x86"
TESTJAVA="/net/jdk/export/disk8/local.java/jdk1.4.2/solaris-i586"
#TEST_BASE="/net/linux-15/export/home/java/regtest/cte"
TEST_BASE="/net/jdk/export/jpse04/Regression/1.4.2"
export TESTJAVA
TESTCLASSES=.
export TESTCLASSES
TESTSRC=/net/jdk/export/jpse04/Regression/1.4.2/CTE_REGTEST/Generic/4657650
export TESTSRC
sh $TEST_BASE/CTE_REGTEST/Generic/4657650/Test4657650.sh
echo "-----"
echo "Test finished with a retCode=$?"
echo "--- test.out ---"
cat ./test.out
echo "--- ldd output ---"
ldd ./SunOS/libthreadstart002.so
--- script end ---
Test output:
============
SunOS linux-10 5.8 Generic_108529-16 i86pc i386 i86pc
-----
x SunOS, 0 bytes, 0 tape blocks
x SunOS/libthreadstart002.so, 24428 bytes, 48 tape blocks
x Linux, 0 bytes, 0 tape blocks
x Linux/libthreadstart002.so, 15824 bytes, 31 tape blocks
java full version "1.4.2-beta-b05"
Test Passed
-----
Test finished with a retCode=0
--- test.out ---
Error occurred during initialization of VM
Could not find -Xrun library: libthreadstart002.so
--- ldd output ---
ldd: ./SunOS/libthreadstart002.so: has wrong class or data encoding
=============
and the same script's output for jdk 1.4.1-b21 on RH Linux box.
Note that the java crashes but the test output says "Test passed".
=============
Linux linux-14 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown
-----
SunOS/
SunOS/libthreadstart002.so
Linux/
Linux/libthreadstart002.so
java full version "1.4.1-b21"
Test Passed
-----
Test finished with a retCode=0
--- test.out ---
# Waiting time = 2 mins
Unexpected Signal : 11 occurred at PC=0x402433C5
Function=(null)+0x402433C5
Library=/.automount/linux-15/root/export/home/java/jdk1.4.1/linux/jre/lib/i386/client/libjvm.so
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
Dynamic libraries:
08048000-0804e000 r-xp 00000000 00:0f 7480661 /.automount/linux-15/root/export/home/java/jdk1.4.1/linux/bin/java
<... skip the rest of libraries list ...>
Local Time = Thu Nov 7 11:50:49 2002
Elapsed Time = 2
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002E6
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1-b21 mixed mode)
#
# An error report file has been saved as hs_err_pid13401.log.
# Please refer to the file for further information.
#
(SuspendThread#2) unexpected error: JVMDI_ERROR_INVALID_THREAD (10)
(ResumeThread#2) unexpected error: JVMDI_ERROR_INVALID_THREAD (10)
(GetThreadStatus#2) unexpected error: JVMDI_ERROR_INVALID_THREAD (10)
--- ldd output ---
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
=============
Specific machine info:
======================
Hostname: linux-10
OS: SunOS linux-10 5.8 Generic_108529-16 i86pc i386 i86pc
Hostname: linux-14
OS: RH Linux 7.3
======================================================================