JDK-8303627 : compiler/loopopts/TestUnreachableInnerLoop.java failed with -XX:LoopMaxUnroll=4
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2023-03-06
  • Updated: 2023-07-14
  • Resolved: 2023-03-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.
JDK 21
21Resolved
Related Reports
Duplicate :  
Relates :  
Description
$ make test CONF=fastdebug JTREG="VM_OPTIONS=-XX:LoopMaxUnroll=4" TEST=compiler/loopopts/TestUnreachableInnerLoop.java

Test failures occur on x86_64, AArch64 and LoongArch64 architectures

ACTION: main -- Failed. Unexpected exit from test [exit code: 134]
REASON: User specified action: run main/othervm -Xcomp -Xbatch -XX:CompileOnly=compiler/loopopts/TestUnreachableInnerLoop compiler.loopopts.TestUnreachableInnerLoop 
TIME:   2.539 seconds
messages:
command: main -Xcomp -Xbatch -XX:CompileOnly=compiler/loopopts/TestUnreachableInnerLoop compiler.loopopts.TestUnreachableInnerLoop
reason: User specified action: run main/othervm -Xcomp -Xbatch -XX:CompileOnly=compiler/loopopts/TestUnreachableInnerLoop compiler.loopopts.TestUnreachableInnerLoop 
started: Mon Mar 06 09:59:51 GMT+08:00 2023
Mode: othervm [/othervm specified]
finished: Mon Mar 06 09:59:54 GMT+08:00 2023
elapsed time (seconds): 2.539
configuration:
STDOUT:
CompileCommand: compileonly compiler/loopopts/TestUnreachableInnerLoop.* bool compileonly = true
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/block.cpp:1359
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/home/sunguoyun/jdk-ls/src/hotspot/share/opto/block.cpp:1359), pid=31328, tid=31344
#  assert(n->is_Root() || n->is_Region() || n->is_Phi() || n->is_MachMerge() || def_block->dominates(block)) failed: uses must be dominated by definitions
#
# JRE version: OpenJDK Runtime Environment (20.0) (fastdebug build 20-internal-adhoc.sunguoyun.jdk-ls)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 20-internal-adhoc.sunguoyun.jdk-ls, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x628bac]  PhaseCFG::verify() const+0x25c
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_loopopts_TestUnreachableInnerLoop_java/scratch/0/hs_err_pid31328.log
#
# Compiler replay data is saved as:
# /home/sunguoyun/jdk-ls/build/linux-aarch64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_loopopts_TestUnreachableInnerLoop_java/scratch/0/replay_pid31328.log
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Comments
No longer reproduces with JDK 21+ but the issue is still present.
14-07-2023

The same analysis done in JDK-8291025 also applies here but we trigger it with a different flag.
13-03-2023

As discussed in the PR, closing this as duplicate of JDK-8288981.
07-03-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12874 Date: 2023-03-06 02:42:21 +0000
06-03-2023