JDK-8229438 : ZGC: CompiledMethod::cleanup_inline_caches_impl
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 14
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-08-12
  • Updated: 2019-09-04
  • Resolved: 2019-09-04
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 14
14Resolved
Related Reports
Duplicate :  
Relates :  
Description
Test crashed with
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fcbab1666f4, pid=480, tid=513
#
# JRE version: Java(TM) SE Runtime Environment (14.0+9) (fastdebug build 14-ea+9-267)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-ea+9-267, mixed mode, tiered, z gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x9e56f4]  CompiledMethod::cleanup_inline_caches_impl(bool, bool)+0x254
#
# Core dump will be written. Default location: /scratch/opt/mach5/mesos/work_dir/slaves/00f4d7f9-7805-4b6a-aef8-9bb130db2435-S853/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ed1540c5-2b15-418b-9a03-9510a282ccec/runs/f36524c1-a035-4700-9225-357ca98818fc/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/core.480
#
# 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: -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=6 -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:MaxRAMPercentage=50 -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError -XX:+DisplayVMOutputToStderr -Xlog:gc*,gc+heap=debug:gc.log:uptime,timemillis,level,tags -XX:+DisableExplicitGC -XX:+StartAttachListener -Djava.io.tmpdir=/scratch/opt/mach5/mesos/work_dir/slaves/00f4d7f9-7805-4b6a-aef8-9bb130db2435-S853/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ed1540c5-2b15-418b-9a03-9510a282ccec/runs/f36524c1-a035-4700-9225-357ca98818fc/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/java.io.tmpdir -Duser.home=/scratch/opt/mach5/mesos/work_dir/slaves/00f4d7f9-7805-4b6a-aef8-9bb130db2435-S853/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ed1540c5-2b15-418b-9a03-9510a282ccec/runs/f36524c1-a035-4700-9225-357ca98818fc/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/user.home applications.kitchensink.process.stress.Main /scratch/opt/mach5/mesos/work_dir/slaves/00f4d7f9-7805-4b6a-aef8-9bb130db2435-S853/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ed1540c5-2b15-418b-9a03-9510a282ccec/runs/f36524c1-a035-4700-9225-357ca98818fc/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_dacapo_Dacapo24H_java/scratch/0/kitchensink.final.properties

Host: Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz, 8 cores, 28G, Oracle Linux Server release 7.6
Time: Fri Aug  9 04:08:36 2019 UTC elapsed time: 38278 seconds (0d 10h 37m 58s)

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

Current thread (0x00007fcba42b9880):  JavaThread "Sweeper thread" daemon [_thread_in_vm, id=513, stack(0x00007fc9760f9000,0x00007fc9761fa000)]

Stack: [0x00007fc9760f9000,0x00007fc9761fa000],  sp=0x00007fc9761f8990,  free space=1022k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x9e56f4]  CompiledMethod::cleanup_inline_caches_impl(bool, bool)+0x254
V  [libjvm.so+0x9e6202]  CompiledMethod::cleanup_inline_caches(bool)+0x52
V  [libjvm.so+0x163ff4b]  NMethodSweeper::process_compiled_method(CompiledMethod*)+0x29b
V  [libjvm.so+0x1641468]  NMethodSweeper::sweep_code_cache()+0x418
V  [libjvm.so+0x1641fcd]  NMethodSweeper::possibly_sweep()+0x10d
V  [libjvm.so+0x1642532]  NMethodSweeper::sweeper_loop()+0x1f2
V  [libjvm.so+0x16cd086]  JavaThread::thread_main_inner()+0x226
V  [libjvm.so+0x16d26f6]  Thread::call_run()+0xf6
V  [libjvm.so+0x13efc7e]  thread_native_entry(Thread*)+0x10e


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

Register to memory mapping:

RAX=0xbaadfadebaadfade is an unknown value
RBX=0x00007fc838919be8 is pointing into metadata
RCX=0x0000000000000007 is an unknown value
RDX=0x00007fcbab166680: <offset 0x00000000009e5680> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+9-267/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fcbaa781000
RSP=0x00007fc9761f8990 is pointing into the stack for thread: 0x00007fcba42b9880
RBP=0x00007fc9761f8ad0 is pointing into the stack for thread: 0x00007fcba42b9880
RSI=0x0 is NULL
RDI=0x00007fc838919be8 is pointing into metadata
R8 =0x00007fcb92cf0125 is at entry_point+10469 in (nmethod*)0x00007fcb92ced190
R9 =0x00007fcbac1e0abc: <offset 0x0000000001a5fabc> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+9-267/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fcbaa781000
R10=0x0 is NULL
R11=0x0000000000000206 is an unknown value
R12=0x00007fcbac1e95c8: <offset 0x0000000001a685c8> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+9-267/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fcbaa781000
R13=0x00007fc9761f8a78 is pointing into the stack for thread: 0x00007fcba42b9880
R14=0x00007fcb92ced190 is at entry_point+-1712 in (nmethod*)0x00007fcb92ced190
R15=0x0 is NULL


Registers:
RAX=0xbaadfadebaadfade, RBX=0x00007fc838919be8, RCX=0x0000000000000007, RDX=0x00007fcbab166680
RSP=0x00007fc9761f8990, RBP=0x00007fc9761f8ad0, RSI=0x0000000000000000, RDI=0x00007fc838919be8
R8 =0x00007fcb92cf0125, R9 =0x00007fcbac1e0abc, R10=0x0000000000000000, R11=0x0000000000000206
R12=0x00007fcbac1e95c8, R13=0x00007fc9761f8a78, R14=0x00007fcb92ced190, R15=0x0000000000000000
RIP=0x00007fcbab1666f4, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000000
  TRAPNO=0x000000000000000d

Top of Stack: (sp=0x00007fc9761f8990)
0x00007fc9761f8990:   00007fcbac5210e0 00007fc9769b3488
0x00007fc9761f89a0:   00007fc9761f89c0 00007fcba40151d0
0x00007fc9761f89b0:   00007fc9761f8a00 00007fc9761f8a00
0x00007fc9761f89c0:   00007fcbac4527d8 00007fcba40283b0 

