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

ZGC: assert(regs[i] != regs[j]) failed: Multiple uses of register: rax

XMLWordPrintable

    • gc
    • b02

        Tests
        java/util/stream/test/org/openjdk/tests/java/util/*
        with
        -XX:+UseZGC -Xcomp -XX:-TieredCompilation
        crashes with
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8482/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9eeb1124-1328-4fe9-9f2c-1513b374afbe/runs/98142130-ad2e-4589-ba2c-9caef8b12938/workspace/open/src/hotspot/share/asm/register.hpp:247), pid=25606, tid=26426
        # assert(regs[i] != regs[j]) failed: Multiple uses of register: rax
        #
        # JRE version: Java(TM) SE Runtime Environment (20.0) (fastdebug build 20-internal-2022-11-17-0623452.leonid.mesnik.jdk-atr)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-internal-2022-11-17-0623452.leonid.mesnik.jdk-atr, compiled mode, compressed class ptrs, z gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x1c03ffa] ZLoadBarrierStubC2::create(MachNode const*, Address, Register, Register, unsigned char)+0x16a
        #
        # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/java/util/stream/test/org/openjdk/tests/java/util/SplittableRandomTest/core.25606)
        #
        # If you would like to submit a bug report, please visit:
        # https://bugreport.java.com/bugreport/crash.jsp
        #

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

        Command Line: -Dtest.vm.opts=-Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp -ea -esa -Dtest.tool.vm.opts=-J-Xmx768m -J-XX:MaxRAMPercentage=4.16667 -J-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp -J-ea -J-esa -Dtest.compiler.opts= -Dtest.java.opts=-XX:+CreateCoredumpOnCrash -XX:+UseZGC -Xcomp -XX:-TieredCompilation -Dtest.jdk=/opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/linux-x64-debug.jdk/jdk-20/fastdebug -Dcompile.jdk=/opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/linux-x64-debug.jdk/jdk-20/fastdebug -Dtest.timeout.factor=10.0 -Dtest.nativepath=/opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/linux-x64-debug.test/jdk/jtreg/native -Dtest.root=/opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/src.full/open/test/jdk -Dtest.name=java/util/stream/test/org/openjdk/tests/java/util/SplittableRandomTest.java -Dtest.file=/opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/src.full/open/test/jdk/java/util/stream/test/org/openjdk/tests/java/util/SplittableRandomTest.java -Dtest.src=/opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/src.full/open/test/jdk/java/util/stream/test -Dtest.src.path=/opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/src.full/open/test/jdk/java/util/stream/test -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/5/java/util/stream/test -Dtest.class.path=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/5/java/util/stream/test -Dtest.patch.path=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/5/lib/testlibrary/bootlib -Dtest.enable.preview=true -Xbootclasspath/a:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7/1/bundles/jtreg-7+1.zip/jtreg/lib/testng-7.3.0.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7/1/bundles/jtreg-7+1.zip/jtreg/lib/jcommander-1.78.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7/1/bundles/jtreg-7+1.zip/jtreg/lib/guice-4.2.3.jar --patch-module=java.base=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/5/lib/testlibrary/bootlib/java.base --add-reads=java.base=ALL-UNNAMED -Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp -ea -esa -XX:+CreateCoredumpOnCrash -XX:+UseZGC -Xcomp -XX:-TieredCompilation -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/linux-x64-debug.test/jdk/jtreg/native --enable-preview com.sun.javatest.regtest.agent.MainWrapper /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8394/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/78e21350-18ae-4223-b5cc-d3b57f0c3e57/runs/0fc1852b-e57f-4f0f-a12b-d85d856a0810/testoutput/test-support/jtreg_open_test_jdk_jdk_util/java/util/stream/test/org/openjdk/tests/java/util/SplittableRandomTest.d/testng.0.jta java/util/stream/test/org/openjdk/tests/java/util/SplittableRandomTest.java false org.openjdk.tests.java.util.SplittableRandomTest

        Host: ol7-x64-207068, AMD EPYC 7J13 64-Core Processor, 12 cores, 23G, Oracle Linux Server release 7.9
        Time: Thu Nov 17 11:49:16 2022 UTC elapsed time: 35.000323 seconds (0d 0h 0m 35s)

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

        Current thread (0x00007fbcd1213320): JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=26426, stack(0x00007fbd154f5000,0x00007fbd155f6000)]


        Current CompileTask:
        C2: 35000 7736 b java.util.concurrent.ForkJoinTask::awaitDone (510 bytes)

        Stack: [0x00007fbd154f5000,0x00007fbd155f6000], sp=0x00007fbd155f07e0, free space=1005k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x1c03ffa] ZLoadBarrierStubC2::create(MachNode const*, Address, Register, Register, unsigned char)+0x16a (register.hpp:247)
        V [libjvm.so+0x30f1c8] z_load_barrier_cmpxchg(MacroAssembler&, MachNode const*, Address, Register, Register, Label&)+0x48 (z_x86_64.ad:50)
        V [libjvm.so+0x4811dd] zCompareAndSwapPNode::emit(CodeBuffer&, PhaseRegAlloc*) const+0x56d (z_x86_64.ad:132)
        V [libjvm.so+0x1735a53] PhaseOutput::scratch_emit_size(Node const*)+0x413 (output.cpp:3349)
        V [libjvm.so+0x172c148] PhaseOutput::shorten_branches(unsigned int*)+0x2d8 (output.cpp:644)
        V [libjvm.so+0x173fe6a] PhaseOutput::Output()+0xcca (output.cpp:445)
        V [libjvm.so+0xaf677e] Compile::Code_Gen()+0x48e (compile.cpp:3001)
        V [libjvm.so+0xafc5ad] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x19ad (compile.cpp:864)
        V [libjvm.so+0x90c9a7] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x4e7 (c2compiler.cpp:113)
        V [libjvm.so+0xb095bc] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xa7c (compileBroker.cpp:2237)
        V [libjvm.so+0xb0a3c8] CompileBroker::compiler_thread_loop()+0x608 (compileBroker.cpp:1916)
        V [libjvm.so+0x107cfb6] JavaThread::thread_main_inner()+0x206 (javaThread.cpp:699)
        V [libjvm.so+0x1a7c540] Thread::call_run()+0x100 (thread.cpp:224)
        V [libjvm.so+0x1713a03] thread_native_entry(Thread*)+0x103 (os_linux.cpp:710)

        Registers:
        RAX=0x00007fbf40ad7000, RBX=0x0000000000000000, RCX=0x0000000000000001, RDX=0x00007fbcd1214360
        RSP=0x00007fbd155f07e0, RBP=0x00007fbd155f0860, RSI=0x00007fbd155f3bc0, RDI=0x0000000000000000
        R8 =0x00007fbd155f0a90, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x0000000000000004
        R12=0x00007fbcd227e158, R13=0x0000000000000000, R14=0x0000000000000020, R15=0x00007fbcd20a4bf8
        RIP=0x00007fbf3f7b3ffa, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
          TRAPNO=0x000000000000000e


        Register to memory mapping:

        RAX=0x00007fbf40ad7000 points into unknown readable memory: 0x0000000000000058 | 58 00 00 00 00 00 00 00
        RBX=0x0 is NULL
        RCX=0x0000000000000001 is an unknown value
        RDX=0x00007fbcd1214360 points into unknown readable memory: 0x0000000000000004 | 04 00 00 00 00 00 00 00
        RSP=0x00007fbd155f07e0 is pointing into the stack for thread: 0x00007fbcd1213320
        RBP=0x00007fbd155f0860 is pointing into the stack for thread: 0x00007fbcd1213320
        RSI=0x00007fbd155f3bc0 is pointing into the stack for thread: 0x00007fbcd1213320
        RDI=0x0 is NULL
        R8 =0x00007fbd155f0a90 is pointing into the stack for thread: 0x00007fbcd1213320
        R9 =0x0 is NULL
        R10=0x0 is NULL
        R11=0x0000000000000004 is an unknown value
        R12=0x00007fbcd227e158 points into unknown readable memory: 0x00007fbf3fd9b358 | 58 b3 d9 3f bf 7f 00 00
        R13=0x0 is NULL
        R14=0x0000000000000020 is an unknown value
        R15=0x00007fbcd20a4bf8 points into unknown readable memory: 0x00007fbcd227e158 | 58 e1 27 d2 bc 7f 00 00


        Top of Stack: (sp=0x00007fbd155f07e0)
        0x00007fbd155f07e0: ffffffff00000000 ffffffffffffffff
        0x00007fbd155f07f0: 0000000100000058 ffffffff00000000
        0x00007fbd155f0800: 00007fbf3fd01600 0000000000000000
        0x00007fbd155f0810: 0000000000000000 0000000000000000
        0x00007fbd155f0820: 0000000a00000000 0000000000000000
        0x00007fbd155f0830: 0000000000000000 00007fbd155f08b0
        0x00007fbd155f0840: 00007fbd155f09a0 00007fbd155f09a0
        0x00007fbd155f0850: 0000000000000000 00007fbd155f0a90
        0x00007fbd155f0860: 00007fbd155f0930 00007fbf3debf1c8
        0x00007fbd155f0870: ffffffff00000000 ffffffffffffffff
        0x00007fbd155f0880: 0000000000000020 00007fbf3fd01600
        0x00007fbd155f0890: 0000000000000000 0000000000000000
        0x00007fbd155f08a0: 0000000000000000 0000000000000000
        0x00007fbd155f08b0: 00007fbd155f0930 00007fbf3e2ceffa
        0x00007fbd155f08c0: 00007fbd155f08e8 0000000000000000
        0x00007fbd155f08d0: 00007fbf3fd01600 0000000000000000
        0x00007fbd155f08e0: 0000000000000000 0000000000000000
        0x00007fbd155f08f0: 0000000000000000 0000000000000000
        0x00007fbd155f0900: ffffffff00000000 0000000000000000
        0x00007fbd155f0910: 00007fbd155f11b0 00007fbd155f09a0
        0x00007fbd155f0920: 00007fbd155f0a90 00007fbcd227e158
        0x00007fbd155f0930: 00007fbd155f0b60 00007fbf3e0311dd
        0x00007fbd155f0940: ffffffff00000000 ffffffffffffffff
        0x00007fbd155f0950: 0000000000000020 00007fbf3fd01600
        0x00007fbd155f0960: 0000000000000000 0000000000000000
        0x00007fbd155f0970: 0000000000000000 0000000000000000
        0x00007fbd155f0980: 00000004d20a4a70 000000200000000a
        0x00007fbd155f0990: 0000000500000000 0000000400000003
        0x00007fbd155f09a0: 00007fbf3fd07e18 00007fbd155f0cc8
        0x00007fbd155f09b0: 00007fbd155f0d90 0101010100000000
        0x00007fbd155f09c0: 0000000000000000 00007fbf3fd01600
        0x00007fbd155f09d0: ffffffff00000000 ffffffffffffffff

        Instructions: (pc=0x00007fbf3f7b3ffa)
        0x00007fbf3f7b3efa: 25 62 00 66 66 48 e8 bb 7e 6d fe 4c 8b 38 4d 85
        0x00007fbf3f7b3f0a: ff 0f 84 57 03 00 00 49 8b 07 4c 89 ff ff 50 40
        0x00007fbf3f7b3f1a: 84 c0 0f 84 d6 01 00 00 49 8b 07 4c 89 ff ff 50
        0x00007fbf3f7b3f2a: 48 84 c0 0f 84 09 02 00 00 49 8b 87 60 06 00 00
        0x00007fbf3f7b3f3a: bf 88 01 00 00 48 8b b0 80 00 00 00 48 81 c6 40
        0x00007fbf3f7b3f4a: 01 00 00 e8 ce 9f a5 fe 49 89 c7 48 85 c0 0f 84
        0x00007fbf3f7b3f5a: 24 01 00 00 66 0f 6f 75 80 66 0f 6f 7d a0 4c 89
        0x00007fbf3f7b3f6a: 20 66 0f 6f 55 b0 44 89 70 18 44 88 68 1c 0f 11
        0x00007fbf3f7b3f7a: 70 08 0f 11 78 20 0f 11 50 30 48 8b 45 c8 41 c7
        0x00007fbf3f7b3f8a: 47 58 ff ff ff ff 49 89 47 40 48 8b 45 c0 41 c7
        0x00007fbf3f7b3f9a: 47 7c 00 00 00 00 49 89 47 48 0f b6 45 94 49 c7
        0x00007fbf3f7b3faa: 87 80 00 00 00 00 00 00 00 41 88 47 50 41 c6 87
        0x00007fbf3f7b3fba: 88 00 00 00 00 41 c7 87 f0 00 00 00 ff ff ff ff
        0x00007fbf3f7b3fca: 41 c7 87 14 01 00 00 00 00 00 00 49 c7 87 18 01
        0x00007fbf3f7b3fda: 00 00 00 00 00 00 41 c6 87 20 01 00 00 00 3b 5d
        0x00007fbf3f7b3fea: 98 75 48 48 8d 05 24 81 62 00 48 63 fb 48 8b 00
        0x00007fbf3f7b3ffa: c6 00 58 48 8d 05 9d 5f 6d 00 48 01 c7 e8 94 02
        0x00007fbf3f7b400a: c3 ff 48 8d 0d ae f5 09 00 48 8d 15 66 34 11 00
        0x00007fbf3f7b401a: be f7 00 00 00 49 89 c0 48 8d 3d 7f 34 11 00 31
        0x00007fbf3f7b402a: c0 e8 90 c1 fa fe e8 0b 87 b0 ff 3b 5d 9c 75 48
        0x00007fbf3f7b403a: 48 8d 05 d7 80 62 00 48 63 fb 48 8b 00 c6 00 58
        0x00007fbf3f7b404a: 48 8d 05 50 5f 6d 00 48 01 c7 e8 47 02 c3 ff 48
        0x00007fbf3f7b405a: 8d 0d 61 f5 09 00 48 8d 15 19 34 11 00 be f7 00
        0x00007fbf3f7b406a: 00 00 49 89 c0 48 8d 3d 32 34 11 00 31 c0 e8 43
        0x00007fbf3f7b407a: c1 fa fe e8 be 86 b0 ff 66 48 8d 3d ee 23 62 00
        0x00007fbf3f7b408a: 66 66 48 e8 2e 7d 6d fe 48 8b 18 48 85 db 0f 84
        0x00007fbf3f7b409a: 02 02 00 00 48 8b 03 48 89 df ff 50 40 84 c0 0f
        0x00007fbf3f7b40aa: 84 81 01 00 00 48 8b 03 48 89 df ff 50 48 84 c0
        0x00007fbf3f7b40ba: 0f 84 30 01 00 00 48 8b 83 60 06 00 00 48 8b 80
        0x00007fbf3f7b40ca: 80 00 00 00 48 8b 80 a0 0a 00 00 80 b8 84 02 00
        0x00007fbf3f7b40da: 00 00 0f 84 96 00 00 00 48 83 c4 58 4c 89 f8 5b
        0x00007fbf3f7b40ea: 41 5c 41 5d 41 5e 41 5f 5d c3 0f 1f 40 00 48 8d


        Stack slot to memory mapping:
        stack at sp + 0 slots: 0xffffffff00000000 is an unknown value
        stack at sp + 1 slots: 0xffffffffffffffff is an unknown value
        stack at sp + 2 slots: 0x0000000100000058 is an unknown value
        stack at sp + 3 slots: 0xffffffff00000000 is an unknown value
        stack at sp + 4 slots: 0x00007fbf3fd01600: <offset 0x0000000002151600> in /opt/mach5/mesos/work_dir/jib-master/install/2022-11-17-0623452.leonid.mesnik.jdk-atr/linux-x64-debug.jdk/jdk-20/fastdebug/lib/server/libjvm.so at 0x00007fbf3dbb0000
        stack at sp + 5 slots: 0x0 is NULL
        stack at sp + 6 slots: 0x0 is NULL
        stack at sp + 7 slots: 0x0 is NULL

          There are no Sub-Tasks for this issue.

              aboldtch Axel Boldt-Christmas
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: