JDK-8225310 : JFR crashed in JfrPeriodicEventSet::requestProtectionDomainCacheTableStatistics()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 13
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2019-06-04
  • Updated: 2019-08-15
  • Resolved: 2019-06-18
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 13 JDK 14
13 b26Fixed 14Fixed
Related Reports
Relates :  
Description
Test failed with 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f2b0bbccdfc, pid=32205, tid=32221
#
# JRE version: Java(TM) SE Runtime Environment (13.0+23) (build 13-ea+23)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (13-ea+23, mixed mode, sharing, tiered, compressed oops, parallel gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x7c5dfc]  Hashtable<WeakHandle<(WeakHandleType)0>, (MemoryType)1>::statistics_calculate(WeakHandle<(WeakHandleType)0> (*)(HashtableEntry<WeakHandle<(WeakHandleType)0>, (MemoryType)1>*))+0xcc
#
# Core dump will be written. Default location: /scratch/opt/mach5/mesos/work_dir/slaves/df27b84d-b5c1-4760-9e48-df95fd33274c-S89/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/40e928ec-1a6b-4e61-98e1-bfb8c5e1f39c/runs/ade6c5f1-5fe7-4690-9edd-cec6954071e1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese24H_java/scratch/0/core.32205
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -XX:MaxRAMPercentage=8 -XX:+UseParallelGC -XX:StartFlightRecording=dumponexit=true,maxsize=500M -XX:FlightRecorderOptions=repository=jfrrep --add-opens=java.base/java.net=ALL-UNNAMED -Dseed=3069195784047773 -XX:MaxRAMPercentage=50 applications.runthese.Runner -duration 1440 -runlist /scratch/opt/mach5/mesos/work_dir/slaves/df27b84d-b5c1-4760-9e48-df95fd33274c-S89/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/40e928ec-1a6b-4e61-98e1-bfb8c5e1f39c/runs/ade6c5f1-5fe7-4690-9edd-cec6954071e1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese24H_java/scratch/0/./RunTheseTestList.dat

Host: Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz, 6 cores, 29G, Oracle Linux Server release 7.1
Time: Mon Jun  3 20:37:37 2019 UTC elapsed time: 8553 seconds (0d 2h 22m 33s)

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

Current thread (0x00007f2b041cc800):  JavaThread "JFR Periodic Tasks" daemon [_thread_in_vm, id=32221, stack(0x00007f2ac50cc000,0x00007f2ac51cd000)]

Stack: [0x00007f2ac50cc000,0x00007f2ac51cd000],  sp=0x00007f2ac51cb510,  free space=1021k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x7c5dfc]  Hashtable<WeakHandle<(WeakHandleType)0>, (MemoryType)1>::statistics_calculate(WeakHandle<(WeakHandleType)0> (*)(HashtableEntry<WeakHandle<(WeakHandleType)0>, (MemoryType)1>*))+0xcc
V  [libjvm.so+0xd143fa]  SystemDictionary::protection_domain_cache_statistics()+0x1a
V  [libjvm.so+0x862153]  JfrPeriodicEventSet::requestProtectionDomainCacheTableStatistics()+0x23
V  [libjvm.so+0x851485]  jfr_emit_event+0x345
J 12274  jdk.jfr.internal.JVM.emitEvent(JJJ)Z jdk.jfr@13-ea (0 bytes) @ 0x00007f2af4b018e1 [0x00007f2af4b01820+0x00000000000000c1]
J 1064643% c2 jdk.jfr.internal.PlatformRecorder.periodicTask()V jdk.jfr@13-ea (57 bytes) @ 0x00007f2af7be39a4 [0x00007f2af7be3520+0x0000000000000484]
j  jdk.jfr.internal.PlatformRecorder.lambda$startDiskMonitor$1()V+1 jdk.jfr@13-ea
j  jdk.jfr.internal.PlatformRecorder$$Lambda$56.run()V+4 jdk.jfr@13-ea
j  java.lang.Thread.run()V+11 java.base@13-ea
v  ~StubRoutines::call_stub
V  [libjvm.so+0x82e2d9]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x319
V  [libjvm.so+0x82c5d0]  JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x160
V  [libjvm.so+0x82c6a1]  JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0x81
V  [libjvm.so+0x8cdb3c]  thread_entry(JavaThread*, Thread*)+0x6c
V  [libjvm.so+0xd5f177]  JavaThread::thread_main_inner()+0x1f7
V  [libjvm.so+0xd63e3d]  Thread::call_run()+0x10d
V  [libjvm.so+0xbb5597]  thread_native_entry(Thread*)+0xe7

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 12274  jdk.jfr.internal.JVM.emitEvent(JJJ)Z jdk.jfr@13-ea (0 bytes) @ 0x00007f2af4b01868 [0x00007f2af4b01820+0x0000000000000048]
J 1064643% c2 jdk.jfr.internal.PlatformRecorder.periodicTask()V jdk.jfr@13-ea (57 bytes) @ 0x00007f2af7be39a4 [0x00007f2af7be3520+0x0000000000000484]
j  jdk.jfr.internal.PlatformRecorder.lambda$startDiskMonitor$1()V+1 jdk.jfr@13-ea
j  jdk.jfr.internal.PlatformRecorder$$Lambda$56.run()V+4 jdk.jfr@13-ea
j  java.lang.Thread.run()V+11 java.base@13-ea
v  ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000108

