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

jdk/incubator/vector/Double512VectorTests.java crashes in Assembler::vex_prefix_and_encode

XMLWordPrintable

    • b25

        jdk/incubator/vector/Double512VectorTests.java ran with stress flags crashes with


        # Internal Error (/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S9889/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c11ca34c-7241-4cfd-b61c-9310da87fdc1/runs/e4f2c547-e0e4-4107-868e-1e866173efb3/workspace/open/src/hotspot/cpu/x86/assembler_x86.cpp:11644), pid=1945384, tid=1945401
        # assert(((!attributes->uses_vl()) || (attributes->get_vector_len() == AVX_512bit) || (!_legacy_mode_vl) || (attributes->is_legacy_mode()))) failed: XMM register should be 0-15
        #
        # JRE version: Java(TM) SE Runtime Environment (22.0+33) (fastdebug build 22-ea+33-2356)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 22-ea+33-2356, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x642f2b] Assembler::vex_prefix_and_encode(int, int, int, Assembler::VexSimdPrefix, Assembler::VexOpcode, InstructionAttr*)+0x28b


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

        Host: hostname, Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz, 12 cores, 23G, Oracle Linux Server release 9.2
        Time: Thu Feb 1 03:59:08 2024 UTC elapsed time: 42.077166 seconds (0d 0h 0m 42s)

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

        Current thread (0x00007f30a0347b60): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=1945401, stack(0x00007f308c90f000,0x00007f308ca0f000) (1024K)]


        Current CompileTask:
        C2:42077 4610 % b Double512VectorTests::unsliceDouble512VectorTestsMasked @ 120 (212 bytes)

        Stack: [0x00007f308c90f000,0x00007f308ca0f000], sp=0x00007f308ca0a8b0, free space=1006k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x642f2b] Assembler::vex_prefix_and_encode(int, int, int, Assembler::VexSimdPrefix, Assembler::VexOpcode, InstructionAttr*)+0x28b (assembler_x86.cpp:11644)
        V [libjvm.so+0x65a203] Assembler::simd_prefix_and_encode(XMMRegister, XMMRegister, XMMRegister, Assembler::VexSimdPrefix, Assembler::VexOpcode, InstructionAttr*) [clone .constprop.0]+0x113 (assembler_x86.cpp:11691)
        V [libjvm.so+0x65e2c7] Assembler::vpmovsxbd(XMMRegister, XMMRegister, int)+0x77 (assembler_x86.cpp:5017)
        V [libjvm.so+0x822144] C2_MacroAssembler::vconvert_b2x(BasicType, XMMRegister, XMMRegister, int)+0x84 (c2_MacroAssembler_x86.cpp:2587)
        V [libjvm.so+0x40b21b] vcastBtoXNode::emit(CodeBuffer&, PhaseRegAlloc*) const+0x10b (x86.ad:7028)
        V [libjvm.so+0x14cadb6] PhaseOutput::scratch_emit_size(Node const*)+0x376 (output.cpp:3366)
        V [libjvm.so+0x14c34fa] PhaseOutput::shorten_branches(unsigned int*)+0x34a (output.cpp:544)
        V [libjvm.so+0x14d4d6a] PhaseOutput::Output()+0xa1a (output.cpp:345)
        V [libjvm.so+0x9ed2b3] Compile::Code_Gen()+0x483 (compile.cpp:3011)
        V [libjvm.so+0x9efdca] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1c2a (compile.cpp:890)
        V [libjvm.so+0x83bd37] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1e7 (c2compiler.cpp:134)
        V [libjvm.so+0x9fb5fc] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x92c (compileBroker.cpp:2299)
        V [libjvm.so+0x9fc288] CompileBroker::compiler_thread_loop()+0x468 (compileBroker.cpp:1958)
        V [libjvm.so+0xeba75c] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:721)
        V [libjvm.so+0x17a1236] Thread::call_run()+0xb6 (thread.cpp:221)
        V [libjvm.so+0x14ab5a7] thread_native_entry(Thread*)+0x127 (os_linux.cpp:789)
        Registers:
        RAX=0x00007f30a74b7000, RBX=0x0000000000000011, RCX=0x00007f30a6b5e4f1, RDX=0x00007f30a6bd3640
        RSP=0x00007f308ca0a8b0, RBP=0x00007f308ca0a8f0, RSI=0x0000000000002d7c, RDI=0x00007f30a6bd2bb0
        R8 =0x0000000000000001, R9 =0x0000000000000002, R10=0x0000000000000000, R11=0x0000000000000000
        R12=0x0000000000000008, R13=0x0000000000000000, R14=0x00007f308ca0a901, R15=0x0000000000000001
        RIP=0x00007f30a573ff2b, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
          TRAPNO=0x000000000000000e


        Register to memory mapping:

        RAX=0x00007f30a74b7000 in mmap'd memory region [0x00007f30a74b7000 - 0x00007f30a74b8000], tag mtInternal
        RBX=0x0000000000000011 is an unknown value
        RCX=0x00007f30a6b5e4f1: <offset 0x0000000001a614f1> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-22+33-2356/linux-x64-debug.jdk/jdk-22/fastdebug/lib/server/libjvm.so at 0x00007f30a50fd000
        RDX=0x00007f30a6bd3640: <offset 0x0000000001ad6640> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-22+33-2356/linux-x64-debug.jdk/jdk-22/fastdebug/lib/server/libjvm.so at 0x00007f30a50fd000
        RSP=0x00007f308ca0a8b0 is pointing into the stack for thread: 0x00007f30a0347b60
        RBP=0x00007f308ca0a8f0 is pointing into the stack for thread: 0x00007f30a0347b60
        RSI=0x0000000000002d7c is an unknown value
        RDI=0x00007f30a6bd2bb0: <offset 0x0000000001ad5bb0> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-22+33-2356/linux-x64-debug.jdk/jdk-22/fastdebug/lib/server/libjvm.so at 0x00007f30a50fd000
        R8 =0x0000000000000001 is an unknown value
        R9 =0x0000000000000002 is an unknown value
        R10=0x0 is null
        R11=0x0 is null
        R12=0x0000000000000008 is an unknown value
        R13=0x0 is null
        R14=0x00007f308ca0a901 is pointing into the stack for thread: 0x00007f30a0347b60
        R15=0x0000000000000001 is an unknown value

        Top of Stack: (sp=0x00007f308ca0a8b0)
        0x00007f308ca0a8b0: 00007f308ca0a920 00007f30a573fe9f
        0x00007f308ca0a8c0: 0000000000000000 0000000000000008
        0x00007f308ca0a8d0: 0000000000000002 00007f308ca0a9f0
        0x00007f308ca0a8e0: 00007f308ca0a960 0000000000000001
        0x00007f308ca0a8f0: 00007f308ca0a950 00007f30a5757203
        0x00007f308ca0a900: 00007f308ca0a960 00007f30a5757132
        0x00007f308ca0a910: 00007f308ca0a990 0000000800000011
        0x00007f308ca0a920: 00007f30187777a0 00007f308ca0a9f0
        0x00007f308ca0a930: 0000000000000007 0000000000000002
        0x00007f308ca0a940: 00007f308ca0a9f0 00007f30a71c8284
        0x00007f308ca0a950: 00007f308ca0a9a0 00007f30a575b2c7
        0x00007f308ca0a960: 0001000001010000 0000001700000001
        0x00007f308ca0a970: 0000000000000004 0000000000000000
        0x00007f308ca0a980: 00007f308ca0a9f0 00007f30a659c503
        0x00007f308ca0a990: 00007f308ca0b2c0 0000000000000011
        0x00007f308ca0a9a0: 00007f308ca0a9d0 00007f30a591f144
        0x00007f308ca0a9b0: 0000000000000004 00007f308ca0a9f0
        0x00007f308ca0a9c0: 00007f30184e0558 00007f308ca0b0c0
        0x00007f308ca0a9d0: 00007f308ca0aa50 00007f30a550821b
        0x00007f308ca0a9e0: 00007f0000000010 0000000800000002
        0x00007f308ca0a9f0: 00007f30a70792a8 00007f308ca0abc0
        0x00007f308ca0aa00: 00007f308ca0ac98 0101010100000000
        0x00007f308ca0aa10: 00007f308ca0a960 00007f308ca0ad28
        0x00007f308ca0aa20: 00007f308ca0ab50 00007f30184e0558
        0x00007f308ca0aa30: 00007f308ca0ab50 00007f308ca0b2c0
        0x00007f308ca0aa40: 0000000000000002 00007f308ca0ac18
        0x00007f308ca0aa50: 00007f308ca0ad70 00007f30a65c7db6
        0x00007f308ca0aa60: 00000000000008e0 00007f308ca0ab68
        0x00007f308ca0aa70: 0000000000000000 0000000000000000
        0x00007f308ca0aa80: 00007f30ffffffff 00007f308ca0abc0
        0x00007f308ca0aa90: 00007f308ca0ac98 0101010100000000
        0x00007f308ca0aaa0: 0000000000000000 0000000000000000

        Instructions: (pc=0x00007f30a573ff2b)
        0x00007f30a573fe2b: 0f 1f 44 00 00 48 8d 0d 4d 84 a8 01 8b 09 85 c9
        0x00007f30a573fe3b: 0f 8f 5e ff ff ff 0f 1f 80 00 00 00 00 83 fb 0f
        0x00007f30a573fe4b: 41 0f 9f c6 41 83 fa 0f 41 0f 9f c5 41 83 fc 0f
        0x00007f30a573fe5b: 44 88 75 cc 0f 9f c1 45 89 ef 41 08 cf 75 05 45
        0x00007f30a573fe6b: 84 f6 74 41 45 84 db 75 88 48 83 ec 08 c6 46 05
        0x00007f30a573fe7b: 01 0f b6 c9 0f b6 d2 41 51 45 89 e9 0f b6 f0 41
        0x00007f30a573fe8b: 50 41 83 e1 01 41 52 44 8b 45 cc 41 83 e0 01 e8
        0x00007f30a573fe9b: 41 11 fe ff 48 83 c4 20 e9 7e fe ff ff 0f 1f 84
        0x00007f30a573feab: 00 00 00 00 00 45 84 db 0f 85 49 fe ff ff e9 e1
        0x00007f30a573febb: fe ff ff 66 90 c6 46 01 01 83 39 02 0f 8e 3e fe
        0x00007f30a573fecb: ff ff 48 8d 0d b0 83 a8 01 44 8b 31 45 85 f6 0f
        0x00007f30a573fedb: 8f 22 fe ff ff 44 0f b6 5e 03 45 84 db 0f 84 14
        0x00007f30a573feeb: fe ff ff 83 7e 08 02 0f 84 50 ff ff ff 80 7f 1e
        0x00007f30a573fefb: 00 0f 85 dd fe ff ff e9 41 ff ff ff 48 8d 05 02
        0x00007f30a573ff0b: f1 a0 01 48 8d 0d dc e5 41 01 48 8d 15 24 37 49
        0x00007f30a573ff1b: 01 be 7c 2d 00 00 48 8d 3d 88 2c 49 01 48 8b 00
        0x00007f30a573ff2b: c6 00 58 31 c0 e8 4b 90 45 00 90 66 2e 0f 1f 84
        0x00007f30a573ff3b: 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 49
        0x00007f30a573ff4b: 89 fd 41 54 41 89 d4 53 89 f3 48 83 ec 38 48 8d
        0x00007f30a573ff5b: 05 24 83 a8 01 8b 30 85 f6 7f 15 48 8d 05 c3 b7
        0x00007f30a573ff6b: a3 01 48 8b 00 a9 00 00 80 00 0f 84 ab 00 00 00
        0x00007f30a573ff7b: 66 0f 6f 05 dd df 63 01 48 63 c9 4c 8d 35 f4 ca
        0x00007f30a573ff8b: 65 01 48 8b 05 6c fa 63 01 4a 8d 3c 31 c7 45 b8
        0x00007f30a573ff9b: 00 00 00 00 0f 11 45 a8 48 89 45 a0 48 c7 45 c0
        0x00007f30a573ffab: 00 00 00 00 e8 3c 1a 06 00 49 63 fc 4c 01 f7 41
        0x00007f30a573ffbb: 89 c7 e8 2e 1a 06 00 48 63 fb 4c 01 f7 41 89 c4
        0x00007f30a573ffcb: e8 20 1a 06 00 48 83 ec 08 44 89 f9 45 31 c0 89
        0x00007f30a573ffdb: c6 48 8d 45 a0 41 b9 02 00 00 00 44 89 e2 50 4c
        0x00007f30a573ffeb: 89 ef e8 ae fc ff ff 49 8b 7d 08 be f2 00 00 00
        0x00007f30a573fffb: 0c c0 89 c2 e8 1c 30 fd ff 48 8b 45 c0 5a 59 48
        0x00007f30a574000b: 85 c0 74 08 48 c7 40 20 00 00 00 00 48 8d 65 d8
        0x00007f30a574001b: 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 8d 05 e3 ef


        Stack slot to memory mapping:

        stack at sp + 0 slots: 0x00007f308ca0a920 is pointing into the stack for thread: 0x00007f30a0347b60
        stack at sp + 1 slots: 0x00007f30a573fe9f: <offset 0x0000000000642e9f> in /opt/mach5/mesos/work_dir/jib-master/install/jdk-22+33-2356/linux-x64-debug.jdk/jdk-22/fastdebug/lib/server/libjvm.so at 0x00007f30a50fd000
        stack at sp + 2 slots: 0x0 is null
        stack at sp + 3 slots: 0x0000000000000008 is an unknown value
        stack at sp + 4 slots: 0x0000000000000002 is an unknown value
        stack at sp + 5 slots: 0x00007f308ca0a9f0 is pointing into the stack for thread: 0x00007f30a0347b60
        stack at sp + 6 slots: 0x00007f308ca0a960 is pointing into the stack for thread: 0x00007f30a0347b60
        stack at sp + 7 slots: 0x0000000000000001 is an unknown value



        The list of flags:
         -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:+StressCCP -XX:StressSeed=148015699 -XX:UseAVX=3 -XX:+UseKNLSetting

              jbhateja Jatin Bhateja
              epavlova Ekaterina Pavlova
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: