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

ZGC: nmethod is not unlinked from Method before rendezvous handshake


    • Subcomponent:
    • Resolved In Build:
    • Verification:



        Application crashes with ZGC enabled:
        # A fatal error has been detected by the Java Runtime Environment:
        # SIGSEGV (0xb) at pc=0x00007f032a68c9f0, pid=3749, tid=17683
        # JRE version: Java(TM) SE Runtime Environment (12.0+24) (build 12-ea+24)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (12-ea+24, mixed mode, tiered, z gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0xb6a9f0] Method::is_method_handle_intrinsic() const+0x0
        # Core dump will be written. Default location: /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S1434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/61aeae41-3810-40d2-bd4e-7e74720c985a/runs/a9236a68-5b66-40b6-a729-736439b0a08c/testOutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese24H_java/scratch/0/core.3749
        # 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: -XX:MaxRAMPercentage=8 -XX:+UnlockExperimentalVMOptions -XX:+UseZGC --add-opens=java.base/java.net=ALL-UNNAMED -Dseed=4184370445907880 -XX:MaxRAMPercentage=50 applications.runthese.Runner -duration 1440 -runlist /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S1434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/61aeae41-3810-40d2-bd4e-7e74720c985a/runs/a9236a68-5b66-40b6-a729-736439b0a08c/testOutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_runthese_RunThese24H_java/scratch/0/./RunTheseTestList.dat

        Host: Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz, 6 cores, 29G, Oracle Linux Server release 7.1
        Time: Sat Dec 15 14:04:57 2018 PST elapsed time: 156 seconds (0d 0h 2m 36s)

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

        Current thread (0x00007f00a40e2cc0): JavaThread "/scratch/opt/mach5/mesos/work_dir/jib-master/install/com/oracle/jpg/bigapps/jck/9.0/jck-9.0-20170922.165600-1.tar.gz/JCK-runtime-9/classes javasoft.sqe.tests.api.java.util.stream.Collectors.ToList" daemon [_thread_in_Java, id=17683, stack(0x00007f00198df000,0x00007f00199e0000)]

        Stack: [0x00007f00198df000,0x00007f00199e0000], sp=0x00007f00199dcdb8, free space=1015k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xb6a9f0] Method::is_method_handle_intrinsic() const+0x0
        V [libjvm.so+0x4392c2] BarrierSetNMethod::is_armed(nmethod*)+0x12
        V [libjvm.so+0xe79ac3] ZBarrierSetNMethod::nmethod_entry_barrier(nmethod*)+0x73
        V [libjvm.so+0x438fb4] BarrierSetNMethod::nmethod_stub_entry_barrier(unsigned char**)+0x54
        v ~StubRoutines::nmethod_entry_barrier

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

        Register to memory mapping:

        RAX=0x0 is NULL
        RBX=0x00007f0314bc6e10 is at entry_point+-464 in (nmethod*)0x00007f0314bc6e10
        RCX=0x0000000000000007 is an unknown value
        RDX=0x0 is NULL
        RSP=0x00007f00199dcdb8 is pointing into the stack for thread: 0x00007f00a40e2cc0
        RBP=0x00007f00199dcdd0 is pointing into the stack for thread: 0x00007f00a40e2cc0
        RSI=0x00007f0314bc6e10 is at entry_point+-464 in (nmethod*)0x00007f0314bc6e10
        RDI=0x0 is NULL
        R8 =0x00007f008f1ec760 points into unknown readable memory: 50 b1 68 8c 00 7f 00 00
        R9 =0x0000000000004513 is an unknown value
        R10=0x00007f02fd39a510 is pointing into metadata
        R11=0x0000000000000228 is an unknown value
        R12=0x00007f0314bc6e10 is at entry_point+-464 in (nmethod*)0x00007f0314bc6e10
        R13=0x00007f00a40e2cc0 is a thread
        R14=0x00007f0324032a20 points into unknown readable memory: 18 7c e8 2a 03 7f 00 00
        R15=0x00007f00a40e2cc0 is a thread

        RAX=0x0000000000000000, RBX=0x00007f0314bc6e10, RCX=0x0000000000000007, RDX=0x0000000000000000
        RSP=0x00007f00199dcdb8, RBP=0x00007f00199dcdd0, RSI=0x00007f0314bc6e10, RDI=0x0000000000000000
        R8 =0x00007f008f1ec760, R9 =0x0000000000004513, R10=0x00007f02fd39a510, R11=0x0000000000000228
        R12=0x00007f0314bc6e10, R13=0x00007f00a40e2cc0, R14=0x00007f0324032a20, R15=0x00007f00a40e2cc0
        RIP=0x00007f032a68c9f0, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000004

        Top of Stack: (sp=0x00007f00199dcdb8)
        0x00007f00199dcdb8: 00007f0329f5af25 00007f00199dce70
        0x00007f00199dcdc8: 00007f0324032a20 00007f00199dcdf0
        0x00007f00199dcdd8: 00007f0329f5b2c2 00007f008f1ec760
        0x00007f00199dcde8: 00007f0314bc6e10 00007f00199dce30

        Instructions: (pc=0x00007f032a68c9f0)
        0x00007f032a68c9d0: 00 5b 5d c3 0f 1f 40 00 b8 01 00 00 00 c3 66 90
        0x00007f032a68c9e0: 66 81 7f 28 25 01 55 48 89 e5 5d 0f 94 c0 c3 90
        0x00007f032a68c9f0: 0f b7 47 28 55 48 89 e5 5d 66 2d 20 01 66 83 f8
        0x00007f032a68ca00: 04 0f 96 c0 c3 90 66 2e 0f 1f 84 00 00 00 00 00

        Stack slot to memory mapping:
        stack at sp + 0 slots: 0x00007f0329f5af25: <offset 0x0000000000438f25> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk/12/24/linux-x64.jdk/jdk-12/lib/server/libjvm.so at 0x00007f0329b22000
        stack at sp + 1 slots: 0x00007f00199dce70 is pointing into the stack for thread: 0x00007f00a40e2cc0
        stack at sp + 2 slots: 0x00007f0324032a20 points into unknown readable memory: 18 7c e8 2a 03 7f 00 00
        stack at sp + 3 slots: 0x00007f00199dcdf0 is pointing into the stack for thread: 0x00007f00a40e2cc0
        stack at sp + 4 slots: 0x00007f0329f5b2c2: <offset 0x00000000004392c2> in /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk/12/24/linux-x64.jdk/jdk-12/lib/server/libjvm.so at 0x00007f0329b22000
        stack at sp + 5 slots: 0x00007f008f1ec760 points into unknown readable memory: 50 b1 68 8c 00 7f 00 00
        stack at sp + 6 slots: 0x00007f0314bc6e10 is at entry_point+-464 in (nmethod*)0x00007f0314bc6e10
        stack at sp + 7 slots: 0x00007f00199dce30 is pointing into the stack for thread: 0x00007f00a40e2cc0

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

        Threads class SMR info:
        _java_thread_list=0x00007f00a02300b0, length=43, elements={
        0x00007f03240131d0, 0x00007f03240d79a0, 0x00007f03240da7c0, 0x00007f03240f9620,
        0x00007f03240fb140, 0x00007f03240fcbb0, 0x00007f03240fe750, 0x00007f03241b1210,
        0x00007f03241b56d0, 0x00007f032436dfb0, 0x00007f0324375390, 0x00007f03243765d0,
        0x00007f03243788b0, 0x00007f0324379d90, 0x00007f032437b2b0, 0x00007f032437c7c0,
        0x00007f0084112b80, 0x00007f0084117d00, 0x00007f0084119300, 0x00007f008411a810,
        0x00007f00840fb5e0, 0x00007f003c44bd40, 0x00007f003d0b9ae0, 0x00007f00254fd0c0,
        0x00007f00255cfd70, 0x00007f00255d0820, 0x00007f00255d1230, 0x00007f00255d2020,
        0x00007f00255d29a0, 0x00007f00255e44e0, 0x00007f001e6cfe90, 0x00007f00a419ff30,
        0x00007f0026f76870, 0x00007f003dd050d0, 0x00007f00b011d750, 0x00007f00943144b0,
        0x00007f009c1e9a00, 0x00007f00c85e4130, 0x00007f00a024edc0, 0x00007f00a817c390,
        0x00007f00a40e2cc0, 0x00007f009464aa00, 0x00007f00a022f1c0


            Issue Links



                • Assignee:
                  eosterlund Erik Österlund
                  lmesnik Leonid Mesnik
                • Votes:
                  0 Vote for this issue
                  4 Start watching this issue


                  • Created: