Crash in GCTaskThread in native code after migrating to OpenJDK 8

Solution Verified - Updated -


  • 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  []  CMSMarkStack::par_push(oopDesc*)+0x58
V  []  Par_PushOrMarkClosure::do_oop(oopDesc*)+0xeb
V  []  ObjArrayKlass::oop_oop_iterate_nv(oopDesc*, Par_PushOrMarkClosure*)+0xb0
V  []  Par_MarkFromRootsClosure::scan_oops_in_oop(HeapWord*)+0x28d
V  []  Par_MarkFromRootsClosure::do_bit(unsigned long)+0x83
V  []  BitMap::iterate(BitMapClosure*, unsigned long, unsigned long)+0x9d
V  []  CMSConcMarkingTask::do_scan_and_mark(int, CompactibleFreeListSpace*)+0x2f3
V  []  CMSConcMarkingTask::work(unsigned int)+0xb1
V  []  YieldingFlexibleGangWorker::loop()+0xbf
V  []  java_start(Thread*)+0xf2
  • Using the Concurrent Mark Sweep (CMS) collector (-XX:+UseConcMarkSweepGC).


  • 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