dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【dragonwell17】rpm包运行runtime/cds/appcds/LambdaEagerInit.java用例失败:server下缺少classes.jsa #312

Closed owanqian closed 9 months ago

owanqian commented 9 months ago

x86: https://tone.aliyun-inc.com/ws/xesljfzh/test_result/250328

【环境准备】

BINARY_URL=https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/koji/20231120-141154-241-#9-linux.x86_64.release.fake_branch-java-17-alibaba-dragonwell-17.0.9.0.10.9.1.al8.jdk-rpm.tar.gz
TEST_IMAGE=oss://compiler-ci-bucket/dragonwell17/20231114-002504-781-#153-linux.x86_64.release.standard-effce46066d79b05140bee59cff5a8591bf9f1fe.test-image.tar.gz
git clone https://github.com/dragonwell-project/dragonwell17.git  jdk-repo
test=runtime/cds/appcds/LambdaEagerInit.java
jtreg -va -nr -w tmp $test

【对比测试】

dragonwell17 tar版本没有问题. wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/17.0.9.0.10%2B9/Alibaba_Dragonwell_Standard_17.0.9.0.10%2B9_x64_linux.tar.gz

[root@iZbp1hmgsldsm4l82drivdZ bin]# ./java -version; ./java -Xinternalversion
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment (Alibaba Dragonwell Standard Edition)-17.0.9.0.10+9-GA (build 17.0.9+9)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Standard Edition)-17.0.9.0.10+9-GA (build 17.0.9+9, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.9+9) for linux-amd64 JRE (17.0.9+9), built on Oct 17 2023 00:00:00 by "dragonwell" with gcc 7.5.0

temurin17 没有问题 wget https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.9_9.tar.gz

[root@iZbp1eqvwk9o1gtluk2ijpZ bin]# ./java -version; ./java -Xinternalversion
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.9+9) for linux-amd64 JRE (17.0.9+9), built on Oct 17 2023 00:00:00 by "admin" with gcc 10.3.0

【用例日志】

STDOUT:
STDERR:
/var/tmp/tone/run/jtreg/jdk-repo/test/lib/jdk/test/lib/process/ProcessTools.java:450: warning: [removal] AccessController in java.security has been deprecated and marked for removal
                AccessController.doPrivileged((PrivilegedExceptionAction<Void>) () -> {
                ^
/var/tmp/tone/run/jtreg/jdk-repo/test/lib/jdk/test/lib/process/ProcessTools.java:605: warning: [removal] AccessController in java.security has been deprecated and marked for removal
            return AccessController.doPrivileged(
                   ^
/var/tmp/tone/run/jtreg/jdk-repo/test/lib/jdk/test/lib/NetworkConfiguration.java:466: warning: [removal] AccessController in java.security has been deprecated and marked for removal
        AccessController.doPrivileged(pa);
        ^
3 warnings

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: '.class.load. java.util.stream.Collectors[$][$]Lambda[$].*/0x.*source:.*java.*util.*stream.*Collectors' missing from stdout/stderr
REASON: User specified action: run main/othervm LambdaEagerInit
TIME:   0.918 seconds
messages:
command: main LambdaEagerInit
reason: User specified action: run main/othervm LambdaEagerInit
Mode: othervm [/othervm specified]
elapsed time (seconds): 0.918
configuration:
STDOUT:
Command line: [/var/tmp/tone/run/jtreg/binary-download/usr/lib/jvm/java-17-alibaba-dragonwell-17.0.9.0.10.9-1.al8.x86_64/bin/java -cp /var/tmp/tone/run/jtreg/tmp/classes/runtime/cds/appcds/LambdaEagerInit.d:/var/tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/runtime/cds/appcds:/var/tmp/tone/run/jtreg/tmp/classes/test/lib:/var/tmp/tone/run/jtreg/jdk-repo/test/lib:/var/tmp/tone/run/jtreg/tmp/classes/test/hotspot/jtreg/runtime/cds/appcds:/var/tmp/tone/run/jtreg/tmp/classes/runtime/cds/appcds/test-classes:/var/tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/runtime/cds/appcds/test-classes:/var/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/var/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar -Xmixed -Djdk.internal.lambda.disableEagerInitialization=true -Xlog:class+load,cds -Xshare:dump -Xlog:cds,cds+hashtables -XX:SharedArchiveFile=LambdaEagerInitTest.jsa ]
[2023-11-27T08:33:40.913556956Z] Gathering output for process 355352
[ELAPSED: 621 ms]
[logging stdout to /var/tmp/tone/run/jtreg/tmp/scratch/runtime.cds.appcds.LambdaEagerInit.java-0000-dump.stdout]
[logging stderr to /var/tmp/tone/run/jtreg/tmp/scratch/runtime.cds.appcds.LambdaEagerInit.java-0000-dump.stderr]
[STDERR]

[2023-11-27T08:33:41.527391273Z] Waiting for completion for process 355352
[2023-11-27T08:33:41.527460820Z] Waiting for completion finished for process 355352
Command line: [/var/tmp/tone/run/jtreg/binary-download/usr/lib/jvm/java-17-alibaba-dragonwell-17.0.9.0.10.9-1.al8.x86_64/bin/java -cp /var/tmp/tone/run/jtreg/tmp/classes/runtime/cds/appcds/LambdaEagerInit.d:/var/tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/runtime/cds/appcds:/var/tmp/tone/run/jtreg/tmp/classes/test/lib:/var/tmp/tone/run/jtreg/jdk-repo/test/lib:/var/tmp/tone/run/jtreg/tmp/classes/test/hotspot/jtreg/runtime/cds/appcds:/var/tmp/tone/run/jtreg/tmp/classes/runtime/cds/appcds/test-classes:/var/tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/runtime/cds/appcds/test-classes:/var/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/var/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar -Xmixed -cp /var/tmp/tone/run/jtreg/tmp/scratch/lambda_eager.jar -Djdk.internal.lambda.disableEagerInitialization=true -Xlog:class+load,cds=debug -Xshare:on -Dtest.timeout.factor=1.0 -XX:SharedArchiveFile=LambdaEagerInitTest.jsa LambdaEagerInitTest ]
[2023-11-27T08:33:41.528533677Z] Gathering output for process 355371
[ELAPSED: 46 ms]
[logging stdout to /var/tmp/tone/run/jtreg/tmp/scratch/runtime.cds.appcds.LambdaEagerInit.java-0001-exec.stdout]
[logging stderr to /var/tmp/tone/run/jtreg/tmp/scratch/runtime.cds.appcds.LambdaEagerInit.java-0001-exec.stderr]
[STDERR]

[2023-11-27T08:33:41.579566662Z] Waiting for completion for process 355371
[2023-11-27T08:33:41.579686526Z] Waiting for completion finished for process 355371
Command line: [/var/tmp/tone/run/jtreg/binary-download/usr/lib/jvm/java-17-alibaba-dragonwell-17.0.9.0.10.9-1.al8.x86_64/bin/java -cp /var/tmp/tone/run/jtreg/tmp/classes/runtime/cds/appcds/LambdaEagerInit.d:/var/tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/runtime/cds/appcds:/var/tmp/tone/run/jtreg/tmp/classes/test/lib:/var/tmp/tone/run/jtreg/jdk-repo/test/lib:/var/tmp/tone/run/jtreg/tmp/classes/test/hotspot/jtreg/runtime/cds/appcds:/var/tmp/tone/run/jtreg/tmp/classes/runtime/cds/appcds/test-classes:/var/tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/runtime/cds/appcds/test-classes:/var/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/var/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar -Xmixed -cp /var/tmp/tone/run/jtreg/tmp/scratch/lambda_eager.jar -Xlog:class+load,cds=debug -Xshare:on -Dtest.timeout.factor=1.0 -XX:SharedArchiveFile=LambdaEagerInitTest.jsa LambdaEagerInitTest ]
[2023-11-27T08:33:41.580658719Z] Gathering output for process 355394
[ELAPSED: 45 ms]
[logging stdout to /var/tmp/tone/run/jtreg/tmp/scratch/runtime.cds.appcds.LambdaEagerInit.java-0002-exec.stdout]
[logging stderr to /var/tmp/tone/run/jtreg/tmp/scratch/runtime.cds.appcds.LambdaEagerInit.java-0002-exec.stderr]
[STDERR]

[2023-11-27T08:33:41.626581257Z] Waiting for completion for process 355394
[2023-11-27T08:33:41.626667809Z] Waiting for completion finished for process 355394
Command line: [/var/tmp/tone/run/jtreg/binary-download/usr/lib/jvm/java-17-alibaba-dragonwell-17.0.9.0.10.9-1.al8.x86_64/bin/java -cp /var/tmp/tone/run/jtreg/tmp/classes/runtime/cds/appcds/LambdaEagerInit.d:/var/tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/runtime/cds/appcds:/var/tmp/tone/run/jtreg/tmp/classes/test/lib:/var/tmp/tone/run/jtreg/jdk-repo/test/lib:/var/tmp/tone/run/jtreg/tmp/classes/test/hotspot/jtreg/runtime/cds/appcds:/var/tmp/tone/run/jtreg/tmp/classes/runtime/cds/appcds/test-classes:/var/tmp/tone/run/jtreg/jdk-repo/test/hotspot/jtreg/runtime/cds/appcds/test-classes:/var/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/var/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar -Xmixed -cp /var/tmp/tone/run/jtreg/tmp/scratch/lambda_eager.jar -Djdk.internal.lambda.disableEagerInitialization=true -Xlog:class+load,cds=debug -Xshare:on -Dtest.timeout.factor=1.0 LambdaEagerInitTest ]
[2023-11-27T08:33:41.627603859Z] Gathering output for process 355415
[ELAPSED: 9 ms]
[logging stdout to /var/tmp/tone/run/jtreg/tmp/scratch/runtime.cds.appcds.LambdaEagerInit.java-0003-exec.stdout]
[logging stderr to /var/tmp/tone/run/jtreg/tmp/scratch/runtime.cds.appcds.LambdaEagerInit.java-0003-exec.stderr]
[STDERR]
An error has occurred while processing the shared archive file.
Specified shared archive not found (/var/tmp/tone/run/jtreg/binary-download/usr/lib/jvm/java-17-alibaba-dragonwell-17.0.9.0.10.9-1.al8.x86_64/lib/server/classes.jsa).

[2023-11-27T08:33:41.635534690Z] Waiting for completion for process 355415
[2023-11-27T08:33:41.635594372Z] Waiting for completion finished for process 355415
STDERR:
 stdout: [[0.005s][info][cds] trying to map /var/tmp/tone/run/jtreg/binary-download/usr/lib/jvm/java-17-alibaba-dragonwell-17.0.9.0.10.9-1.al8.x86_64/lib/server/classes.jsa
Error occurred during initialization of VM
Unable to use shared archive.
];
 stderr: [An error has occurred while processing the shared archive file.
Specified shared archive not found (/var/tmp/tone/run/jtreg/binary-download/usr/lib/jvm/java-17-alibaba-dragonwell-17.0.9.0.10.9-1.al8.x86_64/lib/server/classes.jsa).
]
 exitValue = 1

java.lang.RuntimeException: '.class.load. java.util.stream.Collectors[$][$]Lambda[$].*/0x.*source:.*java.*util.*stream.*Collectors' missing from stdout/stderr

        at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
        at LambdaEagerInit.testDefaultArchiveWithEagerInitializationEnabled(LambdaEagerInit.java:117)
        at LambdaEagerInit.main(LambdaEagerInit.java:56)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:840)

JavaTest Message: Test threw exception: java.lang.RuntimeException: '.class.load. java.util.stream.Collectors[$][$]Lambda[$].*/0x.*source:.*java.*util.*stream.*Collectors' missing from stdout/stderr

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: '.class.load. java.util.stream.Collectors[$][$]Lambda[$].*/0x.*source:.*java.*util.*stream.*Collectors' missing from stdout/stderr

【版本信息】

[root@iZbp1duxhgh4vnps9soe0aZ jtreg]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25;java -version; java -Xinternalversion
Linux iZbp1duxhgh4vnps9soe0aZ 5.10.134-15.al8.x86_64 #1 SMP Thu Jul 20 00:44:04 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

              total        used        free      shared  buff/cache   available
Mem:           61Gi       551Mi        56Gi       3.0Mi       4.3Gi        60Gi
Swap:            0B          0B          0B
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              16
On-line CPU(s) list: 0-15
Thread(s) per core:  2
Core(s) per socket:  8
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Alibaba Cloud
CPU family:          6
Model:               143
Model name:          Intel(R) Xeon(R) Platinum 8475B
BIOS Model name:     pc-i440fx-2.1
Stepping:            8
CPU MHz:             3199.818
CPU max MHz:         3800.0000
CPU min MHz:         800.0000
BogoMIPS:            5400.00
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           48K
L1i cache:           32K
L2 cache:            2048K
openjdk version "17.0.9.9" 2023-11-17
OpenJDK Runtime Environment (Alibaba Dragonwell) (build 17.0.9.9+9)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell) (build 17.0.9.9+9, mixed mode)
OpenJDK 64-Bit Server VM (17.0.9.9+9) for linux-amd64 JRE (17.0.9.9+9), built on Nov 17 2023 03:05:05 by "mockbuild" with gcc 10.2.1 20200825 (Alibaba 10.2.1-3.5 2.32)
owanqian commented 9 months ago

https://github.com/dragonwell-releng/dragonwell-adoptium/issues/277 重复问题. 关闭