JDK-8152740 : vm crash in java/util/concurrent/ConcurrentLinkedQueue/RemoveLeak.java in openonly configuration
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: x86_64
  • Submitted: 2016-03-25
  • Updated: 2016-08-26
  • Resolved: 2016-08-26
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 9
9Resolved
Related Reports
Blocks :  
Relates :  
Relates :  
Description
----------messages:(3/135)----------
command: main -Xmx2200k RemoveLeak
reason: User specified action: run main/othervm -Xmx2200k RemoveLeak 
elapsed time (seconds): 1.327
----------System.out:(18/1051)----------
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f3c6e28dcaa, pid=5724, tid=5743
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-03-24-155133.mach5one.9-dev-build-linux-x64-openonly)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-03-24-155133.mach5one.9-dev-build-linux-x64-openonly, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xb81caa]  SymbolTable::possibly_parallel_unlink(int*, int*)+0xda
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" (or dumping to /scratch/jenkins/workspace/9-dev-tier1-linux-x64-openonly/JTwork/jdk_test/scratch/1/core.5724)
#
# An error report file with more information is saved as:
# /scratch/jenkins/workspace/9-dev-tier1-linux-x64-openonly/JTwork/jdk_test/scratch/1/hs_err_pid5724.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#


I copied  part of the hs err log and also attached the whole log file:

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

Current thread (0x00007f3c68040000):  GCTaskThread [stack: 0x00007f3c511a6000,0x00007f3c512a7000] [id=5743]

Stack: [0x00007f3c511a6000,0x00007f3c512a7000],  sp=0x00007f3c512a5e30,  free space=1023k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xb81caa]  SymbolTable::possibly_parallel_unlink(int*, int*)+0xda
V  [libjvm.so+0x6bdfdd]  G1StringSymbolTableUnlinkTask::work(unsigned int)+0x4d
V  [libjvm.so+0xc3fdcd]  GangWorker::loop()+0x4d
V  [libjvm.so+0xa543c2]  java_start(Thread*)+0xe2


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

Register to memory mapping:

RAX=0x00007f3c68164588 is an unknown value
RBX=0x0000000000026610 is an unknown value
RCX=0x00000000334eb0b5 is an unknown value
RDX=0x00007f3c6f38d620 is an unknown value
RSP=0x00007f3c512a5e30 is an unknown value
RBP=0x00007f3c512a5e70 is an unknown value
RSI=0x0000000000004e2b is an unknown value
RDI=0x0000000000000002 is an unknown value
R8 =0x00007f3c680266b8 is an unknown value
R9 =0x0000000000000007 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x0000000000000000 is an unknown value
R12=0x00007f3c6f38d620 is an unknown value
R13=0x00007f3c68164588 is an unknown value
R14=0x00007f3c512a5e8c is an unknown value
R15=0x00007f3c512a5e88 is an unknown value


