dragonwell-releng / issues-repo

0 stars 0 forks source link

【还没有完善】[ajdk11][11.0.21.21]UseJadeGC选项下vmTestbase/nsk/jdi/ReferenceType/instances/instances003/instances003.java报错 #2

Closed owanqian closed 10 months ago

owanqian commented 10 months ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/272583 【环境准备】

BINARY_URL=http://114.55.64.175:8666//ajdk-backup/11.0.21.21-test-ajdk_ga/OpenJDK11U-jdk_x64_linux_ajdk_2024-01-24-06-38.tar.gz
TEST_IMAGE=http://114.55.64.175:8666//ajdk-backup/11.0.21.21-test-ajdk_ga/OpenJDK11U-testimage_x64_linux_ajdk_2024-01-24-06-38.tar.gz
JDK_REPO=https://codeup.aliyun.com/5f4e0dfe6207a1a8b17fa7cf/compiler-test/jdk11.git
JDK_BRANCH=ajdk_ga-11.0.21.21

wget -O  binary.tar.gz $BINARY_URL
mkdir binary-download 
tar xzvf binary.tar.gz -C binary-download
cd binary-download && export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME && cd -
wget -O test-image.tar.gz $TEST_IMAGE
make test-image
tar xzvf test-image.tar.gz -C test-image
wget -O jtreg.zip http://114.55.64.175:8666/compiler-ci-bucket/tools/jtreg-6.1.1.zip
unzip jtreg.zip
cd jtreg 
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
cd -
git clone -b $JDK_BRANCH $JDK_REPO jdk-repo

test=vmTestbase/nsk/jdi/ReferenceType/instances/instances003/instances003.java
args="-XX:+UseJadeGC"
native='-nativepath:./test-image/hotspot/jtreg/native'

jtreg -w jt-work -nr -v:fail,error  $native $args $test

【对比测试】

a11 release 同样问题

http://114.55.64.175:8666/ajdk-backup/11.0.20.20/OpenJDK11U-jdk_x64_linux_ajdk_2023-10-11-02-37.tar.gz

[root@VM20190228-137 bin]# ./java -version ; ./java -Xinternalversion
openjdk version "11.0.20.20-AJDK" 2023-10-11
OpenJDK Runtime Environment (Alibaba AJDK) (build 11.0.20.20-AJDK+8-Alibaba)
OpenJDK 64-Bit Server VM (Alibaba AJDK) (build 11.0.20.20-AJDK+8-Alibaba, mixed mode)
OpenJDK 64-Bit Server VM (11.0.20.20-AJDK+8-Alibaba) for linux-amd64 JRE (11.0.20.20-AJDK+8-Alibaba), built on Oct 11 2023 02:42:24 by "" with gcc 7.3.1 20180303 (Red Hat 7.3.1-5)

【用例日志】

STDERR:
Note: /tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/vmTestbase/nsk/share/ObjectInstancesManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build PropertyResolvingWrapper
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Failed. Execution failed: Execution failed
REASON: User specified action: run main/othervm/native PropertyResolvingWrapper nsk.jdi.ReferenceType.instances.instances003.instances003 -verbose -arch=${os.family}-${os.simpleArch} -waittime=5 -debugee.vmkind=java -transport.address=dynamic "-debugee.vmkeys=-Xmx128M ${test.vm.opts} ${test.java.opts}" -testClassNames nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader:java.lang.String:java.lang.Thread 
TIME:   1.375 seconds
messages:
command: main PropertyResolvingWrapper nsk.jdi.ReferenceType.instances.instances003.instances003 -verbose -arch=${os.family}-${os.simpleArch} -waittime=5 -debugee.vmkind=java -transport.address=dynamic "-debugee.vmkeys=-Xmx128M ${test.vm.opts} ${test.java.opts}" -testClassNames nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader:java.lang.String:java.lang.Thread
reason: User specified action: run main/othervm/native PropertyResolvingWrapper nsk.jdi.ReferenceType.instances.instances003.instances003 -verbose -arch=${os.family}-${os.simpleArch} -waittime=5 -debugee.vmkind=java -transport.address=dynamic "-debugee.vmkeys=-Xmx128M ${test.vm.opts} ${test.java.opts}" -testClassNames nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader:java.lang.String:java.lang.Thread 
Mode: othervm [/othervm specified]
elapsed time (seconds): 1.375
configuration:
STDOUT:
run [nsk.jdi.ReferenceType.instances.instances003.instances003, -verbose, -arch=linux-x64, -waittime=5, -debugee.vmkind=java, -transport.address=dynamic, -debugee.vmkeys=-Xmx128M -Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -XX:+UseJadeGC -ea -esa , -testClassNames, nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader:java.lang.String:java.lang.Thread]
binder> VirtualMachineManager: version 11.0
binder> Finding connector: default
binder> LaunchingConnector:
binder>     name: com.sun.jdi.CommandLineLaunch
binder>     description: Launches target using Sun Java VM command line and attaches to it
binder>     transport: com.sun.tools.jdi.SunCommandLineLauncher$2@957902d
binder> Connector arguments:
binder>     home=/tmp/tone/run/jtreg/binary-download/jdk-11.0.20.20+0
binder>     vmexec=java
binder>     options=-Xmx128M -Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -XX:+UseJadeGC -ea -esa
binder>     main=nsk.share.jdi.HeapwalkingDebuggee "-verbose" "-arch=linux-x64" "-waittime=5" "-debugee.vmkind=java" "-transport.address=dynamic" "-debugee.vmkeys=-Xmx128M -Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -XX:+UseJadeGC -ea -esa " "-pipe.port=45415"
binder>     quote="
binder>     suspend=true
binder> Launching debugee
binder> Waiting for VM initialized
Initial VMStartEvent received: VMStartEvent in thread main
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: createInstances:nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader:50:1:WEAK|STRONG
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: deleteReferrers:nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader:1:STRONG
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: deleteInstances:nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader:50
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: forceGC
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: forceGC
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: createInstances:java.lang.String:50:1:WEAK|STRONG
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: deleteReferrers:java.lang.String:1:STRONG
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: deleteInstances:java.lang.String:50
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: forceGC
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: forceGC
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: createInstances:java.lang.Thread:50:1:WEAK|STRONG
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: deleteReferrers:java.lang.Thread:1:STRONG
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: deleteInstances:java.lang.Thread:50
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: forceGC
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: forceGC
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
debugee.stderr> Debuggee: received the command: createInstances:nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader:50:1:PHANTOM
debugee.stderr> Debuggee nsk.share.jdi.HeapwalkingDebuggee : sending the command: ready
# ERROR: Wrong value was returned  by VirtualMachine.instanceCounts(nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader): 13, expected: 50
The following stacktrace is for failure analysis.
nsk.share.TestFailure: Wrong value was returned  by VirtualMachine.instanceCounts(nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader): 13, expected: 50
    at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:428)
    at nsk.share.Log.complain(Log.java:399)
    at nsk.share.jdi.HeapwalkingDebugger.checkDebugeeAnswer_instanceCounts(HeapwalkingDebugger.java:101)
    at nsk.share.jdi.HeapwalkingDebugger.checkDebugeeAnswer_instanceCounts(HeapwalkingDebugger.java:132)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.testClass(instances003.java:135)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.doTest(instances003.java:183)
    at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:214)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.run(instances003.java:108)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.main(instances003.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.base/java.lang.Thread.run(Thread.java:991)
# ERROR: Unexpected size of referenceType.instances(nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader): 13, expected: 50
The following stacktrace is for failure analysis.
nsk.share.TestFailure: Unexpected size of referenceType.instances(nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader): 13, expected: 50
    at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:428)
    at nsk.share.Log.complain(Log.java:399)
    at nsk.share.jdi.HeapwalkingDebugger.checkDebugeeAnswer_instances(HeapwalkingDebugger.java:79)
    at nsk.share.jdi.HeapwalkingDebugger.checkDebugeeAnswer_instanceCounts(HeapwalkingDebugger.java:133)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.testClass(instances003.java:135)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.doTest(instances003.java:183)
    at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:214)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.run(instances003.java:108)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.main(instances003.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.base/java.lang.Thread.run(Thread.java:991)
# ERROR: Too few new instances(nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader). Expected >= 50, found 13
# ERROR: Unexpected exception: java.lang.IndexOutOfBoundsException: Index 13 out of bounds for length 13
The following stacktrace is for failure analysis.
nsk.share.TestFailure: Unexpected exception: java.lang.IndexOutOfBoundsException: Index 13 out of bounds for length 13
    at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:428)
    at nsk.share.Log.complain(Log.java:399)
    at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:221)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.run(instances003.java:108)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.main(instances003.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.base/java.lang.Thread.run(Thread.java:991)
java.lang.IndexOutOfBoundsException: Index 13 out of bounds for length 13
    at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
    at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
    at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
    at java.base/java.util.Objects.checkIndex(Objects.java:372)
    at java.base/java.util.ArrayList.get(ArrayList.java:459)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.testClass(instances003.java:157)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.doTest(instances003.java:183)
    at nsk.share.jdi.TestDebuggerType2.runIt(TestDebuggerType2.java:214)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.run(instances003.java:108)
    at nsk.jdi.ReferenceType.instances.instances003.instances003.main(instances003.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at PropertyResolvingWrapper.main(PropertyResolvingWrapper.java:104)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.base/java.lang.Thread.run(Thread.java:991)
debugee.stderr> Debuggee: received the command: quit
debugee.stderr> Debuggee: exiting
Debuggee's process finished with status: 95
TEST FAILED

#>  
#>  SUMMARY: Following errors occured
#>      during test execution:
#>  
# ERROR: Wrong value was returned  by VirtualMachine.instanceCounts(nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader): 13, expected: 50
# ERROR: Unexpected size of referenceType.instances(nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader): 13, expected: 50
# ERROR: Too few new instances(nsk.jdi.ReferenceType.instances.instances003.instances003$TestClassLoader). Expected >= 50, found 13
# ERROR: Unexpected exception: java.lang.IndexOutOfBoundsException: Index 13 out of bounds for length 13
STDERR:

【版本信息】

[root@iZbp1e1wxoqvxdec7os5n9Z jdk-11.0.20.20+0]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25;java -version; java -Xinternalversion
Linux iZbp1e1wxoqvxdec7os5n9Z 5.10.134-15.an8.aarch64 #1 SMP Thu Jul 20 00:33:45 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
NAME="Anolis OS"
VERSION="8.8"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.8"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.8"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

              total        used        free      shared  buff/cache   available
Mem:           61Gi       843Mi        46Gi       0.0Ki        13Gi        59Gi
Swap:            0B          0B          0B
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  1
Core(s) per socket:  32
Socket(s):           1
NUMA node(s):        1
Vendor ID:           ARM
BIOS Vendor ID:      Alibaba Cloud
Model:               0
Model name:          Neoverse-N2
BIOS Model name:     virt-rhel7.6.0
Stepping:            r0p0
CPU MHz:             3000.000
CPU max MHz:         3000.0000
CPU min MHz:         3000.0000
BogoMIPS:            100.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            65536K
NUMA node0 CPU(s):   0-31
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh
openjdk version "11.0.20.20-AJDK" 2023-10-11
OpenJDK Runtime Environment (Alibaba AJDK) (build 11.0.20.20-AJDK+0-Alibaba)
OpenJDK 64-Bit Server VM (Alibaba AJDK) (build 11.0.20.20-AJDK+0-Alibaba, mixed mode)
OpenJDK 64-Bit Server VM (11.0.20.20-AJDK+0-Alibaba) for linux-aarch64 JRE (11.0.20.20-AJDK+0-Alibaba), built on Oct 11 2023 02:42:11 by "" with gcc 7.3.1 20180303 (Red Hat 7.3.1-5)