JDK-8256574 : assert(task_entry.is_array_slice() || _next_mark_bitmap->is_marked(cast_from_oop(task_entry.obj()))) failed: Any stolen object should be a slice or marked
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 16
  • Priority: P2
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2020-11-18
  • Updated: 2021-01-16
  • Resolved: 2021-01-16
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.
JDK 16
16Resolved
Related Reports
Relates :  
Description
Test gc/g1/ihop/TestIHOPStatic.java failed with
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/47535081-0322-4d83-bb78-f7e11abb86d0-S45878/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c909db09-6c9b-402f-b3f3-aca8c6860a96/runs/991019b7-aa93-4076-a8df-1733e5f45dc3/workspace/open/src/hotspot/share/gc/g1/g1ConcurrentMark.inline.hpp:161), pid=23389, tid=23416
#  assert(task_entry.is_array_slice() || _next_mark_bitmap->is_marked(cast_from_oop<HeapWord*>(task_entry.obj()))) failed: Any stolen object should be a slice or marked
#
# JRE version: Java(TM) SE Runtime Environment (16.0+24) (fastdebug build 16-ea+24-1553)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 16-ea+24-1553, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xc1a9e5]  void G1CMTask::process_grey_task_entry<true>(G1TaskQueueEntry)+0x225
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/47535081-0322-4d83-bb78-f7e11abb86d0-S45878/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c3a05e94-0b07-4665-b85a-f164265d52f7/runs/c5595ca1-a2bf-44d9-914f-195c91c1c918/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_gc_1/scratch/3/core.23389)
..


Current thread (0x00007f0130000ae0):  ConcurrentGCThread "G1 Conc#1" [stack: 0x00007f00f79f6000,0x00007f00f7af6000] [id=23416]

Stack: [0x00007f00f79f6000,0x00007f00f7af6000],  sp=0x00007f00f7af4bf0,  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+0xc1a9e5]  void G1CMTask::process_grey_task_entry<true>(G1TaskQueueEntry)+0x225
V  [libjvm.so+0xc15a5c]  G1CMTask::do_marking_step(double, bool, bool)+0x126c
V  [libjvm.so+0xc1fcdd]  G1CMConcurrentMarkingTask::work(unsigned int)+0x19d
V  [libjvm.so+0x19f27f4]  GangWorker::run_task(WorkData)+0x84
V  [libjvm.so+0x19f2934]  GangWorker::loop()+0x44
V  [libjvm.so+0x188dc10]  Thread::call_run()+0x100
V  [libjvm.so+0x1570066]  thread_native_entry(Thread*)+0x116

Register to memory mapping:

RAX=0x00007f015b1bc000 points into unknown readable memory: 0x0000000000000058 | 58 00 00 00 00 00 00 00
RBX=0x00007f015a54a038: <offset 0x0000000002070038> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-16+24-1553/linux-x64-debug.jdk/jdk-16/fastdebug/lib/server/libjvm.so at 0x00007f01584da000
RCX=0x00007f0159ffc290: <offset 0x0000000001b22290> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-16+24-1553/linux-x64-debug.jdk/jdk-16/fastdebug/lib/server/libjvm.so at 0x00007f01584da000
RDX=0x00007f0159ffcaf0: <offset 0x0000000001b22af0> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-16+24-1553/linux-x64-debug.jdk/jdk-16/fastdebug/lib/server/libjvm.so at 0x00007f01584da000
RSP=0x00007f00f7af4bf0 points into unknown readable memory: 0x0000000000000000 | 00 00 00 00 00 00 00 00
RBP=0x00007f00f7af4c70 points into unknown readable memory: 0x00007f00f7af4d70 | 70 4d af f7 00 7f 00 00
RSI=0x00000000000000a1 is an unknown value
RDI=0x00007f0159ffc6e0: <offset 0x0000000001b226e0> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-16+24-1553/linux-x64-debug.jdk/jdk-16/fastdebug/lib/server/libjvm.so at 0x00007f01584da000
R8 =0x0 is NULL
R9 =0x0 is NULL
R10=0x0 is NULL
R11=0x00007f015405bc00 points into unknown readable memory: 0x00007f015a4a0fe8 | e8 0f 4a 5a 01 7f 00 00
R12=0x00007f0154057970 points into unknown readable memory: 0x00007f015a4a1288 | 88 12 4a 5a 01 7f 00 00
R13=0x00007f00f7af4c38 points into unknown readable memory: 0x00000000f01fef00 | 00 ef 1f f0 00 00 00 00
R14=0x00007f01540517d8 points into unknown readable memory: 0x00007f015a3e7810 | 10 78 3e 5a 01 7f 00 00
R15=0x00007f00f7af4c18 points into unknown readable memory: 0x00000000f01fef00 | 00 ef 1f f0 00 00 00 00


