The following test failed in the JDK20 CI:
jdk/jfr/event/runtime/TestShutdownEvent.java
Here's a snippet from the log file:
Running subtest 2 (jdk.jfr.event.runtime.TestShutdownEvent$TestVMCrash)
Attempting to crash
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000fffd0d9cc584, pid=1467610, tid=1467613
#
# JRE version: Java(TM) SE Runtime Environment (20.0+21) (fastdebug build 20-ea+21-1475)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-ea+21-1475, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x180c584] Unsafe_PutInt+0xf4
#
# CreateCoredumpOnCrash turned off, no core file dumped
#
# JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94939/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2b4a9611-6c91-4294-b9bd-8f46d040ffcf/runs/30d733ad-9792-4e59-9add-6d1983905c94/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/3/hs_err_pid1467610.jfr
#
# An error report file with more information is saved as:
# /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94939/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2b4a9611-6c91-4294-b9bd-8f46d040ffcf/runs/30d733ad-9792-4e59-9add-6d1983905c94/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/3/hs_err_pid1467610.log
[thread 1467666 also had an error]
------ Timeout during error reporting after 120 s. ------
# [ timer expired, abort... ]
[2022-10-20T20:28:25.324357930Z] Waiting for completion for process 1467610
[2022-10-20T20:28:25.324430890Z] Waiting for completion finished for process 1467610
Exit code: 134
Failed: Not a valid Flight Recorder file. File length is only 0 bytes.
<snip>
2022-10-20T20:28:31.581178527Z] Waiting for completion for process 1475210
[2022-10-20T20:28:31.581272887Z] Waiting for completion finished for process 1475210
Exit code: 17
----------System.err:(17/1244)----------
java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.initialize(RecordingInput.java:93)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:82)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:98)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.<init>(RecordingFile.java:87)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.readAllEvents(RecordingFile.java:270)
at jdk.jfr.event.runtime.TestShutdownEvent.runSubtest(TestShutdownEvent.java:109)
at jdk.jfr.event.runtime.TestShutdownEvent.main(TestShutdownEvent.java:87)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1591)
JavaTest Message: Test threw exception: java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
JavaTest Message: shutting down test
jdk/jfr/event/runtime/TestShutdownEvent.java
Here's a snippet from the log file:
Running subtest 2 (jdk.jfr.event.runtime.TestShutdownEvent$TestVMCrash)
Attempting to crash
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000fffd0d9cc584, pid=1467610, tid=1467613
#
# JRE version: Java(TM) SE Runtime Environment (20.0+21) (fastdebug build 20-ea+21-1475)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-ea+21-1475, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V [libjvm.so+0x180c584] Unsafe_PutInt+0xf4
#
# CreateCoredumpOnCrash turned off, no core file dumped
#
# JFR recording file will be written. Location: /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94939/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2b4a9611-6c91-4294-b9bd-8f46d040ffcf/runs/30d733ad-9792-4e59-9add-6d1983905c94/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/3/hs_err_pid1467610.jfr
#
# An error report file with more information is saved as:
# /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94939/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2b4a9611-6c91-4294-b9bd-8f46d040ffcf/runs/30d733ad-9792-4e59-9add-6d1983905c94/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/3/hs_err_pid1467610.log
[thread 1467666 also had an error]
------ Timeout during error reporting after 120 s. ------
# [ timer expired, abort... ]
[2022-10-20T20:28:25.324357930Z] Waiting for completion for process 1467610
[2022-10-20T20:28:25.324430890Z] Waiting for completion finished for process 1467610
Exit code: 134
Failed: Not a valid Flight Recorder file. File length is only 0 bytes.
<snip>
2022-10-20T20:28:31.581178527Z] Waiting for completion for process 1475210
[2022-10-20T20:28:31.581272887Z] Waiting for completion finished for process 1475210
Exit code: 17
----------System.err:(17/1244)----------
java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.initialize(RecordingInput.java:93)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:82)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:98)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.<init>(RecordingFile.java:87)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.readAllEvents(RecordingFile.java:270)
at jdk.jfr.event.runtime.TestShutdownEvent.runSubtest(TestShutdownEvent.java:109)
at jdk.jfr.event.runtime.TestShutdownEvent.main(TestShutdownEvent.java:87)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1591)
JavaTest Message: Test threw exception: java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
JavaTest Message: shutting down test
- duplicates
-
JDK-8295761 jdk/jfr/event/runtime/TestShutdownEvent.java failed with "IOException: Not a valid Flight Recorder file. File length is only 0 bytes."
-
- Closed
-