JDK-8196296 : Lucene test crashes C2 compilation
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9,10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-01-26
  • Updated: 2020-01-10
  • Resolved: 2018-01-30
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 10 JDK 11 JDK 8
10 b42Fixed 11Fixed 8-poolResolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
Current CompileTask:
C2:   9896 4126       4       org.apache.lucene.analysis.icu.ICUNormalizer2CharFilter::read (135 bytes)

Stack: [0x00007f98107c1000,0x00007f98108c2000],  sp=0x00007f98108bd840,  free space=1010k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xb31a35]  Node::add_req(Node*)+0xb5
V  [libjvm.so+0xaae13e]  Matcher::find_shared(Node*)+0x48e
V  [libjvm.so+0xab11ed]  Matcher::match()+0x8cd
V  [libjvm.so+0x63a1d3]  Compile::Code_Gen()+0x73
V  [libjvm.so+0x63fdbb]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x113b
V  [libjvm.so+0x565462]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x1d2
V  [libjvm.so+0x647af6]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3d6
V  [libjvm.so+0x648c8b]  CompileBroker::compiler_thread_loop()+0x28b
V  [libjvm.so+0xcd8748]  JavaThread::thread_main_inner()+0x108
V  [libjvm.so+0xb593d2]  thread_native_entry(Thread*)+0xf2
C  [libpthread.so.0+0x76ba]  start_thread+0xca

Reported by Uwe Schindler:

Full report and instructions to reproduce:
http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2018-January/028155.html
Comments
Fix request approved for JDK 10 by Group Lead.
29-01-2018

Fix Request: this is a crash in C2 in product builds so needs to be fixed. The fix handles a corner case in loop optimizations. Risk is low as it disables an existing optimization under some specific conditions. The fix was verified with a new regression test and the lucene test suite that triggered the bug. Review thread: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2018-January/028161.html webrev: http://cr.openjdk.java.net/~roland/8196296/webrev.00/ Reviewed by Vladimir Kozlov and Tobias Hartmann
29-01-2018

Please request approval for JDK 10 according to http://openjdk.java.net/projects/jdk/10/fix-request-process
26-01-2018

ILW = Crash during compilation (regression in JDK 10, affects product), reproduces with Lucene tests, disable loop strip mining = HHL = P2
26-01-2018