JDK-8277352 : runtime/cds/appcds/customLoader/HelloCustom_JFR.java fails with exitValue = -1073741819
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 18
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86_64
  • Submitted: 2021-11-17
  • Updated: 2025-01-20
  • Resolved: 2025-01-17
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.
JDK 20
20Resolved
Related Reports
Duplicate :  
Description
The following test failed in the JDK18 CI:

runtime/cds/appcds/customLoader/HelloCustom_JFR.java

Here's a snippet from the log file:

Refcount of symbol HelloClassLoader is 65535
[3.926s][debug][cds,jvmti  ] classfile data for java/io/RandomAccessFile$1 [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 736 bytes
Is CustomLoadee alive? false
Refcount of symbol HelloClassLoader is 65535
[3.940s][debug][cds,jvmti  ] classfile data for java/util/IdentityHashMap$IdentityHashMapIterator [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 2732 bytes
[3.953s][debug][cds,jvmti  ] classfile data for java/util/IdentityHashMap$KeyIterator [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 1020 bytes
[4.137s][debug][cds,jvmti  ] classfile data for java/util/LinkedHashSet [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 1592 bytes
[4.242s][debug][cds,jvmti  ] classfile data for java/lang/invoke/MethodHandleImpl$CasesHolder [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 634 bytes
[4.242s][debug][cds,jvmti  ] classfile data for java/lang/invoke/MethodHandleImpl$LoopClauses [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 1703 bytes
[4.242s][debug][cds,jvmti  ] classfile data for java/lang/invoke/MethodHandleImpl$ArrayAccess [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 3024 bytes
[4.243s][debug][cds,jvmti  ] classfile data for java/lang/invoke/MethodHandleImpl$2 [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 862 bytes
[4.244s][debug][cds,jvmti  ] classfile data for java/lang/invoke/MethodHandleImpl$ArrayAccessor [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 8331 bytes
[4.244s][debug][cds,jvmti  ] classfile data for java/lang/invoke/MethodHandleImpl$ArrayAccessor$1 [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 1061 bytes
[4.258s][debug][cds,jvmti  ] classfile data for java/lang/ClassValue$ClassValueMap [0: C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+24-1605\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\lib\\modules] = 9384 bytes
];
 stderr: [java version "18-ea" 2022-03-15
Java(TM) SE Runtime Environment (fastdebug build 18-ea+24-1605)
Java HotSpot(TM) 64-Bit Server VM (fastdebug build 18-ea+24-1605, mixed mode, sharing)
]
 exitValue = -1073741819

java.lang.RuntimeException: Expected to get exit value of [0]

	at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:489)
	at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:468)
	at jdk.test.lib.cds.CDSTestUtils.checkExec(CDSTestUtils.java:457)
	at HelloCustom.run(HelloCustom.java:81)
	at HelloCustom_JFR.main(HelloCustom_JFR.java:50)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
	at java.base/java.lang.Thread.run(Thread.java:833)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]

I believe that "exitValue = -1073741819" indicates a stack overflow.