JDK-8230065 : Lucene test suite crashed with assert(dom_r->unique_ctrl_out()->is_Call()) failed: unc expected
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 12,13,14
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-08-22
  • Updated: 2019-09-12
  • Resolved: 2019-09-12
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 14
14Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Lucene test suite crashes.

git clone --branch branch_8_2 https://github.com/apache/lucene-solr 
ant -autoproxy compile 
ant -Dargs="-XX:+DeoptimizeALot" -autoproxy test 

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (open/src/hotspot/share/opto/loopPredicate.cpp:315), pid=8849, tid=8881
#  assert(dom_r->unique_ctrl_out()->is_Call()) failed: unc expected
#
# JRE version: Java(TM) SE Runtime Environment (14.0+11) (fastdebug build 14-ea+11-371)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-ea+11-371, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x11a16d4]  PhaseIdealLoop::clone_loop_predicates_fix_mem(ProjNode*, ProjNode*, PhaseIdealLoop*, PhaseIterGVN*)+0x324
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /var/lib/jenkins/workspace/LuceneSolr/lucene/build/sandbox/test/J1/core.8849)
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

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

Command Line: -XX:+DeoptimizeALot -ea -esa --illegal-access=deny -Dtests.prefix=tests -Dtests.seed=D26EFB40A419EF27 -Xmx512M -Dtests.iters= -Dtests.verbose=false -Dtests.infostream=false -Dtests.codec=random -Dtests.postingsformat=random -Dtests.docvaluesformat=random -Dtests.locale=random -Dtests.timezone=random -Dtests.directory=random -Dtests.linedocsfile=europarl.lines.txt.gz -Dtests.luceneMatchVersion=8.2.1 -Dtests.cleanthreads=perMethod -Djava.util.logging.config.file=/var/lib/jenkins/workspace/LuceneSolr/lucene/tools/junit4/logging.properties -Dtests.nightly=false -Dtests.weekly=false -Dtests.monster=false -Dtests.slow=true -Dtests.asserts=true -Dtests.multiplier=1 -DtempDir=./temp -Djava.io.tmpdir=./temp -Dcommon.dir=/var/lib/jenkins/workspace/LuceneSolr/lucene -Dclover.db.dir=/var/lib/jenkins/workspace/LuceneSolr/lucene/build/clover/db -Djava.security.policy=/var/lib/jenkins/workspace/LuceneSolr/lucene/tools/junit4/tests.policy -Dtests.LUCENE_VERSION=8.2.1 -Djetty.testMode=1 -Djetty.insecurerandom=1 -Dsolr.directoryFactory=org.apache.solr.core.MockDirectoryFactory -Djava.awt.headless=true -Djdk.map.althashing.threshold=0 -Dtests.src.home=/var/lib/jenkins/workspace/LuceneSolr -Djava.security.egd=file:/dev/./urandom -Djunit4.childvm.cwd=/var/lib/jenkins/workspace/LuceneSolr/lucene/build/sandbox/test/J1 -Djunit4.tempDir=/var/lib/jenkins/workspace/LuceneSolr/lucene/build/sandbox/test/temp -Djunit4.childvm.id=1 -Djunit4.childvm.count=4 -Dfile.encoding=ISO-8859-1 -Djava.security.manager=org.apache.lucene.util.TestSecurityManager -Dtests.filterstacks=true -Dtests.leaveTemporary=false com.carrotsearch.ant.tasks.junit4.slave.SlaveMainSafe -eventsfile /var/lib/jenkins/workspace/LuceneSolr/lucene/build/sandbox/test/temp/junit4-J1-20190822_065126_859383027413533685887.events @/var/lib/jenkins/workspace/LuceneSolr/lucene/build/sandbox/test/temp/junit4-J1-20190822_065126_85916815917613523936417.suites -stdin

Host: lmesnik-linux, Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 8 cores, 31G, Ubuntu 18.04.3 LTS
Time: Thu Aug 22 06:51:34 2019 PDT elapsed time: 7 seconds (0d 0h 0m 7s)

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

Current thread (0x00007fdac8351000):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=8881, stack(0x00007fda9e60a000,0x00007fda9e70b000)]


Current CompileTask:
C2:   7232 2572 %     4       org.apache.lucene.search.Weight$DefaultBulkScorer::scoreAll @ 10 (113 bytes)

Stack: [0x00007fda9e60a000,0x00007fda9e70b000],  sp=0x00007fda9e704fc0,  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+0x11a16d4]  PhaseIdealLoop::clone_loop_predicates_fix_mem(ProjNode*, ProjNode*, PhaseIdealLoop*, PhaseIterGVN*)+0x324
V  [libjvm.so+0x11a429d]  PhaseIdealLoop::clone_loop_predicates(Node*, Node*, bool, PhaseIdealLoop*, PhaseIterGVN*)+0x2bd
V  [libjvm.so+0x11c3e0f]  PhaseIdealLoop::create_slow_version_of_loop(IdealLoopTree*, Node_List&, int, PhaseIdealLoop::CloneLoopMode)+0xd2f
V  [libjvm.so+0x11c67dc]  PhaseIdealLoop::do_unswitching(IdealLoopTree*, Node_List&)+0xfc
V  [libjvm.so+0x11bbc76]  IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x226
V  [libjvm.so+0x11df607]  PhaseIdealLoop::build_and_optimize(LoopOptsMode)+0xd27
V  [libjvm.so+0x9c757a]  PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x2ea
V  [libjvm.so+0x9c46b4]  Compile::Optimize()+0xbc4
V  [libjvm.so+0x9c5ccf]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x109f
V  [libjvm.so+0x80914d]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x10d
V  [libjvm.so+0x9d25d0]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3e0
V  [libjvm.so+0x9d35c8]  CompileBroker::compiler_thread_loop()+0x3b8
V  [libjvm.so+0x16cbd12]  JavaThread::thread_main_inner()+0x312
V  [libjvm.so+0x16d3ecf]  JavaThread::run()+0x29f
V  [libjvm.so+0x16d0dc6]  Thread::call_run()+0xf6
V  [libjvm.so+0x13f0d9e]  thread_native_entry(Thread*)+0x10e

Register to memory mapping:

RAX=0x00007fdacf6f8000 points into unknown readable memory: 58 00 00 00 00 00 00 00
RBX=0x00007fda9e7066a0 is pointing into the stack for thread: 0x00007fdac8351000
RCX=0x00007fdace61acee: <offset 0x0000000001a27cee> in /var/lib/jenkins/jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fdaccbf3000
RDX=0x00007fdace563120: <offset 0x0000000001970120> in /var/lib/jenkins/jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fdaccbf3000
RSP=0x00007fda9e704fc0 is pointing into the stack for thread: 0x00007fdac8351000
RBP=0x00007fda9e705120 is pointing into the stack for thread: 0x00007fdac8351000
RSI=0x000000000000013b is an unknown value
RDI=0x00007fdace562e70: <offset 0x000000000196fe70> in /var/lib/jenkins/jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fdaccbf3000
R8 =0x00007fda581ca940 points into unknown readable memory: b8 08 97 ce da 7f 00 00
R9 =0x00000000000000c8 is an unknown value
R10=0x00007fda581ca8b8 points into unknown readable memory: c0 09 97 ce da 7f 00 00
R11=0x00007fda788f3039 points into unknown readable memory: 62 97 ce da 7f 00 00
R12=0x00007fda581ca8b8 points into unknown readable memory: c0 09 97 ce da 7f 00 00
R13=0x00007fda788ecbd8 points into unknown readable memory: a0 62 97 ce da 7f 00 00
R14=0x00007fda6020d7b0 points into unknown readable memory: c0 09 97 ce da 7f 00 00
R15=0x00007fdacea5546a: <offset 0x0000000001e6246a> in /var/lib/jenkins/jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fdaccbf3000


Registers:
RAX=0x00007fdacf6f8000, RBX=0x00007fda9e7066a0, RCX=0x00007fdace61acee, RDX=0x00007fdace563120
RSP=0x00007fda9e704fc0, RBP=0x00007fda9e705120, RSI=0x000000000000013b, RDI=0x00007fdace562e70
R8 =0x00007fda581ca940, R9 =0x00000000000000c8, R10=0x00007fda581ca8b8, R11=0x00007fda788f3039
R12=0x00007fda581ca8b8, R13=0x00007fda788ecbd8, R14=0x00007fda6020d7b0, R15=0x00007fdacea5546a
RIP=0x00007fdacdd946d4, EFLAGS=0x0000000000010297, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007fda9e704fc0)
0x00007fda9e704fc0:   00007fda9e705a00 00007fda581c9c28
0x00007fda9e704fd0:   00007fda9e7050c0 00007fdacdd92df4
0x00007fda9e704fe0:   00007fda9e705040 0000000000000008
0x00007fda9e704ff0:   0000000100000000 bf8000003f7fffef 

