Crash in GCTaskThread in native code after migrating to OpenJDK 8

Solution Verified - Updated -

Issue

  • Fatal error log shows the following:
#  SIGSEGV (0xb) at pc=0x0000000030000000, pid=1802844, tid=0x00007f89cc3f5700
#
# JRE version: OpenJDK Runtime Environment (8.0_262-b10) (build 1.8.0_262-b10)
# Java VM: OpenJDK 64-Bit Server VM (25.262-b10 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  0x0000000030000000

Current thread (0x00007f89f4133800):  GCTaskThread [stack: 0x00007f89cc2f6000,0x00007f89cc3f6000] [id=1802896

Stack: [0x00007f89cc2f6000,0x00007f89cc3f6000],  sp=0x00007f89cc3f4a68,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x0000000030000000
V  [libjvm.so+0x4ef368]  CMSMarkStack::par_push(oopDesc*)+0x58
V  [libjvm.so+0x4e451b]  Par_PushOrMarkClosure::do_oop(oopDesc*)+0xeb
V  [libjvm.so+0x90b410]  ObjArrayKlass::oop_oop_iterate_nv(oopDesc*, Par_PushOrMarkClosure*)+0xb0
V  [libjvm.so+0x4e38ad]  Par_MarkFromRootsClosure::scan_oops_in_oop(HeapWord*)+0x28d
V  [libjvm.so+0x4e3b13]  Par_MarkFromRootsClosure::do_bit(unsigned long)+0x83
V  [libjvm.so+0x349e6d]  BitMap::iterate(BitMapClosure*, unsigned long, unsigned long)+0x9d
V  [libjvm.so+0x4db5e3]  CMSConcMarkingTask::do_scan_and_mark(int, CompactibleFreeListSpace*)+0x2f3
V  [libjvm.so+0x4ebdb1]  CMSConcMarkingTask::work(unsigned int)+0xb1
V  [libjvm.so+0xb768af]  YieldingFlexibleGangWorker::loop()+0xbf
V  [libjvm.so+0x93a382]  java_start(Thread*)+0xf2
  • Using the Concurrent Mark Sweep (CMS) collector (-XX:+UseConcMarkSweepGC).

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 7.5
    • 7.8
  • OpenJDK 8
    • 1.8.0_242-b08
    • 1.8.0_262-b10
  • Red Hat JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In