Register to memory mapping:

RAX=0x00007f2b0c62a380: <offset 0x0000000001223380> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk/13/23/linux-x64.jdk/jdk-13/lib/server/libjvm.so at 0x00007f2b0b407000
RBX=0x00007f2a84d54b50 points into unknown readable memory: 03 f2 38 2e 74 61 74 75
RCX=0x00007f2b0404ebe0 points into unknown readable memory: f1 03 00 00 00 00 00 00
RDX=0x0000000000000100 is an unknown value
RSP=0x00007f2ac51cb510 is pointing into the stack for thread: 0x00007f2b041cc800
RBP=0x00007f2ac51cb610 is pointing into the stack for thread: 0x00007f2b041cc800
RSI=0x0000000000000001 is an unknown value
RDI=0x00007f2b0c5a0230: <offset 0x0000000001199230> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk/13/23/linux-x64.jdk/jdk-13/lib/server/libjvm.so at 0x00007f2b0b407000
R8 =0x000000080030c218 is a pointer to class: 
java.lang.String {0x000000080030c218}
R9 =0x00000000b9fc85b8 is an unknown value
R10=0x00007f2af4b01868 is at entry_point+72 in (nmethod*)0x00007f2af4b01690
R11=0x0000000000000246 is an unknown value
R12=0x000000000000030c is an unknown value
R13=0x0000000000000613 is an unknown value
R14=0x00007f2ac51cb838 is pointing into the stack for thread: 0x00007f2b041cc800
R15=0x0 is NULL


Registers:
RAX=0x00007f2b0c62a380, RBX=0x00007f2a84d54b50, RCX=0x00007f2b0404ebe0, RDX=0x0000000000000100
RSP=0x00007f2ac51cb510, RBP=0x00007f2ac51cb610, RSI=0x0000000000000001, RDI=0x00007f2b0c5a0230
R8 =0x000000080030c218, R9 =0x00000000b9fc85b8, R10=0x00007f2af4b01868, R11=0x0000000000000246
R12=0x000000000000030c, R13=0x0000000000000613, R14=0x00007f2ac51cb838, R15=0x0000000000000000
RIP=0x00007f2b0bbccdfc, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f2ac51cb510)
0x00007f2ac51cb510:   0000000000000000 00007f2ac51cb6c0
0x00007f2ac51cb520:   00007f2ac51cb540 00007f2b0bbcc830
0x00007f2ac51cb530:   00007f2b0404ebe0 00000000000000e6
0x00007f2ac51cb540:   00007f2b0c4e81a0 00000000000000e6 

