Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8207746

C2: Lucene crashes on AVX512 instruction

XMLWordPrintable

    • b27
    • x86

        External report: https://github.com/elastic/elasticsearch/issues/31425

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x00007f8c43de5371, pid=1, tid=140
        #
        # JRE version: OpenJDK Runtime Environment (10.0.1+10) (build 10.0.1+10)
        # Java VM: OpenJDK 64-Bit Server VM (10.0.1+10, mixed mode, tiered, compressed oops, concurrent mark sweep gc, linux-amd64)
        # Problematic frame:
        # J 13039 c2 org.apache.lucene.util.MergedIterator.pushTop()V (92 bytes) @ 0x00007f8c43de5371 [0x00007f8c43de4c40+0x0000000000000731]
        #
        # Core dump will be written. Default location: /usr/share/elasticsearch/core
        #
        # 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: -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=/tmp/elasticsearch.9Ts2lgAF -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=data -XX:ErrorFile=logs/hs_err_pid%p.log -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m -Djava.locale.providers=COMPAT -Des.cgroups.hierarchy.override=/ -Xms2g -Xmx2g -Des.path.home=/usr/share/elasticsearch -Des.path.conf=/usr/share/elasticsearch/config -Des.distribution.flavor=default -Des.distribution.type=tar org.elasticsearch.bootstrap.Elasticsearch -Ecluster.name=tds-es-db -Expack.watcher.enabled=false -Expack.ml.enabled=false -Expack.logstash.enabled=false -Ediscovery.zen.ping.unicast.hosts=elasticsearch-discovery -Ehttp.enabled=false -Epath.data=/data -Enode.data=true -Enode.master=false -Enode.name=es-data-us-east-1c-0 -Enetwork.host=_eth0:ipv4_ -Expack.graph.enabled=false -Ediscovery.zen.minimum_master_nodes=2 -Expack.security.enabled=false -Enode.ingest=false

        Host: Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz, 2 cores, 7G, CentOS Linux release 7.5.1804 (Core)
        Time: Tue Jun 19 10:15:27 2018 UTC elapsed time: 247 seconds (0d 0h 4m 7s)

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

        Current thread (0x00007f8c18125000): JavaThread "elasticsearch[es-data-us-east-1c-0][[logstash-2018.06.19][2]: Lucene Merge Thread #8]" daemon [_thread_in_Java, id=140, stack(0x00007f8bf12c1000,0x00007f8bf13c2000)]

        Stack: [0x00007f8bf12c1000,0x00007f8bf13c2000], sp=0x00007f8bf13c01e8, free space=1020k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        J 13039 c2 org.apache.lucene.util.MergedIterator.pushTop()V (92 bytes) @ 0x00007f8c43de5371 [0x00007f8c43de4c40+0x0000000000000731]

        [error occurred during error reporting (printing native stack), id 0xb]


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

        Register to memory mapping:

        RAX=0xffffffffffffffe0 is an unknown value
        RBX=0x000000008015d6f8 is an oop
        org.apache.lucene.util.MergedIterator
        {0x000000008015d6f8} - klass: 'org/apache/lucene/util/MergedIterator'
        RCX=0x0000000000000005 is an unknown value
        RDX=0x0000000000000020 is an unknown value
        RSP=0x00007f8bf13c01e8 is pointing into the stack for thread: 0x00007f8c18125000
        RBP=0x0000000000000023 is an unknown value
        RSI=0x000000007fffffe3 is an unknown value
        RDI=0x000000008f2bee53 is pointing into object: 0x000000008f2bee40
        org.apache.lucene.analysis.tokenattributes.BytesTermAttributeImpl
        {0x000000008f2bee40} - klass: 'org/apache/lucene/analysis/tokenattributes/BytesTermAttributeImpl'
        R8 =0x0000000093598e60 is an oop
        [B
        {0x0000000093598e60} - klass: {type array byte}
         - length: 35
        R9 =0x0000000000000000 is an unknown value
        R10=0x00000000842d9ff0 is an oop
        [B
        {0x00000000842d9ff0} - klass: {type array byte}
         - length: 42
        R11=0x00000000842d9ff0 is an oop
        [B
        {0x00000000842d9ff0} - klass: {type array byte}
         - length: 42
        R12=0x0000000000000000 is an unknown value
        R13=0x000000000000000b is an unknown value
        R14=0x000000008015d7c0 is an oop
        org.apache.lucene.util.MergedIterator$SubIterator
        {0x000000008015d7c0} - klass: 'org/apache/lucene/util/MergedIterator$SubIterator'
        R15=0x00007f8c18125000 is a thread


        Registers:
        RAX=0xffffffffffffffe0, RBX=0x000000008015d6f8, RCX=0x0000000000000005, RDX=0x0000000000000020
        RSP=0x00007f8bf13c01e8, RBP=0x0000000000000023, RSI=0x000000007fffffe3, RDI=0x000000008f2bee53
        R8 =0x0000000093598e60, R9 =0x0000000000000000, R10=0x00000000842d9ff0, R11=0x00000000842d9ff0
        R12=0x0000000000000000, R13=0x000000000000000b, R14=0x000000008015d7c0, R15=0x00007f8c18125000
        RIP=0x00007f8c43de5371, EFLAGS=0x0000000000010283, CSGSFS=0x002b000000000033, ERR=0x0000000000000004
          TRAPNO=0x000000000000000e

        Top of Stack: (sp=0x00007f8bf13c01e8)
        0x00007f8bf13c01e8: 00000000fffffff9 8015d7a800000000
        0x00007f8bf13c01f8: 0000000000000002 000000008015d6f8
        0x00007f8bf13c0208: 000000008015d6f8 00007f8bf13c0250
        0x00007f8bf13c0218: 00007f8bf13c0240 00007f8c18125000

        Instructions: (pc=0x00007f8c43de5371)
        0x00007f8c43de5351: 98 ff 0f 83 14 01 00 00 48 83 c0 40 83 ea 40 75
        0x00007f8c43de5361: de 62 a1 7d a1 ef c0 eb 64 62 e1 7e a9 6f 04 07
        0x00007f8c43de5371: 62 e1 7d a1 ef 04 06 48 83 ec 40 62 f1 7e 49 7f
        0x00007f8c43de5381: 04 24 48 83 ec 40 62 f1 7e 49 7f 0c 24 62 b1 7e

        0: 98 cwde
        1: ff 0f dec DWORD PTR [rdi]
        3: 83 14 01 00 adc DWORD PTR [rcx+rax*1],0x0
        7: 00 48 83 add BYTE PTR [rax-0x7d],cl
        a: c0 40 83 ea rol BYTE PTR [rax-0x7d],0xea
        e: 40 75 de rex jne 0xffffffffffffffef
        11: 62 a1 7d a1 ef c0 vpxord ymm16{k1}{z},ymm16,ymm16
        17: eb 64 jmp 0x7d
        19: 62 e1 7e a9 6f 04 07 vmovdqu32 ymm16{k1}{z},YMMWORD PTR [rdi+rax*1]
        20: 62 e1 7d a1 ef 04 06 vpxord ymm16{k1}{z},ymm16,YMMWORD PTR [rsi+rax*1]
        27: 48 83 ec 40 sub rsp,0x40
        2b: 62 f1 7e 49 7f 04 24 vmovdqu32 ZMMWORD PTR [rsp]{k1},zmm0
        32: 48 83 ec 40 sub rsp,0x40
        36: 62 f1 7e 49 7f 0c 24 vmovdqu32 ZMMWORD PTR [rsp]{k1},zmm1
        3d: 62 .byte 0x62
        3e: b1 7e mov cl,0x7e

        62 e1 7d a1 ef 04 06 vpxord ymm16{k1}{z},ymm16,YMMWORD PTR [rsi+rax*1]

              vdeshpande Vivek Deshpande (Inactive)
              vlivanov Vladimir Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: