hotspot_tier1_runtime CDS tests fail on Windows
- Dominant language
- HTML
- Stars
- 155
- Forks
- 346
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
Ref: https://github.com/adoptium/ci-jenkins-pipelines/issues/1104#issuecomment-2393086371
jdk11u Windows_x86:
TEST: runtime/CDSCompressedKPtrs/XShareAuto.java (https://ci.adoptium.net/job/Grinder/11104/)
```
21:17:44 stdout: [[0.026s][info][cds] _jvm_ident expected: OpenJDK Client VM (11.0.25-beta+8-202410071436) for windows-x86 JRE (11.0.25-beta+8-202410071436), built on Oct 7 2024 15:00:43 by "" with MS VC++ 17.7 (VS2022)
21:17:44 [0.026s][info][cds] actual: OpenJDK Server VM (11.0.25-beta+8-202410071436) for windows-x86 JRE (11.0.25-beta+8-202410071436), built on Oct 7 2024 15:02:05 by "" with MS VC++ 17.7 (VS2022)
21:17:44 [0.026s][info][cds] UseSharedSpaces: The shared archive file was created by a different version or build of HotSpot
```
jdk17u Windows_x86:
TEST: runtime/cds/TestCDSVMCrash.java (https://ci.adoptium.net/job/Grinder/11129/)
```
09:49:59 java.lang.Error: Expected VM to crash
09:49:59 at TestCDSVMCrash.main(TestCDSVMCrash.java:58)
09:49:59 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:49:59 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
09:49:59 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:49:59 at java.base/java.lang.reflect.Method.invoke(Method.java:569)
09:49:59 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
09:49:59 at java.base/java.lang.Thread.run(Thread.java:840)
09:49:59
09:49:59 JavaTest Message: Test threw exception: java.lang.Error
```
jdk21u Windows_aarch64:
TEST: runtime/cds/TestCDSVMCrash.java (https://ci.adoptium.net/job/Grinder/11131/consoleFull)
TEST: runtime/ErrorHandling/UncaughtNativeExceptionTest.java (https://ci.adoptium.net/job/Grinder/11131/consoleFull)
```
09:50:59 java.lang.Error: Expected VM to crash
09:50:59 at TestCDSVMCrash.main(TestCDSVMCrash.java:59)
09:50:59 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
09:50:59 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
09:50:59 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
09:50:59 at java.base/java.lang.Thread.run(Thread.java:1583)
```
TEST: runtime/cds/CheckDefaultArchiveFile.java (https://ci.adoptium.net/job/Grinder/11131/consoleFull)
```
09:54:16 java.lang.RuntimeException: OpenJDK 64-Bit Server VM(aarch64)has no C:\Users\jenkins\workspace\Grinder\jdkbinary\j2sdk-image\bin\server\classes_nocoops.jsa
09:54:16 at CheckDefaultArchiveFile.main(CheckDefaultArchiveFile.java:62)
```
jdk23u Windows_aarch64:
TEST: runtime/cds/CheckDefaultArchiveFile.java
TEST: runtime/cds/TestCDSVMCrash.java
TEST: runtime/ErrorHandling/MachCodeFramesInErrorFile.java
TEST: runtime/ErrorHandling/UncaughtNativeExceptionTest.java
TEST: runtime/memory/ReadFromNoaccessArea.java
TEST: runtime/jni/nativeStack/TestNativeStack.java
(https://ci.adoptium.net/job/Grinder/11117/)
Contributor guide
Research direction
Start by running the listed Windows tests from the Grinder jobs, especially runtime/cds/TestCDSVMCrash.java, runtime/cds/CheckDefaultArchiveFile.java, and the runtime/ErrorHandling and runtime/memory tests. Compare the failures across jdk11u, jdk17u, jdk21u, and jdk23u; done means the reported Windows failures no longer occur and the affected tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- operating-systems, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100