JDK-8332116 : Test compiler/ciReplay/TestServerVM.java failed: Unexpected exit code for positive case
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23,24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-05-12
  • Updated: 2024-11-03
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.
Other
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Relates :  
Description
Test compiler/ciReplay/TestServerVM.java 

stdout: java.lang.NoClassDefFoundError: java/lang/invoke/LambdaForm$MH+0x00007f0a32001800
Error while parsing line 11 at position 60: java/lang/invoke/LambdaForm$MH+0x00007f0a32001800

java.lang.NoClassDefFoundError: java/lang/invoke/LambdaForm$MH+0x00007f0a32001800
Caused by: java.lang.ClassNotFoundException: java.lang.invoke.LambdaForm$MH+0x00007f0a32001800
	at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@23-ea/BuiltinClassLoader.java:641)
	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@23-ea/ClassLoaders.java:188)
	at java.lang.ClassLoader.loadClass(java.base@23-ea/ClassLoader.java:528)

Failed on java/lang/invoke/LambdaForm$MH+0x00007f0a32001800

----------System.err:(17/1171)----------
java.lang.RuntimeException: Unexpected exit code for positive case: [-XX:TieredStopAtLevel=1] expected: 1 but was: 0
	at jdk.test.lib.Asserts.fail(Asserts.java:691)
	at jdk.test.lib.Asserts.assertEquals(Asserts.java:204)
	at jdk.test.lib.Asserts.assertEQ(Asserts.java:180)
	at compiler.ciReplay.CiReplayBase.positiveTest(CiReplayBase.java:271)
	at compiler.ciReplay.VMBase.testAction(VMBase.java:52)
	at compiler.ciReplay.CiReplayBase.runTest(CiReplayBase.java:131)
	at compiler.ciReplay.VMBase.main(VMBase.java:33)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1575)