Instructions: (pc=0x00007fdacdd946d4)
0x00007fdacdd945d4:   48 89 85 00 ff ff ff e8 30 ea 1d 00 49 8b 45 10
0x00007fdacdd945e4:   4c 89 ee 4c 89 f7 48 89 85 60 ff ff ff e8 2a e0
0x00007fdacdd945f4:   1d 00 48 8d 85 70 ff ff ff 4c 89 ad 08 ff ff ff
0x00007fdacdd94604:   4d 89 f5 48 89 85 d8 fe ff ff 66 90 80 bd 40 ff
0x00007fdacdd94614:   ff ff 00 74 14 48 8b b5 48 ff ff ff ba 01 00 00
0x00007fdacdd94624:   00 4c 89 ef e8 33 e6 1d 00 49 8d 9c 24 b8 09 00
0x00007fdacdd94634:   00 80 bd 10 ff ff ff 00 0f 85 0e 01 00 00 48 8b
0x00007fdacdd94644:   85 60 ff ff ff 48 3b 85 30 ff ff ff 0f 83 e6 fd
0x00007fdacdd94654:   ff ff 80 bd 40 ff ff ff 00 0f 85 2d 01 00 00 4c
0x00007fdacdd94664:   8b 38 41 0f b7 57 30 4c 89 bd 58 ff ff ff 83 e2
0x00007fdacdd94674:   0f 66 83 fa 0c 0f 84 e9 00 00 00 48 83 c0 08 80
0x00007fdacdd94684:   bd 40 ff ff ff 00 48 89 85 60 ff ff ff 74 a2 48
0x00007fdacdd94694:   8b b5 48 ff ff ff ba 01 00 00 00 4c 89 ef e8 b9
0x00007fdacdd946a4:   e5 1d 00 e9 64 ff ff ff 0f 1f 40 00 48 8d 05 49
0x00007fdacdd946b4:   3d c1 00 48 8d 0d 30 66 88 00 48 8d 15 5b ea 7c
0x00007fdacdd946c4:   00 be 3b 01 00 00 48 8d 3d 9f e7 7c 00 48 8b 00
0x00007fdacdd946d4:   c6 00 58 31 c0 e8 f2 15 8e ff e8 4d 70 24 00 e9
0x00007fdacdd946e4:   11 fe ff ff 0f 1f 84 00 00 00 00 00 48 8b bd e0
0x00007fdacdd946f4:   fe ff ff e8 d4 4f 1e 00 0f b7 40 30 83 e0 07 66
0x00007fdacdd94704:   83 f8 07 0f 85 45 fe ff ff e9 73 fe ff ff 66 0f
0x00007fdacdd94714:   1f 44 00 00 48 8d 05 e1 3c c1 00 48 8d 0d 40 2a
0x00007fdacdd94724:   84 00 48 8d 15 11 a8 85 00 be 5f 03 00 00 48 8d
0x00007fdacdd94734:   3d 27 35 6e 00 48 8b 00 c6 00 58 31 c0 e8 8a 15
0x00007fdacdd94744:   8e ff e8 e5 6f 24 00 e9 c3 fd ff ff 48 8b bd 00
0x00007fdacdd94754:   ff ff ff e8 44 e6 1d 00 e9 e1 fe ff ff 0f 1f 80
0x00007fdacdd94764:   00 00 00 00 49 8b 07 4c 89 ff ff 50 28 48 8d 0d
0x00007fdacdd94774:   70 15 d1 00 48 3b 01 74 33 48 8b 85 60 ff ff ff
0x00007fdacdd94784:   e9 f6 fe ff ff 0f 1f 80 00 00 00 00 48 8b b5 08
0x00007fdacdd94794:   ff ff ff 31 d2 4c 89 ef e8 bf e4 1d 00 48 8b 85
0x00007fdacdd947a4:   60 ff ff ff e9 b6 fe ff ff 0f 1f 00 49 8d 77 1c
0x00007fdacdd947b4:   49 8d 7f 08 e8 73 c5 ff ff 48 3b 85 08 ff ff ff
0x00007fdacdd947c4:   74 33 48 8d 05 33 3c c1 00 48 8d 0d a5 20 84 00 


Stack slot to memory mapping:
stack at sp + 0 slots: 0x00007fda9e705a00 is pointing into the stack for thread: 0x00007fdac8351000
stack at sp + 1 slots: 0x00007fda581c9c28 points into unknown readable memory: a0 62 97 ce da 7f 00 00
stack at sp + 2 slots: 0x00007fda9e7050c0 is pointing into the stack for thread: 0x00007fdac8351000
stack at sp + 3 slots: 0x00007fdacdd92df4: <offset 0x000000000119fdf4> in /var/lib/jenkins/jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fdaccbf3000
stack at sp + 4 slots: 0x00007fda9e705040 is pointing into the stack for thread: 0x00007fdac8351000
stack at sp + 5 slots: 0x0000000000000008 is an unknown value
stack at sp + 6 slots: 0x0000000100000000 is an unknown value
stack at sp + 7 slots: 0xbf8000003f7fffef is an unknown value
Comments
Assert was added by JDK-8212610. Roland, could you please have a look?
30-08-2019

initial ILW = c2 crash; seems rare, reported only with Lucene test, with -XX:+DeoptimizeALot; disable loop opts or compilation of affected method = HLM = P3 (the assert added with JDK-8212610; maybe related)
23-08-2019