Details
-
Bug
-
Resolution: Fixed
-
P4
-
17, 18
-
b27
-
x86_64
-
linux
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8304032 | 17.0.8-oracle | Fairoz Matte | P4 | Resolved | Fixed | b01 |
JDK-8305068 | 17.0.8 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
Description
jdk/jfr/api/consumer/streaming/TestOutOfProcessMigration.java
Here's a snippet from the log file:
#section:main
----------messages:(5/373)----------
command: main jdk.jfr.api.consumer.streaming.TestOutOfProcessMigration
reason: User specified action: run main/othervm jdk.jfr.api.consumer.streaming.TestOutOfProcessMigration
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jfr,jdk.attach,java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
elapsed time (seconds): 9.203
----------configuration:(4/112)----------
Boot Layer
add modules: jdk.jfr jdk.attach java.base
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(27/6041)----------
Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2316/linux-x64-debug.jdk/jdk-17/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/jdk/jfr/api/consumer/streaming/TestOutOfProcessMigration.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2316/src.full/open/test/jdk/jdk/jfr/api/consumer/streaming:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2316/src.full/open/test/lib:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/test/jdk:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2316/src.full/open/test/jdk:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/javatest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jtreg.jar --add-exports java.base/jdk.internal.misc=ALL-UNNAMED -XX:StartFlightRecording:settings=none jdk.jfr.api.consumer.streaming.TestProcess /opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/1/action-1622906949009 ]
[application]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2316/linux-x64-debug.jdk/jdk-17/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/jdk/jfr/api/consumer/streaming/TestOutOfProcessMigration.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2316/src.full/open/test/jdk/jdk/jfr/api/consumer/streaming:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2316/src.full/open/test/lib:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/2/test/jdk:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+26-2316/src.full/open/test/jdk:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/javatest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jtreg.jar --add-exports java.base/jdk.internal.misc=ALL-UNNAMED -XX:StartFlightRecording:settings=none jdk.jfr.api.consumer.streaming.TestProcess /opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/1/action-1622906949009
[application] # To suppress the following error report, specify this argument
[application] # after -XX: or in .hotspotrc: SuppressErrorAt=/classLoader.hpp:129
[application] #
[application] # A fatal error has been detected by the Java Runtime Environment:
[application] #
[application] # Internal Error (/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79034/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f77f03ff-67bd-4697-aabc-5cb3b2081897/runs/39430ab1-20b6-4ab0-ba1f-0f9cd8ca1eae/workspace/open/src/hotspot/share/classfile/classLoader.hpp:129), pid=1727991, tid=1727992
[application] # Error: ShouldNotReachHere()
[application] #
[application] # JRE version: Java(TM) SE Runtime Environment (17.0+26) (fastdebug build 17-ea+26-LTS-2316)
[application] # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+26-LTS-2316, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
[application] # Problematic frame:
[application] # V [libjvm.so+0x9923dd] ClassPathImageEntry::~ClassPathImageEntry()+0x2d
[application] #
[application] # Core dump will be written. Default location: /opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/1/core
[application] #
[application] # An error report file with more information is saved as:
[application] # /opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S107341/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e15ef604-34b9-40ec-8043-5372b1f7280e/runs/5fb1cfae-76c6-42cf-b7fd-725996530732/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/1/hs_err_pid1727991.log
[application] #
[application] # If you would like to submit a bug report, please visit:
[application] # https://bugreport.java.com/bugreport/crash.jsp
[application] #
Attach failed: Premature EOF
Retrying...
Attach failed: No such process
Retrying...
----------System.err:(15/1136)----------
java.lang.RuntimeException: Process (pid = 1727991) is no longer alive, exit value = 134
at jdk.test.lib.jfr.StreamingUtils.getJfrRepository(StreamingUtils.java:48)
at jdk.jfr.api.consumer.streaming.TestProcess.getRepository(TestProcess.java:94)
at jdk.jfr.api.consumer.streaming.TestOutOfProcessMigration.main(TestOutOfProcessMigration.java:50)
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:833)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Process (pid = 1727991) is no longer alive, exit value = 134
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Process (pid = 1727991) is no longer alive, exit value = 134
----------rerun:(42/8187)*----------
Here's the crashing thread's stack:
--------------- T H R E A D ---------------
Current thread (0x00007f6124029680): JavaThread "main" [_thread_in_vm, id=1727992, stack(0x00007f612a7cc000,0x00007f612a8cd000)]
Stack: [0x00007f612a7cc000,0x00007f612a8cd000], sp=0x00007f612a8c9d10, free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x9923dd] ClassPathImageEntry::~ClassPathImageEntry()+0x2d
V [libjvm.so+0xbcd0b3] FileMapInfo::get_classpath_entry_for_jvmti(int, JavaThread*)+0x103
V [libjvm.so+0xbd2233] FileMapInfo::open_stream_for_jvmti(InstanceKlass*, Handle, JavaThread*)+0x43
V [libjvm.so+0x1225be5] KlassFactory::check_shared_class_file_load_hook(InstanceKlass*, Symbol*, Handle, Handle, ClassFileStream const*, JavaThread*)+0x2a5
V [libjvm.so+0x184e6ad] SystemDictionary::load_shared_class(InstanceKlass*, Handle, Handle, ClassFileStream const*, PackageEntry*, JavaThread*)+0xed
V [libjvm.so+0x184ef34] SystemDictionary::load_instance_class_impl(Symbol*, Handle, JavaThread*)+0x4e4
V [libjvm.so+0x184cf88] SystemDictionary::load_instance_class(unsigned int, Symbol*, Handle, JavaThread*)+0x28
V [libjvm.so+0x184d83d] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, JavaThread*)+0x77d
V [libjvm.so+0x184f5ca] SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, JavaThread*)+0x2a
V [libjvm.so+0xa6c813] ConstantPool::klass_at_impl(constantPoolHandle const&, int, JavaThread*)+0x1d3
V [libjvm.so+0xe6705c] InterpreterRuntime::_new(JavaThread*, ConstantPool*, int)+0x8c
j jdk.jfr.internal.SecuritySupport.createRecorderThread(Ljava/lang/ThreadGroup;Ljava/lang/ClassLoader;)Ljava/lang/Thread;+12 jdk.jfr@17-ea
j jdk.jfr.internal.JVMUpcalls.createRecorderThread(Ljava/lang/ThreadGroup;Ljava/lang/ClassLoader;)Ljava/lang/Thread;+2 jdk.jfr@17-ea
v ~StubRoutines::call_stub
V [libjvm.so+0xe7a564] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x504
V [libjvm.so+0xe7b6fb] JavaCalls::call_static(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x31b
V [libjvm.so+0xee3adf] JfrJavaCall::call_static(JfrJavaArguments*, JavaThread*)+0x3ff
V [libjvm.so+0xf39221] JfrRecorderThread::start(JfrCheckpointManager*, JfrPostBox*, JavaThread*)+0xe1
V [libjvm.so+0xf2f43d] JfrRecorder::create(bool)+0x4d
V [libjvm.so+0xef358f] jfr_create_jfr+0x43f
j jdk.jfr.internal.JVM.createJFR(Z)Z+0 jdk.jfr@17-ea
j jdk.jfr.internal.JVM.createNativeJFR()V+3 jdk.jfr@17-ea
j jdk.jfr.internal.PlatformRecorder.<init>()V+48 jdk.jfr@17-ea
j jdk.jfr.FlightRecorder.getFlightRecorder()Ljdk/jfr/FlightRecorder;+25 jdk.jfr@17-ea
j jdk.jfr.Recording.<init>(Ljava/util/Map;)V+14 jdk.jfr@17-ea
j jdk.jfr.Recording.<init>()V+4 jdk.jfr@17-ea
j jdk.jfr.internal.dcmd.DCmdStart.execute(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/Boolean;)[Ljava/lang/String;+494 jdk.jfr@17-ea
v ~StubRoutines::call_stub
V [libjvm.so+0xe7a564] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x504
V [libjvm.so+0xe7ae14] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x4b4
V [libjvm.so+0xee4b61] JfrJavaCall::call_virtual(JfrJavaArguments*, JavaThread*)+0x411
V [libjvm.so+0xecef80] JfrStartFlightRecordingDCmd::execute(DCmdSource, JavaThread*)+0xe10
V [libjvm.so+0xf2f755] JfrRecorder::on_create_vm_3()+0x145
V [libjvm.so+0xeaca59] Jfr::on_create_vm_3()+0x9
V [libjvm.so+0x18ba3e7] Threads::create_vm(JavaVMInitArgs*, bool*)+0x907
V [libjvm.so+0xfb5c18] JNI_CreateJavaVM+0x98
C [libjli.so+0x3b3f] JavaMain+0x8f
C [libjli.so+0x7d19] ThreadJavaMain+0x9
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j jdk.jfr.internal.SecuritySupport.createRecorderThread(Ljava/lang/ThreadGroup;Ljava/lang/ClassLoader;)Ljava/lang/Thread;+12 jdk.jfr@17-ea
j jdk.jfr.internal.JVMUpcalls.createRecorderThread(Ljava/lang/ThreadGroup;Ljava/lang/ClassLoader;)Ljava/lang/Thread;+2 jdk.jfr@17-ea
v ~StubRoutines::call_stub
j jdk.jfr.internal.JVM.createJFR(Z)Z+0 jdk.jfr@17-ea
j jdk.jfr.internal.JVM.createNativeJFR()V+3 jdk.jfr@17-ea
j jdk.jfr.internal.PlatformRecorder.<init>()V+48 jdk.jfr@17-ea
j jdk.jfr.FlightRecorder.getFlightRecorder()Ljdk/jfr/FlightRecorder;+25 jdk.jfr@17-ea
j jdk.jfr.Recording.<init>(Ljava/util/Map;)V+14 jdk.jfr@17-ea
j jdk.jfr.Recording.<init>()V+4 jdk.jfr@17-ea
j jdk.jfr.internal.dcmd.DCmdStart.execute(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/Boolean;Ljava/lang/Boolean;)[Ljava/lang/String;+494 jdk.jfr@17-ea
v ~StubRoutines::call_stub
Here's an unresolved bug for the same test:
The "RuntimeException: Process (pid = NNNN) is no longer alive"
part is the same, but the exit codes are different and this failure
has an hs_err_pid file with a crash.
Attachments
Issue Links
- backported by
-
JDK-8304032 jdk/jfr/api/consumer/streaming/TestOutOfProcessMigration.java fails with "Error: ShouldNotReachHere()"
-
- Resolved
-
-
JDK-8305068 jdk/jfr/api/consumer/streaming/TestOutOfProcessMigration.java fails with "Error: ShouldNotReachHere()"
-
- Resolved
-
- relates to
-
JDK-8266408 jdk/jfr/api/consumer/streaming/TestOutOfProcessMigration.java failed with "RuntimeException: Process (pid = NNNN) is no longer alive, exit value = 131"
-
- Closed
-
- links to
-
Commit openjdk/jdk17u-dev/ac0b7c93
-
Commit openjdk/jdk/0a090926
-
Review openjdk/jdk17u-dev/1212
-
Review openjdk/jdk/6651