Comments
Here's a log file snippet from the jdk-24+17-1933-tier7 sighting: compiler/ciReplay/TestServerVM.java #section:main ----------messages:(7/517)---------- command: main -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI compiler.ciReplay.VMBase server reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI compiler.ciReplay.VMBase server started: Fri Sep 27 07:05:01 UTC 2024 Mode: othervm [/othervm specified] Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED finished: Fri Sep 27 07:05:06 UTC 2024 elapsed time (seconds): 5.197 ----------configuration:(4/111)---------- <snip> ----------System.err:(18/1172)---------- java.lang.RuntimeException: Unexpected exit code for positive case: [] expected: 1 but was: 0 at jdk.test.lib.Asserts.fail(Asserts.java:691) at jdk.test.lib.Asserts.assertEquals(Asserts.java:204) at jdk.test.lib.Asserts.assertEQ(Asserts.java:180) at compiler.ciReplay.CiReplayBase.positiveTest(CiReplayBase.java:271) at compiler.ciReplay.CiReplayBase.commonTests(CiReplayBase.java:215) at compiler.ciReplay.VMBase.testAction(VMBase.java:42) at compiler.ciReplay.CiReplayBase.runTest(CiReplayBase.java:131) at compiler.ciReplay.VMBase.main(VMBase.java:33) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:573) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1576) JavaTest Message: Test threw exception: java.lang.RuntimeException: Unexpected exit code for positive case: [] expected: 1 but was: 0 Here's snippets from the hs_err_pid file: # Internal Error (/opt/mach5/mesos/work_dir/slaves/f5c641a8-8835-4313-b2e9-9724f4dc0f29-S896/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/a7575e13-3d62-4bc4-94f4-dc6d87fc6f7e/runs/9c2f6639-3267-48a1-a821-5f2b4eefe888/workspace/open/src/hotspot/share/ci/ciKlass.hpp:60), pid=1911044, tid=1911061 # assert(k != nullptr) failed: illegal use of unloaded klass # # JRE version: Java(TM) SE Runtime Environment (24.0+17) (fastdebug build 24-ea+17-1933) # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-ea+17-1933, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0x91189c] ciMethod::ciMethod(methodHandle const&, ciInstanceKlass*)+0xa5c <snip> --------------- T H R E A D --------------- Current thread (0x00007f6f64335830): JavaThread "C1 CompilerThread0" daemon [_thread_in_vm, id=1911061, stack(0x00007f6f4c026000,0x00007f6f4c126000) (1024K)] Current CompileTask: C1:141 25 b 3 compiler.ciReplay.CiReplayBase$TestMain::test (30 bytes) Stack: [0x00007f6f4c026000,0x00007f6f4c126000], sp=0x00007f6f4c123430, free space=1013k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x91189c] ciMethod::ciMethod(methodHandle const&, ciInstanceKlass*)+0xa5c (ciKlass.hpp:60) V [libjvm.so+0x9333f5] ciObjectFactory::create_new_metadata(Metadata*)+0x1a5 (ciObjectFactory.cpp:399) V [libjvm.so+0x933bcd] ciObjectFactory::get_metadata(Metadata*)+0x16d (ciObjectFactory.cpp:324) V [libjvm.so+0x9267a7] ciMethodHandle::get_vmtarget() const+0x1b7 (ciEnv.hpp:190) V [libjvm.so+0x767ce1] GraphBuilder::try_method_handle_inline(ciMethod*, bool)+0xe1 (c1_GraphBuilder.cpp:4185) V [libjvm.so+0x76223e] GraphBuilder::try_inline(ciMethod*, bool, bool, Bytecodes::Code, Instruction*)+0x1fe (c1_GraphBuilder.cpp:3549) V [libjvm.so+0x762750] GraphBuilder::invoke(Bytecodes::Code)+0x440 (c1_GraphBuilder.cpp:2149) V [libjvm.so+0x7640df] GraphBuilder::iterate_bytecodes_for_block(int)+0xaff (c1_GraphBuilder.cpp:2979) V [libjvm.so+0x76759a] GraphBuilder::iterate_all_blocks(bool)+0xca (c1_GraphBuilder.cpp:3047) V [libjvm.so+0x76191d] GraphBuilder::try_inline_full(ciMethod*, bool, bool, Bytecodes::Code, Instruction*)+0xb2d (c1_GraphBuilder.cpp:4110) V [libjvm.so+0x7621a6] GraphBuilder::try_inline(ciMethod*, bool, bool, Bytecodes::Code, Instruction*)+0x166 (c1_GraphBuilder.cpp:3578) V [libjvm.so+0x762750] GraphBuilder::invoke(Bytecodes::Code)+0x440 (c1_GraphBuilder.cpp:2149) V [libjvm.so+0x7640df] GraphBuilder::iterate_bytecodes_for_block(int)+0xaff (c1_GraphBuilder.cpp:2979) V [libjvm.so+0x767561] GraphBuilder::iterate_all_blocks(bool)+0x91 (c1_GraphBuilder.cpp:3062) V [libjvm.so+0x768db1] GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x7b1 (c1_GraphBuilder.cpp:3432) V [libjvm.so+0x7779a2] IRScope::IRScope(Compilation*, IRScope*, int, ciMethod*, int, bool)+0x322 (c1_IR.cpp:128) V [libjvm.so+0x777bb8] IR::IR(Compilation*, ciMethod*, int)+0xa8 (c1_IR.cpp:274) V [libjvm.so+0x73fa53] Compilation::build_hir() [clone .part.0]+0x113 (c1_Compilation.cpp:159) V [libjvm.so+0x741bb8] Compilation::compile_java_method()+0x458 (c1_Compilation.cpp:385) V [libjvm.so+0x7424ce] Compilation::compile_method()+0x21e (c1_Compilation.cpp:478) V [libjvm.so+0x742be0] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x300 (c1_Compilation.cpp:608) V [libjvm.so+0x74471e] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0xae (c1_Compiler.cpp:263) V [libjvm.so+0xa26538] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x928 (compileBroker.cpp:2303) V [libjvm.so+0xa271c8] CompileBroker::compiler_thread_loop()+0x478 (compileBroker.cpp:1961) V [libjvm.so+0xecf1dc] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:758) V [libjvm.so+0x17ff8b6] Thread::call_run()+0xb6 (thread.cpp:225) V [libjvm.so+0x14e68e7] thread_native_entry(Thread*)+0x127 (os_linux.cpp:858)
27-09-2024

Same general issue also seen in compiler/ciReplay/TestInlining.java
25-06-2024

ILW = Intermittent compiler replay test failure, observed once so far, no workaround = MLH = P4
13-05-2024