dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.21k stars 497 forks source link

[Bug] jvm crash G1ParScanThreadState::copy_to_survivor_space #543

Closed carllhw closed 1 year ago

carllhw commented 1 year ago

日志

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fd1eca81fec, pid=8, tid=0x00007fd1d8708700
#
# JRE version: OpenJDK Runtime Environment (8.0_372-b01) (build 1.8.0_372-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.372-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x5dcfec]  G1ParScanThreadState::copy_to_survivor_space(InCSetState, oopDesc*, markOopDesc*)+0x1bc
#
# Core dump written. Default location: //core or core.8 (max size 5242880 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   mailto:dragonwell_use@googlegroups.com
#

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

Current thread (0x00007fd1e8023f90):  GCTaskThread [stack: 0x00007fd1d8609000,0x00007fd1d8709000] [id=11]

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

Registers:
RAX=0x751a73f000007fd1, RBX=0x00000007d7fd7340, RCX=0x0000000000007fd1, RDX=0x00007fd1ed504820
RSP=0x00007fd1d8707640, RBP=0x00007fd1d87076e0, RSI=0x00000007d7fd7340, RDI=0x00000007e0e50074
R8 =0x00007fd1e801f960, R9 =0x00007fd1d87076d8, R10=0x00007fd1ed52d1cc, R11=0x00007fd1d87076dc
R12=0x00007fd1d8707c30, R13=0x00007fd1ed504830, R14=0x00007fd1e82b03b0, R15=0x00007fd1d8707c30
RIP=0x00007fd1eca81fec, EFLAGS=0x0000000000010202, CSGSFS=0x002b000000000033, ERR=0x0000000000000000
  TRAPNO=0x000000000000000d

Top of Stack: (sp=0x00007fd1d8707640)
0x00007fd1d8707640:   0075006200690072 00000000ffffffff
0x00007fd1d8707650:   00007fd1d8707680 01007fd100000003
0x00007fd1d8707660:   00007fd1d8707690 02007fd1ecec9d65
0x00007fd1d8707670:   0000000000000000 0000000000000000
0x00007fd1d8707680:   0000000000000000 00007fd1d8707da0
0x00007fd1d8707690:   00007fd1d87076e0 00007fd1ece20797
0x00007fd1d87076a0:   0000000000000001 00007fd1c3066010
0x00007fd1d87076b0:   0000000000000000 0000000754463c04
0x00007fd1d87076c0:   00007fd1d8707c30 00007fd1ed504830
0x00007fd1d87076d0:   00007fd1e82b03b0 0000000000000010
0x00007fd1d87076e0:   00007fd1d8707790 00007fd1eca82bc8
0x00007fd1d87076f0:   00007fd1d8707730 00007fd1ecfd2782
0x00007fd1d8707700:   00007fd1d87077b0 00002edd5f705a85
0x00007fd1d8707710:   00002edd5f705a85 00007fd1d8707730
0x00007fd1d8707720:   0000004000000000 00007fd1d8707780
0x00007fd1d8707730:   00007fd1d8707760 00007fd1eca785b7
0x00007fd1d8707740:   0000000000820aa7 0000000001861f14
0x00007fd1d8707750:   00007fd1d8707780 0000000000000000
0x00007fd1d8707760:   00007fd1d8707810 00007fd1bc16a770
0x00007fd1d8707770:   00000000834e0b5f 00007fd1d8707c30
0x00007fd1d8707780:   00007fd1e8024220 00007fd1d8707990
0x00007fd1d8707790:   00007fd1d8707810 00007fd1eca590db
0x00007fd1d87077a0:   00007fd1d87077e0 00007fd1d8707800
0x00007fd1d87077b0:   00007fd1d8707c30 00007fd1d8707c30
0x00007fd1d87077c0:   00007fd1d8707890 00007fd1ed630235
0x00007fd1d87077d0:   00007fd1e801f960 00007fd1ed630235
0x00007fd1d87077e0:   0000000000000000 00007fd1bc16a770
0x00007fd1d87077f0:   0000000000000000 00007fd1d8707c30
0x00007fd1d8707800:   00007fd1e8024220 00007fd1d8707990
0x00007fd1d8707810:   00007fd1d8707e70 00007fd1eca6a676
0x00007fd1d8707820:   0000000000000000 00007fd1eca6a59c
0x00007fd1d8707830:   00007fd1d8707ba0 00007fd1d87079e0 

Instructions: (pc=0x00007fd1eca81fec)
0x00007fd1eca81fcc:   0c d3 60 00 89 c1 48 63 04 8a 48 01 d0 ff e0 0f
0x00007fd1eca81fdc:   1f 44 00 00 0f 85 fa 02 00 00 48 8b 07 48 89 de
0x00007fd1eca81fec:   ff 90 e8 00 00 00 89 85 78 ff ff ff e9 8c fe ff
0x00007fd1eca81ffc:   ff 4a 8d 14 e5 00 00 00 00 48 89 de 4c 89 f7 e8 

Register to memory mapping:

RAX=0x751a73f000007fd1 is an unknown value
RBX=0x00000007d7fd7340 is pointing into object: 0x00000007d7fd6430
[C 
 - klass: {type array char}
 - length: 2302
RCX=0x0000000000007fd1 is an unknown value
RDX=0x00007fd1ed504820: <offset 0x105f820> in /opt/java/openjdk/jre/lib/amd64/server/libjvm.so at 0x00007fd1ec4a5000
RSP=0x00007fd1d8707640 is an unknown value
RBP=0x00007fd1d87076e0 is an unknown value
RSI=0x00000007d7fd7340 is pointing into object: 0x00000007d7fd6430
[C 
 - klass: {type array char}
 - length: 2302
RDI=0x00000007e0e50074 is pointing into metadata
R8 =0x00007fd1e801f960 is an unknown value
R9 =0x00007fd1d87076d8 is an unknown value
R10=0x00007fd1ed52d1cc: <offset 0x10881cc> in /opt/java/openjdk/jre/lib/amd64/server/libjvm.so at 0x00007fd1ec4a5000
R11=0x00007fd1d87076dc is an unknown value
R12=0x00007fd1d8707c30 is an unknown value
R13=0x00007fd1ed504830: <offset 0x105f830> in /opt/java/openjdk/jre/lib/amd64/server/libjvm.so at 0x00007fd1ec4a5000
R14=0x00007fd1e82b03b0 is an unknown value
R15=0x00007fd1d8707c30 is an unknown value

Stack: [0x00007fd1d8609000,0x00007fd1d8709000],  sp=0x00007fd1d8707640,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x5dcfec]  G1ParScanThreadState::copy_to_survivor_space(InCSetState, oopDesc*, markOopDesc*)+0x1bc
V  [libjvm.so+0x5ddbc8]  G1ParScanThreadState::trim_queue()+0x528
V  [libjvm.so+0x5b40db]  G1ParEvacuateFollowersClosure::do_void()+0x2b
V  [libjvm.so+0x5c5676]  G1ParTask::work(unsigned int)+0x486
V  [libjvm.so+0xb9ee18]  GangWorker::loop()+0xd8
V  [libjvm.so+0x9a1632]  java_start(Thread*)+0x102

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

Java Threads: ( => current thread )
  0x00007fd1e800c1a0 JavaThread "DestroyJavaVM" [_thread_blocked, id=9, stack(0x00007fd1ec256000,0x00007fd1ec356000)]
  0x00007fd1680ca360 JavaThread "Wisp-Prevent-Shutdown-13" [_thread_blocked, id=69, stack(0x00007fd176a91000,0x00007fd176b92000)]
  0x00007fd1e8c05070 JavaThread "Service Thread" daemon [_thread_blocked, id=30, stack(0x00007fd1b49f2000,0x00007fd1b4af3000)]
  0x00007fd1e8bfaf40 JavaThread "C1 CompilerThread1" daemon [_thread_blocked, id=29, stack(0x00007fd1b4af4000,0x00007fd1b4bf4000)]
  0x00007fd1e8bf93e0 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=28, stack(0x00007fd1b4bf5000,0x00007fd1b4cf5000)]
  0x00007fd1e8bf77e0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=27, stack(0x00007fd1b4cf5000,0x00007fd1b4df6000)]
  0x00007fd1e8bf5f80 JavaThread "Elastic Heap timer" daemon [_thread_blocked, id=26, stack(0x00007fd1b4f11000,0x00007fd1b5012000)]
  0x00007fd1e8bf4620 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=25, stack(0x00007fd1b5012000,0x00007fd1b5113000)]
  0x00007fd1e8bf2dc0 JavaThread "Wisp-Root-Worker-0" daemon [_thread_blocked, id=24, stack(0x00007fd15b8d2000,0x00007fd15b969000)]
  0x00007fd1e8bf1560 JavaThread "Wisp-Root-Worker-1" daemon [_thread_blocked, id=23, stack(0x00007fd1b5214000,0x00007fd1b5315000)]
  0x00007fd1e8befd20 JavaThread "Wisp-Sysmon" daemon [_thread_blocked, id=22, stack(0x00007fd1b5315000,0x00007fd1b5416000)]
  0x00007fd1e8bee500 JavaThread "Wisp-Unpark-Dispatcher" daemon [_thread_blocked, id=21, stack(0x00007fd1b5416000,0x00007fd1b5517000)]
  0x00007fd1e8b45a30 JavaThread "Finalizer" daemon [_thread_blocked, id=20, stack(0x00007fd1b5c28000,0x00007fd1b5d29000)]
  0x00007fd1e8b43c90 JavaThread "Reference Handler" daemon [_thread_blocked, id=19, stack(0x00007fd1b5d29000,0x00007fd1b5e2a000)]

Other Threads:
  0x00007fd1e8b3a0f0 VMThread [stack: 0x00007fd1bc06c000,0x00007fd1bc16c000] [id=18]
  0x00007fd1e8bcf350 WatcherThread [stack: 0x00007fd1b48f2000,0x00007fd1b49f2000] [id=31]

=>0x00007fd1e8023f90 (exited) GCTaskThread [stack: 0x00007fd1d8609000,0x00007fd1d8709000] [id=11]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00007fd1e800a7f0] Threads_lock - owner thread: 0x00007fd1e8b3a0f0
[0x00007fd1e800acf0] Heap_lock - owner thread: 0x00007fd1e8bf2dc0

OutOfMemory and StackOverflow Exception counts:
StackOverflowErrors=15

heap address: 0x000000072d400000, size: 2868 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
Narrow klass base: 0x00000007e0800000, Narrow klass shift: 0
Compressed class space size: 1073741824 Address: 0x00000007e0800000

Heap:
 garbage-first heap   total 2936832K, used 1716093K [0x000000072d400000, 0x000000072d5059a0, 0x00000007e0800000)
  region size 1024K, 143 young (146432K), 7 survivors (7168K)
 Metaspace       used 208216K, capacity 246395K, committed 246528K, reserved 1265664K
  class space    used 26040K, capacity 31185K, committed 31232K, reserved 1048576K