Registers:
RAX=0x00007f015b1bc000, RBX=0x00007f015a54a038, RCX=0x00007f0159ffc290, RDX=0x00007f0159ffcaf0
RSP=0x00007f00f7af4bf0, RBP=0x00007f00f7af4c70, RSI=0x00000000000000a1, RDI=0x00007f0159ffc6e0
R8 =0x0000000000000000, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x00007f015405bc00
R12=0x00007f0154057970, R13=0x00007f00f7af4c38, R14=0x00007f01540517d8, R15=0x00007f00f7af4c18
RIP=0x00007f01590f49e5, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f00f7af4bf0)
0x00007f00f7af4bf0:   0000000000000000 0000000000000000
0x00007f00f7af4c00:   00007f0154053090 0000000000000001
0x00007f00f7af4c10:   00007f00f7af4c70 00000000f01fef00
0x00007f00f7af4c20:   0000000000000000 0000000000000008 

Instructions: (pc=0x00007f01590f49e5)
0x00007f01590f48e5:   02 01 48 8d 15 57 27 02 01 be 4f 02 00 00 48 8d
0x00007f01590f48f5:   3d be 66 e8 00 48 8b 00 c6 00 58 31 c0 e8 b9 2c
0x00007f01590f4905:   e4 ff e8 84 bd 94 00 0f b6 03 41 81 ff 00 00 00
0x00007f01590f4915:   c0 0f 8d f4 00 00 00 4c 8b 7d c0 4c 89 7d c8 84
0x00007f01590f4925:   c0 0f 85 14 02 00 00 48 8d 05 c3 59 45 01 80 38
0x00007f01590f4935:   00 0f 84 84 01 00 00 41 8b 7f 08 e8 db 7d c4 ff
0x00007f01590f4945:   48 89 c6 4c 89 ff e8 80 de c3 ff 80 3b 00 48 63
0x00007f01590f4955:   d0 48 8d 05 5b b5 3c 01 48 8b 00 4c 8d 3c 00 0f
0x00007f01590f4965:   85 96 01 00 00 48 8b 45 b8 4c 39 fa 0f 82 a6 00
0x00007f01590f4975:   00 00 80 3b 00 48 89 45 c8 4d 8d 7c 24 08 0f 85
0x00007f01590f4985:   47 01 00 00 4c 89 ee 4c 89 ff e8 8c 66 00 00 49
0x00007f01590f4995:   01 84 24 a0 00 00 00 80 3b 00 0f 85 3b 01 00 00
0x00007f01590f49a5:   49 8b 84 24 a0 00 00 00 e9 4a fe ff ff 66 0f 1f
0x00007f01590f49b5:   44 00 00 80 3b 00 0f 85 e7 01 00 00 48 8d 05 e0
0x00007f01590f49c5:   a7 3c 01 48 8d 0d c1 78 f0 00 48 8d 15 1a 81 f0
0x00007f01590f49d5:   00 be a1 00 00 00 48 8d 3d fe 7c f0 00 48 8b 00
0x00007f01590f49e5:   c6 00 58 31 c0 e8 d1 2b e4 ff e8 9c bc 94 00 e9
0x00007f01590f49f5:   72 fe ff ff 0f 1f 80 00 00 00 00 4c 8b 78 08 e9
0x00007f01590f4a05:   ae fe ff ff 0f 1f 80 00 00 00 00 84 c0 74 09 48
0x00007f01590f4a15:   8d 7d c0 e8 f3 0d 94 00 49 8b 84 24 80 00 00 00
0x00007f01590f4a25:   4c 8b 7d b8 48 89 45 a0 48 8d 05 c2 58 45 01 80
0x00007f01590f4a35:   38 00 0f 84 f3 00 00 00 41 8b 7f 08 e8 da 7c c4
0x00007f01590f4a45:   ff 48 89 c2 48 89 d6 4c 89 ff 48 89 55 90 e8 78
0x00007f01590f4a55:   dd c3 ff 80 3b 00 48 8b 55 90 4c 89 7d c0 89 45
0x00007f01590f4a65:   9c 0f 85 ec 00 00 00 48 63 72 10 48 8d 05 a9 3a
0x00007f01590f4a75:   45 01 4c 89 7d c8 48 8b 04 f0 48 8b 7d a0 4c 89
0x00007f01590f4a85:   ee ff d0 80 3b 00 0f 85 27 01 00 00 48 63 45 9c
0x00007f01590f4a95:   49 01 84 24 a0 00 00 00 e9 03 ff ff ff 66 0f 1f
0x00007f01590f4aa5:   44 00 00 48 8d 7d c0 e8 9f 0c 94 00 48 8b 45 c0
0x00007f01590f4ab5:   e9 e2 fd ff ff 66 0f 1f 44 00 00 49 8b 77 08 e9
0x00007f01590f4ac5:   7f fe ff ff 0f 1f 80 00 00 00 00 4c 89 ef e8 78
0x00007f01590f4ad5:   0c 94 00 e9 ac fe ff ff 0f 1f 00 4c 89 ef e8 28 


