JDK-8222630 : C2 compilation fails with assert(tp->base() != Type::AnyPtr) failed: not a bare pointer
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 13
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-04-17
  • Updated: 2019-04-23
  • Resolved: 2019-04-23
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 13
13Resolved
Related Reports
Duplicate :  
Description
runtime/Metaspace/FragmentMetaspace.java fails due to a fatal error detected by the Java Runtime Environment.

See:
----------System.out:(26/1937)----------
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/machnode.cpp:381
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (open/src/hotspot/share/opto/machnode.cpp:381), pid=27808, tid=27839
#  assert(tp->base() != Type::AnyPtr) failed: not a bare pointer
#
# JRE version: Java(TM) SE Runtime Environment (13.0) (fastdebug build 13-internal+0-jdk13-jdk.856)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 13-internal+0-jdk13-jdk.856, mixed mode, tiered, z gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x11636d4]  MachNode::adr_type() const+0x274
#
# Core dump will be written. Default location: /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S77542/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07aabe41-2ecd-4af9-aa15-6d264fb2b9b4/runs/ee364d45-970f-4489-b5ef-f3c2b5a042af/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/core.27808
#
# An error report file with more information is saved as:
# /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S77542/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07aabe41-2ecd-4af9-aa15-6d264fb2b9b4/runs/ee364d45-970f-4489-b5ef-f3c2b5a042af/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/hs_err_pid27808.log
#
# Compiler replay data is saved as:
# /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S77542/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/07aabe41-2ecd-4af9-aa15-6d264fb2b9b4/runs/ee364d45-970f-4489-b5ef-f3c2b5a042af/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_runtime/scratch/2/replay_pid27808.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 27839
Dumping core ...

Current CompileTask:
C2:  29489 7736       4       com.sun.tools.javac.file.CacheFSInfo::isFile (27 bytes)

Stack: [0x00007f206fafb000,0x00007f206fbfc000],  sp=0x00007f206fbf6a50,  free space=1006k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x11636d4]  MachNode::adr_type() const+0x274
V  [libjvm.so+0xcaa2ca]  PhaseCFG::insert_anti_dependences(Block*, Node*, bool)+0x5a
V  [libjvm.so+0xcb0ed0]  PhaseCFG::schedule_late(VectorSet&, Node_Stack&)+0xab0
V  [libjvm.so+0xcb1389]  PhaseCFG::global_code_motion()+0x309
V  [libjvm.so+0xcb3aa1]  PhaseCFG::do_global_code_motion()+0x51
V  [libjvm.so+0x9949ac]  Compile::Code_Gen()+0x29c
V  [libjvm.so+0x998e35]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x1125
V  [libjvm.so+0x7d554d]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x10d
V  [libjvm.so+0x9a55ae]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x42e
V  [libjvm.so+0x9a64c8]  CompileBroker::compiler_thread_loop()+0x378
V  [libjvm.so+0x1635dba]  JavaThread::thread_main_inner()+0x26a
V  [libjvm.so+0x163e397]  JavaThread::run()+0x227
V  [libjvm.so+0x163b4d6]  Thread::call_run()+0xf6
V  [libjvm.so+0x135674d]  thread_native_entry(Thread*)+0x10d
Comments
Right, thanks! Closing as duplicate of JDK-8218468.
23-04-2019

Duplicate of JDK-8218468?
18-04-2019

This happened with ZGC. Nils, could you please have a look?
18-04-2019

ILW = Crash during C2 compilation, tier3 with ZGC (experimental), use different GC = HMM = P2
18-04-2019