Instructions: (pc=0x00007fcbab1666f4)
0x00007fcbab1665f4:   39 d0 0f 84 54 04 00 00 48 c7 85 68 ff ff ff 00
0x00007fcbab166604:   00 00 00 31 d2 66 89 95 70 ff ff ff 0f b7 10 89
0x00007fcbab166614:   d0 c1 ea 0c 83 fa 0f 0f 84 df 04 00 00 48 8b 95
0x00007fcbab166624:   38 ff ff ff 25 ff 03 00 00 48 03 85 58 ff ff ff
0x00007fcbab166634:   48 89 85 58 ff ff ff 48 85 d2 0f 95 c3 48 39 d0
0x00007fcbab166644:   0f 93 c0 20 c3 0f 85 01 04 00 00 66 83 bd 70 ff
0x00007fcbab166654:   ff ff 00 0f 88 63 04 00 00 48 8b 85 40 ff ff ff
0x00007fcbab166664:   0f b7 10 c1 ea 0c 83 fa 0c 0f 87 65 ff ff ff 49
0x00007fcbab166674:   63 14 94 4c 01 e2 ff e2 0f 1f 40 00 80 bd e0 fe
0x00007fcbab166684:   ff ff 00 0f 84 4b ff ff ff 66 83 bd 70 ff ff ff
0x00007fcbab166694:   00 0f 88 a5 06 00 00 48 8d 05 9e 7f 2e 01 48 83
0x00007fcbab1666a4:   c0 10 48 89 85 e0 fe ff ff 48 8b 85 e8 fe ff ff
0x00007fcbab1666b4:   f3 0f 7e 85 e0 fe ff ff 48 89 85 e0 fe ff ff 4c
0x00007fcbab1666c4:   8d 68 78 4c 89 ef 0f 16 85 e0 fe ff ff 0f 11 45
0x00007fcbab1666d4:   a8 e8 76 3d b3 00 4c 89 ef e8 9e b1 b3 00 48 89
0x00007fcbab1666e4:   c3 48 85 c0 0f 84 f8 07 00 00 48 8b 00 48 89 df
0x00007fcbab1666f4:   ff 50 10 88 85 e0 fe ff ff 84 c0 0f 85 bb 07 00
0x00007fcbab166704:   00 0f 1f 00 48 8b 85 40 ff ff ff e9 c4 fe ff ff
0x00007fcbab166714:   0f 1f 40 00 c6 85 e0 fe ff ff 01 e9 b4 fe ff ff
0x00007fcbab166724:   0f 1f 40 00 66 83 bd 70 ff ff ff 00 44 0f b6 bd
0x00007fcbab166734:   df fe ff ff 0f 88 7a 04 00 00 31 f6 bf 38 00 00
0x00007fcbab166744:   00 e8 66 f1 b4 00 be 01 00 00 00 49 89 c5 48 89
0x00007fcbab166754:   c7 e8 f6 6b be ff 4d 85 ed 74 0f 48 8b b5 e8 fe
0x00007fcbab166764:   ff ff 4c 89 ef e8 72 61 ff ff 4c 89 ef e8 3a a1
0x00007fcbab166774:   ff ff 4c 89 ef e8 72 56 ff ff 44 89 f9 4c 89 f2
0x00007fcbab166784:   4c 89 ef 48 89 c6 e8 c1 c1 ff ff 84 c0 0f 85 71
0x00007fcbab166794:   ff ff ff e9 cc 01 00 00 0f 1f 40 00 80 bd de fe
0x00007fcbab1667a4:   ff ff 00 0f b7 85 70 ff ff ff 74 58 66 85 c0 0f
0x00007fcbab1667b4:   88 07 06 00 00 31 f6 bf 38 00 00 00 e8 eb f0 b4
0x00007fcbab1667c4:   00 be 01 00 00 00 49 89 c5 48 89 c7 e8 7b 6b be
0x00007fcbab1667d4:   ff 4d 85 ed 74 0f 48 8b b5 e8 fe ff ff 4c 89 ef
0x00007fcbab1667e4:   e8 f7 60 ff ff 4c 89 ef e8 bf a0 ff ff 4c 89 ef 


Stack slot to memory mapping:
stack at sp + 0 slots: 0x00007fcbac5210e0: <offset 0x0000000001da00e0> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+9-267/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fcbaa781000
stack at sp + 1 slots: {method} {0x00007fc9769b3488} 'indexOf' '([BII)I' in 'java/lang/StringLatin1'
stack at sp + 2 slots: 0x00007fc9761f89c0 is pointing into the stack for thread: 0x00007fcba42b9880
stack at sp + 3 slots: 0x00007fcba40151d0 points into unknown readable memory: 60 bd 51 ac cb 7f 00 00
stack at sp + 4 slots: 0x00007fc9761f8a00 is pointing into the stack for thread: 0x00007fcba42b9880
stack at sp + 5 slots: 0x00007fc9761f8a00 is pointing into the stack for thread: 0x00007fcba42b9880
stack at sp + 6 slots: 0x00007fcbac4527d8: <offset 0x0000000001cd17d8> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+9-267/linux-x64-debug.jdk/jdk-14/fastdebug/lib/server/libjvm.so at 0x00007fcbaa781000
stack at sp + 7 slots: 0x00007fcba40283b0 points into unknown readable memory: 68 c8 4f ac cb 7f 00 00


Comments
Will be fixed by JDK-8230565
04-09-2019

ILW = Seg fault during cleanup of inline caches, intermittent with long running apps and ZGC, use different GC = HMM = P2 This looks like JDK-8226291 which has been closed as duplicate of JDK-8224674. [~eosterlund], could you please have a look?
13-08-2019

Looks similar to JDK-8224674 but happened in JDK14+9.
12-08-2019