Stack slot to memory mapping:
stack at sp + 0 slots: 0x0 is NULL
stack at sp + 1 slots: 0x0 is NULL
stack at sp + 2 slots: 0x00007f0154053090 points into unknown readable memory: 0x00007f015a4a1038 | 38 10 4a 5a 01 7f 00 00
stack at sp + 3 slots: 0x0000000000000001 is an unknown value
stack at sp + 4 slots: 0x00007f00f7af4c70 points into unknown readable memory: 0x00007f00f7af4d70 | 70 4d af f7 00 7f 00 00
stack at sp + 5 slots: 0x00000000f01fef00 is an oop: jdk.internal.module.IllegalAccessLogger 
{0x00000000f01fef00} - klass: 'jdk/internal/module/IllegalAccessLogger'
 - ---- fields (total size 4 words):
 - private final 'mode' 'Ljdk/internal/module/IllegalAccessLogger$Mode;' @12  a 'jdk/internal/module/IllegalAccessLogger$Mode'{0x00000000f01fef20} (f01fef20)
 - private final 'warningStream' 'Ljava/io/PrintStream;' @16  a 'java/io/PrintStream'{0x00000000f06a6b58} (f06a6b58)
 - private final strict 'moduleToConcealedPackages' 'Ljava/util/Map;' @20  a 'java/util/Collections$UnmodifiableMap'{0x00000000f01fef38} (f01fef38)
 - private final strict 'moduleToExportedPackages' 'Ljava/util/Map;' @24  a 'java/util/Collections$UnmodifiableMap'{0x00000000f027d380} (f027d380)
 - private final strict 'callerToUsages' 'Ljava/util/Map;' @28  a 'java/util/WeakHashMap'{0x00000000f02a2c40} (f02a2c40)
stack at sp + 6 slots: 0x0 is NULL
stack at sp + 7 slots: 0x0000000000000008 is an unknown value

Comments
Closing as not reproducible. JDK-8256574 and JDK-8246468 appear to have been a result of faulty machines used in our testing, and have not reproduced since those machines were taken out of service.
16-01-2021

Host machine has been removed already.
02-12-2020