JDK-8220763 : TestAbortVMOnSafepointTimeout.java fails due to "'SIGILL' missing from stdout/stderr"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 13,14
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: generic
  • Submitted: 2019-03-17
  • Updated: 2021-01-07
  • Resolved: 2021-01-07
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
tbdResolved
Related Reports
Relates :  
Description

The following test failed on Solaris-X64 in slowdebug configs using
jdk-13+12 bits:

runtime/Safepoint/TestAbortVMOnSafepointTimeout.java

The test failed in 3 of 3 'slowdebug' bits runs. It did not fail at all in the
'fastdebug' or 'release' bits runs.

Here's a snippet from one of the failing log files: 

----------System.out:(1/1312)----------
Command line: [/work/shared/bug_hunt/thread_SMR_stress/jdk13_exp/build/solaris-x86_64-normal-server-slowdebug/images/jdk/bin/java -cp /work/shared/bug_hunt/thread_SMR_stress/jdk13_exp/build/solaris-x86_64-normal-server-slowdebug/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/7/runtime/Safepoint/TestAbortVMOnSafepointTimeout.d:/work/shared/bug_hunt/thread_SMR_stress/jdk13_exp/open/test/hotspot/jtreg/runtime/Safepoint:/work/shared/bug_hunt/thread_SMR_stress/jdk13_exp/build/solaris-x86_64-normal-server-slowdebug/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/7/test/lib:/work/shared/bug_hunt/thread_SMR_stress/jdk13_exp/open/test/lib:/work/local/jib-dcubed/install/java/re/jtreg/4.2/promoted/all/b14/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar:/work/local/jib-dcubed/install/java/re/jtreg/4.2/promoted/all/b14/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar -XX:+UnlockDiagnosticVMOptions -XX:+SafepointTimeout -XX:+SafepointALot -XX:+AbortVMOnSafepointTimeout -XX:SafepointTimeoutDelay=500 -XX:GuaranteedSafepointInterval=500 -XX:-TieredCompilation -XX:-UseCountedLoopSafepoints -XX:LoopStripMiningIter=0 -XX:LoopUnrollLimit=0 -XX:CompileCommand=compileonly,TestAbortVMOnSafepointTimeout::test_loop -Xcomp -XX:-CreateCoredumpOnCrash -Xms64m TestAbortVMOnSafepointTimeout runTestLoop ]
----------System.err:(32/1955)----------
 stdout: [CompileCommand: compileonly TestAbortVMOnSafepointTimeout.test_loop
[1.993s][warning][safepoint]
[1.993s][warning][safepoint] # SafepointSynchronize::begin: Timeout detected:
[1.993s][warning][safepoint] # SafepointSynchronize::begin: Timed out while spinning to reach a safepoint.
[1.993s][warning][safepoint] # SafepointSynchronize::begin: Threads which did not reach the safepoint:
[1.993s][warning][safepoint] # "main" #1 prio=5 os_prio=64 cpu=1220.75ms elapsed=1.99s tid=0x0000000000443800 nid=0x2 runnable  [0x0000000000000000]
[1.993s][warning][safepoint]    java.lang.Thread.State: RUNNABLE
[1.993s][warning][safepoint] Thread: 0x0000000000443800  [0x 2] State: _running _at_poll_safepoint 0
[1.993s][warning][safepoint]    JavaThread state: _thread_in_Java
[1.993s][warning][safepoint]
[1.993s][warning][safepoint] # SafepointSynchronize::begin: (End of list)
];
 stderr: []
 exitValue = 11

java.lang.RuntimeException: 'SIGILL' missing from stdout/stderr

        at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:270)
        at TestAbortVMOnSafepointTimeout.testWith(TestAbortVMOnSafepointTimeout.java:84)
        at TestAbortVMOnSafepointTimeout.main(TestAbortVMOnSafepointTimeout.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.lang.RuntimeException: 'SIGILL' missing from stdout/stderr

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'SIGILL' missing from stdout/stderr
----------rerun:(31/3869)*----------

Comments
Same issue observed in JDK 14 build 5 on linux platform also: openjdk version "14-ea" 2020-03-17 OpenJDK Runtime Environment (build 14-ea+5-129) OpenJDK 64-Bit Server VM (build 14-ea+5-129, mixed mode, sharing) [2019-07-12T14:59:09.060489Z] Gathering output for process 63470 [2019-07-12T14:59:19.620114Z] Waiting for completion for process 63470 [2019-07-12T14:59:19.620185Z] Waiting for completion finished for process 63470 ----------System.err:(21/1088)---------- stdout: [CompileCommand: compileonly TestAbortVMOnSafepointTimeout.test_loop This message would occur after some time with result 715827882 ]; stderr: [] exitValue = 0 java.lang.RuntimeException: 'SIGILL' missing from stdout/stderr at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:293) at TestAbortVMOnSafepointTimeout.testWith(TestAbortVMOnSafepointTimeout.java:84) at TestAbortVMOnSafepointTimeout.main(TestAbortVMOnSafepointTimeout.java:46) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298) at java.base/java.lang.Thread.run(Thread.java:830) JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'SIGILL' missing from stdout/stderr test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'SIGILL' missing from stdout/stderr
15-07-2019

Here are the logs for my jdk-13+13 Solaris-X64 sightings: $ unzip -l jdk-13+13_solx64.8220763.zip Archive: jdk-13+13_solx64.8220763.zip Length Date Time Name --------- ---------- ----- ---- 15197 03-21-2019 20:02 jdk-13+13_1/failures.solaris-x86_64/TestAbortVMOnSafepointTimeout.jtr.slowdebug 15026 03-22-2019 14:30 jdk-13+13_2/failures.solaris-x86_64/TestAbortVMOnSafepointTimeout.jtr.slowdebug 15197 03-23-2019 08:40 jdk-13+13_3/failures.solaris-x86_64/TestAbortVMOnSafepointTimeout.jtr.slowdebug --------- ------- 45420 3 files
24-03-2019

> exitValue = 11 So slowdebug seems to hit a SIGSEGV instead of expected SIGILL.
18-03-2019

Here are the logs for my jdk-13+12 Solaris-X64 sightings: $ unzip -l jdk-13+12_solx64.8220763.zip Archive: jdk-13+12_solx64.8220763.zip Length Date Time Name --------- ---------- ----- ---- 15196 03-14-2019 20:30 jdk-13+12_1/failures.solaris-x86_64/TestAbortVMOnSafepointTimeout.jtr.slowdebug 15210 03-15-2019 14:42 jdk-13+12_2/failures.solaris-x86_64/TestAbortVMOnSafepointTimeout.jtr.slowdebug 15197 03-16-2019 09:00 jdk-13+12_3/failures.solaris-x86_64/TestAbortVMOnSafepointTimeout.jtr.slowdebug --------- ------- 45603 3 files
17-03-2019