JDK-6922937 : G1: VM crashes with SIGSEGV in the ContiguousSpace::oop_iterate(OopClosure*)+0x35
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs17
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86
  • Submitted: 2010-02-03
  • Updated: 2011-01-19
  • Resolved: 2010-03-09
Related Reports
Duplicate :  
Relates :  
Description
See the full reports and rerun.sh in the http://sqeweb.sfbay.sun.com/nfs/tools/gtee/results/JDK6/ADHOC/VM/2010-02-02/vm/linux-i586/server/mixed/linux-i586_server_mixed_vm.gc.testlist/ResultDir/Compact_Arrays_ArrayOf1

Please note that the same test could also fails with the asserion:
#  Internal Error (/tmp/jprt/P1/B/230259.et151817/source/src/share/vm/gc_implementation/shared/markSweep.inline.hpp:90), pid=24258, tid=2746694544
#  Error: assert(new_obj != __null || obj->mark() == markOopDesc::prototype() || (UseBiasedLocking && obj->mark()->has_bias_pattern()) || obj->is_shared(),"should be forwarded")
or SIGSEV in another method :
 58 V  [libjvm.so+0x207bd5];;  oopDesc::size()+0x15
 59 V  [libjvm.so+0x4e61d2];;  G1ParCopyHelper::copy_to_survivor_space(oopDesc*)+0x12
 60 V  [libjvm.so+0x4ed94f];;  G1ParCopyClosure<false, (G1Barrier)1, false, false>::do_oop(oopDesc**)+0x3f

So please check that it is exactly this CR when reproduce it.

The report is:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb780acb5, pid=24185, tid=3017554832
#
# JRE version: 7.0-b80
# Java VM: Java HotSpot(TM) Server VM (17.0-b08-2010-01-22-230259.et151817.hs17b08-fastdebug mixed mode linux-x86 )
# Problematic frame:
# V  [libjvm.so+0x8c0cb5]
#
# 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 (0x0911b800):  GCTaskThread [stack: 0x00000000,0x00000000] [id=24190]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x000000d0;;

Registers:
EAX=0x00000000, EBX=0xa607df40, ECX=0x00000002, EDX=0xafc80938
ESP=0xb3dc31b0, EBP=0xb3dc31d8, ESI=0xa6080000, EDI=0xb3dc3264
EIP=0xb780acb5, CR2=0x000000d0, EFLAGS=0x00210283

Top of Stack: (sp=0xb3dc31b0)
0xb3dc31b0:   afc80938 a607df40 b3dc3264 00000002
0xb3dc31c0:   a57de800 ffffffff b7a2c45c 09162230
0xb3dc31d0:   00000009 09161a50 b3dc31f8 b7432e44
0xb3dc31e0:   09161a50 b3dc3264 b3dc3258 b3dc3258
0xb3dc31f0:   00000008 09161a50 b3dc3238 b7425da4
0xb3dc3200:   b3dc3258 09161a50 00000000 00000000
0xb3dc3210:   091ab500 0911b694 b3dc3258 000000a4
0xb3dc3220:   00000000 00000008 00000024 00000000

Instructions: (pc=0xb780acb5)
0xb780aca5:   1f 66 90 8b 43 04 51 8d 50 08 8b 40 08 57 53 52
0xb780acb5:   ff 90 d0 00 00 00 83 c4 10 8d 1c 83 39 f3 72 e3
;; b780aca5 1f                      pop    %ds
;; b780aca6 66                      data16
;; b780aca7 90                      nop
;; b780aca8 8b 43 04                mov    0x4(%ebx),%eax
;; b780acab 51                      push   %ecx
;; b780acac 8d 50 08                lea    0x8(%eax),%edx
;; b780acaf 8b 40 08                mov    0x8(%eax),%eax
;; b780acb2 57                      push   %edi
;; b780acb3 53                      push   %ebx
;; b780acb4 52                      push   %edx
;; ---------------
;; b780acb5 ff 90 d0 00 00 00       call   *0xd0(%eax)
;; b780acbb 83 c4 10                add    $0x10,%esp
;; b780acbe 8d 1c 83                lea    (%ebx,%eax,4),%ebx
;; b780acc1 39 f3                   cmp    %esi,%ebx
;; b780acbe 8d 1c 83                lea    (%ebx,%eax,4),%ebx
;; b780acc1 39 f3                   cmp    %esi,%ebx
;; b780acc3 72 e3                   jb     0xb780aca8
;;
Stack:
[error occurred during error reporting (printing stack bounds), id 0xe0000000]

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x8c0cb5];;  ContiguousSpace::oop_iterate(OopClosure*)+0x35
V  [libjvm.so+0x4e8e44];;  RebuildRSOutOfRegionClosure::doHeapRegion(HeapRegion*)+0x24
V  [libjvm.so+0x4dbda4];;  G1CollectedHeap::heap_region_par_iterate_chunked(HeapRegionClosure*, int, int)+0xe4
V  [libjvm.so+0x4ea4a4];;  ParRebuildRSTask::work(int)+0x64
V  [libjvm.so+0x9c2270];;  GangWorker::loop()+0x130
V  [libjvm.so+0x9c0c08];;  GangWorker::run()+0x18
V  [libjvm.so+0x7f0ac9];;  java_start(Thread*)+0xf9
C  [libpthread.so.0+0x5762]


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x092b0800 JavaThread "vm.gc.compact.Compact$Worker@1dd7056" [_thread_blocked, id=24216, stack(0xa384d000,0xa389e000)]
  0x091dec00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=24213, stack(0xa391f000,0xa3970000)]
  0x091dc800 JavaThread "CompilerThread1" daemon [_thread_blocked, id=24212, stack(0xa3970000,0xa39f1000)]
  0x091d8800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=24211, stack(0xa39f1000,0xa3a72000)]
  0x091d6800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=24210, stack(0xa3a72000,0xa3ac3000)]
  0x091d5000 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=24209, stack(0xa3ac3000,0xa3b14000)]
  0x091af400 JavaThread "Finalizer" daemon [_thread_blocked, id=24204, stack(0xa3b14000,0xa3b65000)]
  0x091ad800 JavaThread "Reference Handler" daemon [_thread_blocked, id=24203, stack(0xa3b65000,0xa3bb6000)]
  0x09111000 JavaThread "main" [_thread_blocked, id=24189, stack(0xb6ef9000,0xb6f4a000)]

Other Threads:
  0x091aa800 VMThread [stack: 0xa3bb6000,0xa3c37000] [id=24202]
  0x091e1800 WatcherThread [stack: 0xa389e000,0xa391f000] [id=24214]

=>0x0911b800 (exited) GCTaskThread [stack: 0x00000000,0x00000000] [id=24190]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x0910ea38] Threads_lock - owner thread: 0x091aa800
[0x0910f078] Heap_lock - owner thread: 0x092b0800

Heap
 garbage-first heap   total 167936K, used 132892K [0xa5800000, 0xafc00000, 0xafc00000)
  region size 1024K, 0 young (0K), 0 survivors (0K)
 compacting perm gen  total 16384K, used 2070K [0xafc00000, 0xb0c00000, 0xb3c00000)
   the space 16384K,  12% used [0xafc00000, 0xafe05b70, 0xafe05c00, 0xb0c00000)
No shared spaces configured.