Instructions: (pc=0x00007f2b0bbccdfc)
0x00007f2b0bbcccfc:   06 8b 08 41 c1 e8 10 41 c1 e0 08 83 c1 03 48 d3
0x00007f2b0bbccd0c:   ea 0f b7 4e 06 66 c1 c1 08 0f b7 c1 31 d0 0f b7
0x00007f2b0bbccd1c:   56 04 44 31 c0 c1 e0 10 09 d0 31 d2 f7 37 89 d0
0x00007f2b0bbccd2c:   c3 0f 1f 00 55 48 89 e5 41 57 49 89 d7 41 56 48
0x00007f2b0bbccd3c:   8d 85 30 ff ff ff 41 55 41 54 53 48 89 f3 48 81
0x00007f2b0bbccd4c:   ec d8 00 00 00 f2 0f 10 05 df 2c 72 00 48 89 bd
0x00007f2b0bbccd5c:   08 ff ff ff 48 89 c7 48 89 85 10 ff ff ff 48 89
0x00007f2b0bbccd6c:   b5 20 ff ff ff e8 3a fd 3b 00 8b 03 85 c0 0f 8e
0x00007f2b0bbccd7c:   69 03 00 00 48 c7 85 28 ff ff ff 00 00 00 00 45
0x00007f2b0bbccd8c:   31 ed 66 90 48 8b 85 20 ff ff ff 48 8b b5 28 ff
0x00007f2b0bbccd9c:   ff ff 48 8b 40 08 48 8d 04 f0 48 8b 18 48 85 db
0x00007f2b0bbccdac:   0f 84 2e 03 00 00 45 31 e4 eb 7d 66 0f 1f 84 00
0x00007f2b0bbccdbc:   00 00 00 00 48 89 df 41 ff d7 48 89 c7 ff 15 e1
0x00007f2b0bbccdcc:   32 9d 00 48 89 c2 48 85 c0 74 53 48 8d 05 ce 9f
0x00007f2b0bbccddc:   a3 00 0f b6 30 48 8d 05 98 d5 a5 00 4c 8b 40 10
0x00007f2b0bbccdec:   40 84 f6 0f 84 2b 01 00 00 48 8d 3d 34 34 9d 00
0x00007f2b0bbccdfc:   8b 42 08 8b 4f 08 48 d3 e0 48 03 07 48 89 c7 4c
0x00007f2b0bbcce0c:   39 c0 0f 84 19 01 00 00 8b 4f 08 85 c9 0f 8e 89
0x00007f2b0bbcce1c:   01 00 00 f6 c1 01 75 24 c1 f9 03 41 01 cd 48 8b
0x00007f2b0bbcce2c:   5b 08 48 83 e3 fe 74 2d 41 83 c4 01 4d 85 ff 75
0x00007f2b0bbcce3c:   83 48 8b 7b 10 eb 86 0f 1f 44 00 00 48 8b 07 48
0x00007f2b0bbcce4c:   89 d6 ff 90 00 01 00 00 48 8b 5b 08 41 01 c5 48
0x00007f2b0bbcce5c:   83 e3 fe 75 d3 66 0f ef c0 f2 41 0f 2a c4 48 8b
0x00007f2b0bbcce6c:   bd 10 ff ff ff e8 fa f5 3b 00 48 8b 8d 20 ff ff
0x00007f2b0bbcce7c:   ff 48 83 85 28 ff ff ff 01 48 8b 85 28 ff ff ff
0x00007f2b0bbcce8c:   39 01 0f 8f fc fe ff ff 49 63 cd 8b 85 38 ff ff
0x00007f2b0bbcce9c:   ff 48 8b 9d 08 ff ff ff 48 8d 55 80 41 b9 18 00
0x00007f2b0bbcceac:   00 00 48 8b b5 20 ff ff ff 66 0f 28 8d 40 ff ff
0x00007f2b0bbccebc:   ff 41 b8 08 00 00 00 89 45 88 48 8d 05 c3 b2 91
0x00007f2b0bbccecc:   00 48 89 df 66 0f 28 95 50 ff ff ff 66 0f 28 9d
0x00007f2b0bbccedc:   60 ff ff ff 48 83 c6 38 0f 29 4d 90 f2 0f 10 85
0x00007f2b0bbcceec:   70 ff ff ff 48 83 c0 10 48 89 45 80 0f 29 55 a0 


Stack slot to memory mapping:
stack at sp + 0 slots: 0x0 is NULL
stack at sp + 1 slots: 0x00007f2ac51cb6c0 is pointing into the stack for thread: 0x00007f2b041cc800
stack at sp + 2 slots: 0x00007f2ac51cb540 is pointing into the stack for thread: 0x00007f2b041cc800
stack at sp + 3 slots: 0x00007f2b0bbcc830: <offset 0x00000000007c5830> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk/13/23/linux-x64.jdk/jdk-13/lib/server/libjvm.so at 0x00007f2b0b407000
stack at sp + 4 slots: 0x00007f2b0404ebe0 points into unknown readable memory: f1 03 00 00 00 00 00 00
stack at sp + 5 slots: 0x00000000000000e6 is an unknown value
stack at sp + 6 slots: 0x00007f2b0c4e81a0: <offset 0x00000000010e11a0> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk/13/23/linux-x64.jdk/jdk-13/lib/server/libjvm.so at 0x00007f2b0b407000
stack at sp + 7 slots: 0x00000000000000e6 is an unknown value

Comments
Okay, thanks. Linked up JDK-8185525.
26-06-2019

[~shade] - This bug fix is to code that was added by this bug ID: JDK-8185525 Add JFR event for DictionarySizes JDK-8185525 was pushed to JDK-13-B20 and this fix has not been backported to any earlier release. So adding '11' to the "Affects Version/s" field is not correct.
26-06-2019

Attaching backtrace of all the threads, which I obtained, to the best of my abilities (the crashed thread is missing though).
14-06-2019

ILW = HLH = P2
11-06-2019