JDK-8202356 : [Graal] java/lang/StackWalker/LocalsAndOperands.java crashed in G1ParScanThreadState::copy_to_survivor_space
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2018-04-26
  • Updated: 2019-12-19
  • Resolved: 2019-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
Relates :  
Description
java/lang/StackWalker/LocalsAndOperands.java crashed when running with Graal as JIT (-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djvmci.Compiler=graal).

The crash is:
#  SIGSEGV (0xb) at pc=0x00007f22c3914797, pid=31677, tid=31708
#
# JRE version: Java(TM) SE Runtime Environment (11.0) (fastdebug build 11-internal+0-2018-04-26-2014228.ekaterina.pavlova.jdk.jdk)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 11-internal+0-2018-04-26-2014228.ekaterina.pavlova.jdk.jdk, compiled mode, tiered, jvmci, jvmci compiler, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xd06797]  G1ParScanThreadState::copy_to_survivor_space(InCSetState, oop, markOopDesc*)+0x47


Comments
I see this test recently crashed but slightly different: java/lang/StackWalker/LocalsAndOperands.java#id0 # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f61314e5b07, pid=8068, tid=8147 # # JRE version: Java(TM) SE Runtime Environment (14.0) (fastdebug build 14-internal+0-2019-09-24-1809260.ekaterina.pavlova.jdk.jdk) # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-internal+0-2019-09-24-1809260.ekaterina.pavlova.jdk.jdk, compiled mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0x9a7b07] oopDesc::size_given_klass(Klass*)+0x17 --------------- T H R E A D --------------- Current thread (0x00007f60f4004800): GCTaskThread "GC Thread#3" [stack: 0x00007f60fd5fb000,0x00007f60fd6fb000] [id=8147] Stack: [0x00007f60fd5fb000,0x00007f60fd6fb000], sp=0x00007f60fd6f98d0, free space=1018k Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x9a7b07] oopDesc::size_given_klass(Klass*)+0x17 V [libjvm.so+0xc93a92] G1ParScanThreadState::copy_to_survivor_space(G1HeapRegionAttr, oop, markWord)+0x52 V [libjvm.so+0xc25278] void G1ParScanThreadState::do_oop_evac<unsigned int>(unsigned int*)+0xd8 V [libjvm.so+0xc94f91] G1ParScanThreadState::trim_queue()+0x231 V [libjvm.so+0xc19c38] G1ParEvacuateFollowersClosure::do_void()+0x68 V [libjvm.so+0xc2bee7] G1EvacuateRegionsBaseTask::evacuate_live_objects(G1ParScanThreadState*, unsigned int, G1GCPhaseTimes::GCParPhases, G1GCPhaseTimes::GCParPhases)+0x97 V [libjvm.so+0xc2c07e] G1EvacuateRegionsTask::evacuate_live_objects(G1ParScanThreadState*, unsigned int)+0x1e V [libjvm.so+0xc1c4af] G1EvacuateRegionsBaseTask::work(unsigned int)+0x10f V [libjvm.so+0x1818fe4] GangWorker::run_task(WorkData)+0x84 V [libjvm.so+0x1819128] GangWorker::loop()+0x48 V [libjvm.so+0x16f0506] Thread::call_run()+0xf6 V [libjvm.so+0x141273e] thread_native_entry(Thread*)+0x10e
25-09-2019

[~epavlova] Katya, are you able to reproduce this? I was unable to reproduce it in jdk11 or jdk12.
04-10-2018

Hi [~dnsimon], request your help with this bug. Thanks.
03-05-2018

Looks like a crash in the GC due to an invalid oop (might be related to JDK-8202245 / JDK-8198909). ILW = Crash in the GC (probably due to invalid oop), single test with Graal as JIT, use C2 = HLM = P3
03-05-2018