Java 17 crash compiling Oracle JDBC driver code

Solution Unverified - Updated -

Issue

  • We are seeing recurring crashes in java compiler threads compiling oracle jdbc driver methods like oracle.net.resolver.AddrResolution::resolveAddrTree, oracle.net.resolver.AddrResolution::resolveTNSAddress or oracle.net.resolver.NavAddress::navigate:
# JRE version: OpenJDK Runtime Environment (Red_Hat-17.0.15.0.6-1) (17.0.15+6) (build 17.0.15+6-LTS)
# Java VM: OpenJDK 64-Bit Server VM (Red_Hat-17.0.15.0.6-1) (17.0.15+6-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xaca44d]  PhaseIdealLoop::identical_backtoback_ifs(Node*)+0x7d

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

Current thread (0x0000558733aaf9f0):  JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=1151372, stack(0x00007f98f38fe000,0x00007f98f39fe000)]


Current CompileTask:
C2:39135329 32558   !   4       oracle.net.resolver.AddrResolution::resolveAddrTree (232 bytes)

Stack: [0x00007f98f38fe000,0x00007f98f39fe000],  sp=0x00007f98f39f8a60,  free space=1002k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xaca44d]  PhaseIdealLoop::identical_backtoback_ifs(Node*)+0x7d
V  [libjvm.so+0xacbb63]  PhaseIdealLoop::split_if_with_blocks_post(Node*)+0x33
V  [libjvm.so+0xacc7f3]  PhaseIdealLoop::split_if_with_blocks(VectorSet&, Node_Stack&)+0x183
V  [libjvm.so+0xac477f]  PhaseIdealLoop::build_and_optimize()+0xfbf
V  [libjvm.so+0x5e2d98]  PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x188
V  [libjvm.so+0x5e0281]  Compile::Optimize()+0x3f1
V  [libjvm.so+0x5e24ec]  Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0x140c
V  [libjvm.so+0x51e119]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0xc9
V  [libjvm.so+0x5ec485]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xfe5
V  [libjvm.so+0x5ed318]  CompileBroker::compiler_thread_loop()+0x668
V  [libjvm.so+0xeaba48]  JavaThread::thread_main_inner()+0x178
V  [libjvm.so+0xeabb98]  JavaThread::run()+0x138
V  [libjvm.so+0xeaec9f]  Thread::call_run()+0x6f
V  [libjvm.so+0xc22bd3]  thread_native_entry(Thread*)+0xe3

Environment

  • Oracle Java 17
  • Red Hat OpenJDK 17

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content