JDK-8169330 : SIGSEGV at PSParallelCompact::IsAliveClosure::do_object_b
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8u92
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2016-11-07
  • Updated: 2017-08-15
  • Resolved: 2017-08-15
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
Crash at PSParallelCompact::IsAliveClosure::do_object_b

JBoss with Java 8.
Upgraded Java from 7 to 8.
After Java upgrade to 8, whole java process that starts JBoss is crashing. 

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2cb17d15f6, pid=25943, tid=0x00007f2c878f8700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_92-b14) (build 1.8.0_92-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x97d5f6]  PSParallelCompact::IsAliveClosure::do_object_b(oopDesc*)+0x36
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

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

Current thread (0x00007f2cac275000):  VMThread [stack: 0x00007f2c877f8000,0x00007f2c878f9000] [id=25962]

siginfo: si_signo: 11 (SIGSEGV), si_code: 128 (SI_KERNEL), si_addr: 0x0000000000000000

Registers:
RAX=0x0000000000000100, RBX=0x00007f2c5c8d4900, RCX=0x0000000000000008, RDX=0x00007f2c1c000000
RSP=0x00007f2c878f7040, RBP=0x00007f2c878f7040, RSI=0x1fffffff58000008, RDI=0x007ffffffd600000
R8 =0x0000000000000002, R9 =0x0000000000000030, R10=0x0000000000000ff8, R11=0x00007f2cb17d15c0
R12=0x0000000000000000, R13=0x00007f2c5c8d4958, R14=0x00007f2cb1e0d580, R15=0x00007f2c878f7060
RIP=0x00007f2cb17d15f6, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000000
  TRAPNO=0x000000000000000d

Top of Stack: (sp=0x00007f2c878f7040)
0x00007f2c878f7040:   00007f2c878f73c0 00007f2cb170ff7c
0x00007f2c878f7050:   00007f2c878f7170 00007f2c878f7280
0x00007f2c878f7060:   0000000000000000 0000000000000000
0x00007f2c878f7070:   0000000000000000 0000000000000000
0x00007f2c878f7080:   00007f2cb0e52810 00007f2cb0e52810
0x00007f2c878f7090:   0000000000000000 0000000000000000
0x00007f2c878f70a0:   0000000000000000 0000000000000000
0x00007f2c878f70b0:   000000059f6bed90 00007f2cb1e0d4c0
0x00007f2c878f70c0:   00007f2c878f7130 00007f2cb14a2a1c
0x00007f2c878f70d0:   0000000552270868 0000000552270868
0x00007f2c878f70e0:   00000007c0041538 00000007c0041538
0x00007f2c878f70f0:   0000000000000000 00007f2cac251170
0x00007f2c878f7100:   0000000000000000 00007f2cb1e094a0
0x00007f2c878f7110:   00007f2cac251130 000000357aa79f26
0x00007f2c878f7120:   00007f2c878f75c0 00007f2cb1dfe3f8
0x00007f2c878f7130:   00007f2c878f72c0 00007f2cb17c8e02
0x00007f2c878f7140:   0000002200000000 0000000000000008
0x00007f2c878f7150:   0000000000000001 0000000000000000
0x00007f2c878f7160:   0000000000000000 0000000000000000
0x00007f2c878f7170:   0000000000000240 0000003800000022
0x00007f2c878f7180:   0000007c0000005c 00007f2c34000020
0x00007f2c878f7190:   0000000000000020 0000000000000020
0x00007f2c878f71a0:   000000000000000c 0000000000000000
0x00007f2c878f71b0:   00007f2c878f7240 000000357aa7ab1c
0x00007f2c878f71c0:   00007f2cb1dd15b8 00007f2c878f7210
0x00007f2c878f71d0:   0000000000000020 00007f2cb176a805
0x00007f2c878f71e0:   0000000500000218 00007f2c878f7240
0x00007f2c878f71f0:   0000000000000020 00007f2c878f7240
0x00007f2c878f7200:   0000000000000020 000000000000000c
0x00007f2c878f7210:   00007f2cac03a230 00007f2cac275000
0x00007f2c878f7220:   00007f2c878f7240 00007f2cb18c1dd6
0x00007f2c878f7230:   0000000000000000 00007f2cb18c1dd6 

Instructions: (pc=0x00007f2cb17d15f6)
0x00007f2cb17d15d6:   8b 08 b8 01 00 00 00 48 89 e5 48 c1 ee 03 48 d3
0x00007f2cb17d15e6:   ee 48 89 f7 89 f1 83 e1 3f 48 c1 ef 06 48 d3 e0
0x00007f2cb17d15f6:   48 85 04 fa c9 0f 95 c0 c3 90 55 48 8b 16 48 89
0x00007f2cb17d1606:   f0 48 8b 77 10 48 89 c7 48 89 e5 4c 8b 9a 68 01 

Register to memory mapping:

RAX=0x0000000000000100 is an unknown value
RBX=0x00007f2c5c8d4900 is pointing into metadata
RCX=0x0000000000000008 is an unknown value
RDX=0x00007f2c1c000000 is an unknown value
RSP=0x00007f2c878f7040 is an unknown value
RBP=0x00007f2c878f7040 is an unknown value
RSI=0x1fffffff58000008 is an unknown value
RDI=0x007ffffffd600000 is an unknown value
R8 =0x0000000000000002 is an unknown value
R9 =0x0000000000000030 is an unknown value
R10=0x0000000000000ff8 is an unknown value
R11=0x00007f2cb17d15c0: <offset 0x97d5c0> in /apps/java/jre1.8.0_92-64/lib/amd64/server/libjvm.so at 0x00007f2cb0e54000
R12=0x0000000000000000 is an unknown value
R13=0x00007f2c5c8d4958 is pointing into metadata
R14=0x00007f2cb1e0d580: <offset 0xfb9580> in /apps/java/jre1.8.0_92-64/lib/amd64/server/libjvm.so at 0x00007f2cb0e54000
R15=0x00007f2c878f7060 is an unknown value


Stack: [0x00007f2c877f8000,0x00007f2c878f9000],  sp=0x00007f2c878f7040,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x97d5f6]  PSParallelCompact::IsAliveClosure::do_object_b(oopDesc*)+0x36
V  [libjvm.so+0x8bbf7c]  MethodData::clean_extra_data(BoolObjectClosure*)+0x1dc
V  [libjvm.so+0x6520a4]  InstanceKlass::clean_weak_instanceklass_links(BoolObjectClosure*)+0x54
V  [libjvm.so+0x7c97ce]  Klass::clean_weak_klass_links(BoolObjectClosure*, bool)+0x18e
V  [libjvm.so+0x97f3f1]  PSParallelCompact::marking_phase(ParCompactionManager*, bool, ParallelOldTracer*)+0x4e1
V  [libjvm.so+0x98458e]  PSParallelCompact::invoke_no_policy(bool)+0x40e
V  [libjvm.so+0x984e03]  PSParallelCompact::invoke(bool)+0x63
V  [libjvm.so+0x482564]  CollectedHeap::collect_as_vm_thread(GCCause::Cause)+0x114
V  [libjvm.so+0xabead1]  VM_CollectForMetadataAllocation::doit()+0x161
V  [libjvm.so+0xac6aa5]  VM_Operation::evaluate()+0x55
V  [libjvm.so+0xac4e7a]  VMThread::evaluate_operation(VM_Operation*)+0xba
V  [libjvm.so+0xac51fe]  VMThread::loop()+0x1ce
V  [libjvm.so+0xac5670]  VMThread::run()+0x70
V  [libjvm.so+0x91fad8]  java_start(Thread*)+0x108

VM_Operation (0x00007f2c76595190): CollectForMetadataAllocation, mode: safepoint, requested by thread 0x00007f2ad4044000


**********************************
A java agent nearly always appears to be tied into the process when reports of this crash have been seen. This one is no different : 

