JDK-6967162 : CMS: 6u18 on Solaris/sparc: crash at void ParScanThreadState::trim_queues
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 6u18
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2010-07-07
  • Updated: 2013-09-18
  • Resolved: 2010-08-11
Related Reports
Relates :  
Description
Customer got a crash (SIGSEGV). Important parts (demangeld) of the Java Fatal Error Log File are listed below.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x92cd3da8, pid=15102, tid=11
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode solaris-sparc )
# Problematic frame:
# C  0x92cd3da8
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

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

Current thread (0x00040000):  GCTaskThread [stack: 0x00000000,0x00000000] [id=11]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=2 (SEGV_ACCERR), si_addr=0x92cd3da8

Registers:
 O0=0x92cd3d30 O1=0x92cd3d60 O2=0x00000004 O3=0x92cd3d40
 O4=0xfee38800 O5=0x00000001 O6=0xfb77f218 O7=0xfeb1c0b4
 G1=0x80010000 G2=0xdb073420 G3=0x93c3b140 G4=0x00000000
 G5=0x92cd3da8 G6=0x00000000 G7=0xfe3a4a00 Y=0x00000000
 PC=0x92cd3da8 nPC=0x92cd3dac


Top of Stack: (sp=0xfb77f218)
0xfb77f218:   00000001 00000000 92cd3d28 fee38800
0xfb77f228:   fee38908 00000001 92cd3d60 9538d4bb
0xfb77f238:   00000010 9538d4a0 04892fb8 00000004
0xfb77f248:   0000000c 00000005 fb77f278 feb390f0
0xfb77f258:   000000b1 00e56818 0005c818 00000000
0xfb77f268:   00000009 f6089519 00000000 1aff1800
0xfb77f278:   ffffffff 04892fe0 00003fff 00047fcc
0xfb77f288:   fffffffc 9538d480 00000009 db079160 

Instructions: (pc=0x92cd3da8)
0x92cd3d98:   92 cd 3d a8 00 00 00 00 00 00 00 46 00 00 00 00
0x92cd3da8:   94 c3 89 d3 db 00 04 48 00 00 00 46 00 42 00 65 

Stack: [0x00000000,0x00000000],  sp=0xfb77f218,  free space=fffeddfc92cd3da8k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x92cd3da8
V [libjvm.so+0x7390f8] void ParScanThreadState::trim_queues(int)+0x244
V [libjvm.so+0x4eeb68] void ParScanClosure::do_oop_work(__type_0*,bool,bool)+0x104
V [libjvm.so+0x71d2e0] int objArrayKlass::oop_oop_iterate_nv_m(oopDesc*,FilteringClosure*,MemRegion)+0xc8
V [libjvm.so+0x401458] void FreeListSpace_DCTOC::walk_mem_region_with_cl_par(MemRegion,HeapWord*,HeapWord*,FilteringClosure*)+0x284
V [libjvm.so+0x4011a0] void FreeListSpace_DCTOC::walk_mem_region_with_cl(MemRegion,HeapWord*,HeapWord*,FilteringClosure*)+0x40
V [libjvm.so+0x79a2e0] void Filtering_DCTOC::walk_mem_region(MemRegion,HeapWord*,HeapWord*)+0x64
V [libjvm.so+0x79a120] void DirtyCardToOopClosure::do_MemRegion(MemRegion)+0x11c
V [libjvm.so+0x3b0884] void ClearNoncleanCardWrapper::do_MemRegion(MemRegion)+0x168
V [libjvm.so+0x3aecd8] void CardTableModRefBS::non_clean_card_iterate_work(MemRegion,MemRegionClosure*,bool)+0x1a0
V [libjvm.so+0x736ec4] void CardTableModRefBS::par_non_clean_card_iterate_work(Space*,MemRegion,DirtyCardToOopClosure*,MemRegionClosure*,bool,int)+0x1d8
V [libjvm.so+0x3ae7cc] void CardTableModRefBS::non_clean_card_iterate(Space*,MemRegion,DirtyCardToOopClosure*,MemRegionClosure*,bool)+0x5c
V [libjvm.so+0x3afd50] void CardTableRS::younger_refs_in_space_iterate(Space*,OopsInGenClosure*)+0x8c
V [libjvm.so+0x426518] void ConcurrentMarkSweepGeneration::younger_refs_iterate(OopsInGenClosure*)+0x40
V [libjvm.so+0x4b885c] void GenCollectedHeap::gen_process_strong_roots(int,bool,bool,SharedHeap::ScanningOption,OopsInGenClosure*,OopsInGenClosure*)+0x114
V [libjvm.so+0x73a520] void ParNewGenTask::work(int)+0x118
V [libjvm.so+0x853dcc] void GangWorker::loop()+0x8c
V [libjvm.so+0x728448] java_start+0x234 
[--snip--]
---------------  S Y S T E M  ---------------

OS:                       Solaris 10 8/07 s10s_u4wos_12b SPARC
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007

uname:SunOS 5.10 Generic_127111-10 sun4u  (T2 libthread)
rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
load average:1,21 1,31 1,43

CPU:total 16 has_v8, has_v9, popc, has_vis1, has_vis2, is_ultra3

Memory: 8k page, physical 268435456k(211592000k free)

vm_info: Java HotSpot(TM) Server VM (16.0-b13) for solaris-sparc JRE (1.6.0_18-b07), built on Dec 17 2009 14:12:56 by "" with Workshop 5.8

time: Wed Jul  7 02:46:51 2010
elapsed time: 3972 seconds

Comments
EVALUATION Their JVM options do not include -XX:-ReduceInitialCardMarks, so they are vulnerable to 6896647 and related bugs. I'd close this escalation after asking them to use the documented workaround (also documented in the 6u18 release notes, FWIW), or asking them to upgrade to 6u21.
08-07-2010