JDK-8240335 : C2: assert(found_sfpt) failed: no node in loop that's not input to safepoint
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,15
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2020-03-02
  • Updated: 2022-07-21
  • Resolved: 2020-03-26
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 11 JDK 15
11.0.16-oracleFixed 15 b17Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Generated test crashed with:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (open/src/hotspot/share/opto/loopnode.cpp:997), pid=2497, tid=2509
#  assert(found_sfpt) failed: no node in loop that's not input to safepoint
#
# JRE version: Java(TM) SE Runtime Environment (15.0+12) (fastdebug build 15-ea+12-431)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 15-ea+12-431, compiled mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x1027095]  LoopNode::verify_strip_mined(int) const+0x685
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /tmp/fuzzer.tmp.GvrFgw4AwR/core.2497)
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -Xmx1G -Xcomp -Xbatch -XX:CompileOnly=Test Test

Host: Intel Core Processor (Broadwell), 12 cores, 28G, Oracle Linux Server release 7.5
Time: Fri Feb 28 23:33:48 2020 UTC elapsed time: 16 seconds (0d 0h 0m 16s)

---------------  T H R E A D  ---------------

Current thread (0x00007f4a2433e000):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=2509, stack(0x00007f49f3afb000,0x00007f49f3bfc000)]


Current CompileTask:
C2:  16378   77    b  4       Test::vMeth1 (322 bytes)

Stack: [0x00007f49f3afb000,0x00007f49f3bfc000],  sp=0x00007f49f3bf5d00,  free space=1003k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x1027095]  LoopNode::verify_strip_mined(int) const+0x685
V  [libjvm.so+0x10277d7]  CountedLoopNode::skip_strip_mined(int)+0x47
V  [libjvm.so+0x10014ea]  PhaseIdealLoop::loop_predication_impl(IdealLoopTree*) [clone .part.94]+0x92a
V  [libjvm.so+0x1001ee9]  IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x109
V  [libjvm.so+0x1001e08]  IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x28
V  [libjvm.so+0x1001e08]  IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x28
V  [libjvm.so+0x1001e25]  IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x45
V  [libjvm.so+0x1001e25]  IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x45
V  [libjvm.so+0x1001e25]  IdealLoopTree::loop_predication(PhaseIdealLoop*)+0x45
V  [libjvm.so+0x103d3b0]  PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0x12c0
V  [libjvm.so+0x86f61a]  PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x2ea
V  [libjvm.so+0x86c773]  Compile::Optimize()+0x973
V  [libjvm.so+0x86de44]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x1084
V  [libjvm.so+0x6dc580]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x110
V  [libjvm.so+0x87a91c]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x2cc
V  [libjvm.so+0x87b8b8]  CompileBroker::compiler_thread_loop()+0x458
V  [libjvm.so+0x152d896]  JavaThread::thread_main_inner()+0x226
V  [libjvm.so+0x1532916]  Thread::call_run()+0xf6
V  [libjvm.so+0x12651e6]  thread_native_entry(Thread*)+0x116

Register to memory mapping:

Comments
Fix request [11u] I backport this for parity with 11.0.16-oracle. Small risk, we should fix this. Clean backport. Test passes. SAP nightly testing passed.
02-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/978 Date: 2022-04-01 09:59:09 +0000
01-04-2022

Git URL: https://github.com/openjdk/jdk/commit/eb003a7382a0cd26af0d559a7a8e896cdf437327
01-04-2022

URL: https://hg.openjdk.java.net/jdk/jdk/rev/28fa7b197532 User: roland Date: 2020-03-26 08:32:25 +0000
26-03-2020

ILW = C2 crash ; rare, but always reproducible with available javafuzzer test, regression in JDK 15; -XX:LoopStripMiningIter=0 = HMM = P2 Found this issue started with jdk-15+10-280 build, after the fix changeset of JDK-8231291 (C2: loop opts before EA should maximally unroll loops) Hi [~roland], request your help to check this issue. Thanks.
06-03-2020

See sources, classes, and example of hs_err from my desktop in attachement.
02-03-2020