**********************************


	Line 1987: 7f2c8745a000-7f2c87460000 r--s 0003f000 fd:15 139                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/httpcore-4.3.2.jar
	Line 1988: 7f2c87460000-7f2c87471000 r--s 000bb000 fd:15 146                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/commons-math-2.1.jar
	Line 1989: 7f2c87471000-7f2c874f5000 r--s 00657000 fd:15 151                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/appagent.jar
	Line 2001: 7f2c8c001000-7f2c8c00c000 r--s 00085000 fd:15 140                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/httpclient-4.3.3.jar
	Line 2005: 7f2c94000000-7f2c94007000 r--s 00047000 fd:15 144                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/httpcore-nio-4.3.2.jar
	Line 2006: 7f2c94007000-7f2c94009000 r--s 00010000 fd:15 141                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/zt-zip-1.8.jar
	Line 2007: 7f2c94009000-7f2c9400f000 r--s 00048000 fd:15 133                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/asm-3.3.1.jar
	Line 2008: 7f2c9400f000-7f2c94012000 r--s 00022000 fd:15 142                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/httpclient-cache-4.3.3.jar
	Line 2009: 7f2c94012000-7f2c94016000 r--s 00027000 fd:15 143                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/commons-io-2.2.jar
	Line 2010: 7f2c94016000-7f2c9403a000 r--s 00154000 fd:15 137                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/singularity-xml.jar
	Line 2011: 7f2c9403a000-7f2c9403d000 r--s 0001e000 fd:15 145                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/servlet-api-2.5-6.1.3.jar
	Line 2012: 7f2c9403d000-7f2c94045000 r--s 00051000 fd:15 150                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/singularity-log4j.jar
	Line 2049: 7f2cb0005000-7f2cb000c000 r--s 0005c000 fd:15 147                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/asm-5.0.1.jar
	Line 2062: 7f2cb06ff000-7f2cb0701000 r--s 00008000 fd:15 148                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/httpmime-4.3.3.jar
	Line 2063: 7f2cb0701000-7f2cb0703000 r--s 0000d000 fd:15 138                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/commons-logging-1.1.1.jar
	Line 2064: 7f2cb0703000-7f2cb0705000 r--s 0000f000 fd:15 135                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/commons-fileupload-1.3.1.jar
	Line 2065: 7f2cb0705000-7f2cb0706000 r--s 00004000 fd:15 149                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/httpcore-niossl-4.0-alpha6.jar
	Line 2066: 7f2cb0706000-7f2cb070c000 r--s 00033000 fd:15 136                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/commons-codec-1.6.jar
	Line 2067: 7f2cb070c000-7f2cb070e000 r--s 00005000 fd:15 134                        /apps/appdynamics/appserveragent/ver4.1.7.2/lib/tp/slf4j-api-1.6.6.jar
	Line 2088: 7f2cb2055000-7f2cb2059000 r--s 0000f000 fd:15 17                         /apps/appdynamics/appserveragent/javaagent.jar


VM Arguments:
jvm_args: -D[Server:OLTP.Member1] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms5120m -Xmx10240m -Djboss.node.name=worker1 -XX:NewSize=4096m -XX:MaxNewSize=4096m -DJTAEnvironmentBean.xaAssumeRecoveryComplete=true -javaagent:/apps/appdynamics/appserveragent/javaagent.jar -Djdk.tls.allowUnsafeServerCertChange=true -Dcom.ibm.mq.cfg.useIBMCipherMappings=false -Dcom.ibm.mq.cfg.preferTLS=true -XX:MaxMetaspaceSize=1024m -Dlog4j.configurationFile=/apps/core/modules/com/app1/core/configuration/main/resources/log4j2.xml -Djavax.net.ssl.trustStore=/apps/core/keystores/certs/cacerts -Dappdynamics.agent.nodeName=LSPRA00A0036_OLTP.Member1 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djavax.net.ssl.trustStoreType=JKS -Djboss.modules.system.pkgs=com.singularity -Djavax.net.ssl.trustStorePassword=changeit -Djava.net.preferIPv4Stack=true -Djboss.home.dir=/apps/jboss/current -Djavax.net.ssl.keyStoreType=JKS -Dappdynamics.controller.port=8090 -Dorg.jboss.resolver.warning=true -Djboss.modules.policy-permissions=true -Dappdynamics.controller.hostName=sit-lending-appdynamics.app1.com -Djavax.net.ssl.keyStorePassword=changeit -Djboss.as.management.blocking.timeout=1200 -Dappdynamics.agent.tierName=CoreOLTP -DlogFilePath=/apps/logs/core-portal -Dsun.rmi.dgc.client.gcInterval=3600000 -Djava.awt.headless=true -Dappdynamics.agent.applicationName=CORE-SIT -Djavax.net.ssl.keyStore=/apps/core/keystores/certs/corecommon.jks -Djboss.server.log.dir=/apps/jboss/current/domain/servers/OLTP.Member1/log -Djboss.server.temp.dir=/apps/jboss/current/domain/servers/OLTP.Member1/tmp -Djboss.server.data.dir=/apps/jboss/current/domain/servers/OLTP.Member1/data -Dlogging.configuration=file:/apps/jboss/current/domain/servers/OLTP.Member1/data/logging.properties 
java_command: /apps/jboss/current/jboss-modules.jar -mp /apps/jboss/current/modules:/apps/core/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server
java_class_path (initial): /apps/jboss/current/jboss-modules.jar:/apps/appdynamics/appserveragent/javaagent.jar
Launcher Type: SUN_STANDARD


Comments
Closing as a duplicate of JDK-8156137
15-08-2017

This seems potentially to be a duplicate of JDK-8156137 which has not been backported to 8u yet. All of these crashes involving AppDynamics agent may be the same issue
20-01-2017