Registers:
RAX=0x00007f3c68164588, RBX=0x0000000000026610, RCX=0x00000000334eb0b5, RDX=0x00007f3c6f38d620
RSP=0x00007f3c512a5e30, RBP=0x00007f3c512a5e70, RSI=0x0000000000004e2b, RDI=0x0000000000000002
R8 =0x00007f3c680266b8, R9 =0x0000000000000007, R10=0x0000000000000000, R11=0x0000000000000000
R12=0x00007f3c6f38d620, R13=0x00007f3c68164588, R14=0x00007f3c512a5e8c, R15=0x00007f3c512a5e88
RIP=0x00007f3c6e28dcaa, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f3c512a5e30)
0x00007f3c512a5e30:   00004e2b00000000 0000000000026700
0x00007f3c512a5e40:   00007f3c6e7b6b50 00007f3b713fa4e0
0x00007f3c512a5e50:   00007f3c512a5eb0 00007f3c68040000
0x00007f3c512a5e60:   0000000000000006 0000000000000002
0x00007f3c512a5e70:   00007f3c512a5ea0 00007f3c6ddc9fdd
0x00007f3c512a5e80:   0000000000000017 0000000000000712
0x00007f3c512a5e90:   00007f3c6de0e059 00007f3b713fa4e0
0x00007f3c512a5ea0:   00007f3c512a5ee0 00007f3c6e34bdcd
0x00007f3c512a5eb0:   00007f3c00000022 00007f3c68041730
0x00007f3c512a5ec0:   00007f3c68041820 00007f3c68041730
0x00007f3c512a5ed0:   00007f3c68040000 00007f3c512a6700
0x00007f3c512a5ee0:   00007f3c512a5f10 00007f3c6e1603c2
0x00007f3c512a5ef0:   00007f3c512a6700 0000000000000000
0x00007f3c512a5f00:   00007f3c512a69c0 00007f3c512a6700
0x00007f3c512a5f10:   0000000000000000 00007f3c6f0dfdf3
0x00007f3c512a5f20:   0000000000000000 00007f3c512a6700
0x00007f3c512a5f30:   00007f3c512a6700 8a322cab6040a2fc
0x00007f3c512a5f40:   0000000000000000 00007f3c512a69c0
0x00007f3c512a5f50:   00007f3c512a6700 0000000000000002
0x00007f3c512a5f60:   744a8effde00a2fc 744af2b09b3aa2fc
0x00007f3c512a5f70:   0000000000000000 0000000000000000
0x00007f3c512a5f80:   0000000000000000 0000000000000000
0x00007f3c512a5f90:   0000000000000000 0000000000000000
0x00007f3c512a5fa0:   0000000000000000 0000000000000000
0x00007f3c512a5fb0:   00007f3c512a6700 00007f3c6e9f13dd
0x00007f3c512a5fc0:   0000000000000000 0000000000000000
0x00007f3c512a5fd0:   0000000000000000 0000000000000000
0x00007f3c512a5fe0:   0000000000000000 0000000000000000
0x00007f3c512a5ff0:   0000000000000000 0000000000000000
0x00007f3c512a6000:   0000000000000000 0000000000000000
0x00007f3c512a6010:   0000000000000000 0000000000000000
0x00007f3c512a6020:   0000000000000000 0000000000000000 

Instructions: (pc=0x00007f3c6e28dcaa)
0x00007f3c6e28dc8a:   e5 fe 74 62 41 f6 45 08 01 74 0d 48 8d 0d 54 44
0x00007f3c6e28dc9a:   62 00 8b 01 85 c0 74 4e 49 8b 4d 10 41 83 07 01
0x00007f3c6e28dcaa:   0f b7 79 02 66 85 ff 75 cd 48 89 cf e8 15 d9 ff
0x00007f3c6e28dcba:   ff 41 83 06 01 49 8b 4d 08 48 83 e1 fe 49 89 0c 


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

Java Threads: ( => current thread )
  0x00007f3c681ce800 JavaThread "MainThread" [_thread_blocked, id=5820, stack(0x00007f3b5ceac000,0x00007f3b5cfad000)]
  0x00007f3c68167800 JavaThread "Service Thread" daemon [_thread_blocked, id=5813, stack(0x00007f3b5d0ae000,0x00007f3b5d1af000)]
  0x00007f3c68133800 JavaThread "Sweeper thread" daemon [_thread_blocked, id=5811, stack(0x00007f3b5d8d7000,0x00007f3b5d9d8000)]
  0x00007f3c68131800 JavaThread "C1 CompilerThread14" daemon [_thread_blocked, id=5810, stack(0x00007f3b5d9d8000,0x00007f3b5dad9000)]
  0x00007f3c6812f800 JavaThread "C1 CompilerThread13" daemon [_thread_blocked, id=5809, stack(0x00007f3b700e9000,0x00007f3b701ea000)]
  0x00007f3c6812d800 JavaThread "C1 CompilerThread12" daemon [_thread_blocked, id=5808, stack(0x00007f3b701ea000,0x00007f3b702eb000)]
  0x00007f3c6812b800 JavaThread "C1 CompilerThread11" daemon [_thread_blocked, id=5806, stack(0x00007f3b702eb000,0x00007f3b703ec000)]
  0x00007f3c68129800 JavaThread "C1 CompilerThread10" daemon [_thread_blocked, id=5805, stack(0x00007f3b703ec000,0x00007f3b704ed000)]
  0x00007f3c68128000 JavaThread "C2 CompilerThread9" daemon [_thread_blocked, id=5804, stack(0x00007f3b704ed000,0x00007f3b705ee000)]
  0x00007f3c68126000 JavaThread "C2 CompilerThread8" daemon [_thread_blocked, id=5803, stack(0x00007f3b705ee000,0x00007f3b706ef000)]
  0x00007f3c68124000 JavaThread "C2 CompilerThread7" daemon [_thread_blocked, id=5802, stack(0x00007f3b706ef000,0x00007f3b707f0000)]
  0x00007f3c68122800 JavaThread "C2 CompilerThread6" daemon [_thread_blocked, id=5801, stack(0x00007f3b707f0000,0x00007f3b708f1000)]
  0x00007f3c68120800 JavaThread "C2 CompilerThread5" daemon [_thread_blocked, id=5798, stack(0x00007f3b708f1000,0x00007f3b709f2000)]
  0x00007f3c6811f000 JavaThread "C2 CompilerThread4" daemon [_thread_blocked, id=5797, stack(0x00007f3b709f2000,0x00007f3b70af3000)]
  0x00007f3c6811d000 JavaThread "C2 CompilerThread3" daemon [_thread_blocked, id=5795, stack(0x00007f3b70af3000,0x00007f3b70bf4000)]
  0x00007f3c6811b000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=5793, stack(0x00007f3b70bf4000,0x00007f3b70cf5000)]
  0x00007f3c68119000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=5792, stack(0x00007f3b70cf5000,0x00007f3b70df6000)]
  0x00007f3c68117800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=5791, stack(0x00007f3b70df6000,0x00007f3b70ef7000)]
  0x00007f3c68113800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5790, stack(0x00007f3b70ef7000,0x00007f3b70ff8000)]
  0x00007f3c68111000 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=5789, stack(0x00007f3b70ff8000,0x00007f3b710f9000)]
  0x00007f3c680fd800 JavaThread "Finalizer" daemon [_thread_blocked, id=5788, stack(0x00007f3b710f9000,0x00007f3b711fa000)]
  0x00007f3c680fb800 JavaThread "Reference Handler" daemon [_thread_blocked, id=5787, stack(0x00007f3b711fa000,0x00007f3b712fb000)]
  0x00007f3c68010000 JavaThread "main" [_thread_blocked, id=5727, stack(0x00007f3c6f3af000,0x00007f3c6f4b0000)]
Comments
I'm closing this as Cannot Reproduce. I wasn't able to reproduce the original problem with the fix for JDK-8152949 applied. JDK-8152949 has now been integrated into jdk9/jdk9. JDK-8162553 was a follow-up bug to the change in JDK-8152949, and it has also been integrated to jdk9/jdk9. JDK-8151158 rewrote the test where this reproduced. Please open a new bug report if this is still reproducing. Thanks.
26-08-2016

With a proposed fix for JDK-8152949, we haven't been able to reproduce any of the crashes above. The reproducer has been running ~30000 iterations. We probably won't be actively investigating this any more until JDK-8152949 has been fixed.
14-04-2016

Stefan, could you help to assign suitable engineer for this issue
14-04-2016

Yet another crash in the GC timing code. I'm moving this back to GC.
11-04-2016

Moving to Runtime since this is most likely caused by the Jigsaw / Anonymous Klass problem in JDK-8152949.
29-03-2016

Most likely caused by JDK-8152949
29-03-2016

This test has a ridiculously small heap, and that makes it a stress test for gc and the hotspot runtime. We would like to rewrite the test to not have such a small heap, but meanwhile the test is catching crashes. It's probably not acceptable for the VM to crash, even with -Xmx2200k, so recategorizing to hotspot/gc.
25-03-2016