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

VThreadMonitorTest fails "assert(!current->cont_fastpath() || (current->cont_fastpath_thread_state() && !interpreted_native_or_deoptimized_on_stack(current))) failed"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 19, repo-loom
    • Fix Version/s: 19
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      x86_64
    • OS:
      linux

      Backports

        Description

        The following test failed in the jdk-19-loomvt CI:

        serviceability/jvmti/vthread/VThreadMonitorTest/VThreadMonitorTest.java

        Here's a snippet from the log file:

        MonitorContendedEntered: ForkJoinPool-1-worker-1: contended monitor: (nil)
        MonitorContendedEntered: GetCurrentContendedMonitor returned expected monitor for ForkJoinPool-1-worker-1
        MonitorContendedEntered: GetThreadState returned state for ForkJoinPool-1-worker-1: 5

        # To suppress the following error report, specify this argument
        # after -XX: or in .hotspotrc: SuppressErrorAt=/continuationFreezeThaw.cpp:1419
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S14583/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/573b9063-f5bd-4d5b-b8d0-ecb9689634ec/runs/a0194c96-56c6-4351-bfa9-3ab6dd03bf04/workspace/open/src/hotspot/share/runtime/continuationFreezeThaw.cpp:1419), pid=1926, tid=2275
        # Error: assert(!current->cont_fastpath() || (current->cont_fastpath_thread_state() && !interpreted_native_or_deoptimized_on_stack(current))) failed
        #
        # JRE version: Java(TM) SE Runtime Environment (19.0+1) (fastdebug build 19-loomvt+1-50)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 19-loomvt+1-50, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0xb4f7d4] int freeze_internal<Config<(oop_kind)0, G1BarrierSet> >(JavaThread*, long*)+0x734
        #
        # 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/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S40722/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0d33a799-a731-430f-a784-3d8ec8503df6/runs/6588dd07-9533-4dd2-a73a-a5111cc1b2e7/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/scratch/5/core.1926)
        #
        # An error report file with more information is saved as:
        # /opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S40722/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0d33a799-a731-430f-a784-3d8ec8503df6/runs/6588dd07-9533-4dd2-a73a-a5111cc1b2e7/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/scratch/5/hs_err_pid1926.log
        #
        # If you would like to submit a bug report, please visit:
        # https://bugreport.java.com/bugreport/crash.jsp
        #
        ----------System.err:(0/0)----------
        ----------rerun:(46/6737)*----------


        Here's the crashing thread's stack:

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

        Current thread (0x00007f8bd4000ed0): JavaThread "ForkJoinPool-1-worker-6" daemon [_thread_in_Java, id=2275, stack(0x00007f8c55afb000,0x00007f8c55bfc000)]

        Stack: [0x00007f8c55afb000,0x00007f8c55bfc000], sp=0x00007f8c55bfa330, free space=1020k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xb4f7d4] int freeze_internal<Config<(oop_kind)0, G1BarrierSet> >(JavaThread*, long*)+0x734
        V [libjvm.so+0xb4f8e2] int freeze<Config<(oop_kind)0, G1BarrierSet> >(JavaThread*, long*)+0xf2
        v ~RuntimeStub::cont_doYield 0x00007f8c69046575
        J 3162 c2 jdk.internal.vm.Continuation.yield0(Ljdk/internal/vm/ContinuationScope;Ljdk/internal/vm/Continuation;)Z java.base@19-loomvt (359 bytes) @ 0x00007f8c697719f8 [0x00007f8c69771900+0x00000000000000f8]
        J 3161 c2 jdk.internal.vm.Continuation.yield(Ljdk/internal/vm/ContinuationScope;)Z java.base@19-loomvt (73 bytes) @ 0x00007f8c6977937c [0x00007f8c69779280+0x00000000000000fc]
        J 3160 c2 java.lang.VirtualThread.yieldContinuation()Z java.base@19-loomvt (55 bytes) @ 0x00007f8c6976f9b4 [0x00007f8c6976f920+0x0000000000000094]
        J 3062 c2 java.lang.VirtualThread.doParkNanos(J)V java.base@19-loomvt (193 bytes) @ 0x00007f8c6974e1b0 [0x00007f8c6974e0c0+0x00000000000000f0]
        J 3057 c2 java.lang.VirtualThread.doSleepNanos(J)V java.base@19-loomvt (111 bytes) @ 0x00007f8c69749e6c [0x00007f8c69749d40+0x000000000000012c]
        J 3055 c2 java.lang.VirtualThread.sleepNanos(J)V java.base@19-loomvt (80 bytes) @ 0x00007f8c697473a4 [0x00007f8c69747340+0x0000000000000064]
        J 3054 c2 java.lang.Thread.sleep(J)V java.base@19-loomvt (103 bytes) @ 0x00007f8c69747b5c [0x00007f8c69747ae0+0x000000000000007c]
        J 3053% c2 VThreadMonitorTest.lambda$static$1()V (51 bytes) @ 0x00007f8c697480fc [0x00007f8c69748040+0x00000000000000bc]
        J 3052 c2 VThreadMonitorTest$$Lambda$2+0x0000000801001b28.run()V (4 bytes) @ 0x00007f8c6974778c [0x00007f8c69747740+0x000000000000004c]
        J 3018 jdk.internal.vm.Continuation.enterSpecial(Ljdk/internal/vm/Continuation;ZZ)V java.base@19-loomvt (0 bytes) @ 0x00007f8c6973aa59 [0x00007f8c6973a9c0+0x0000000000000099]
        J 3009 c2 jdk.internal.vm.Continuation.run()V java.base@19-loomvt (586 bytes) @ 0x00007f8c6974f978 [0x00007f8c6974f400+0x0000000000000578]
        J 2868 c2 java.lang.VirtualThread.runContinuation()V java.base@19-loomvt (135 bytes) @ 0x00007f8c696ed734 [0x00007f8c696ed600+0x0000000000000134]
        J 3007 c2 java.lang.VirtualThread$$Lambda$9+0x000000080104e828.run()V java.base@19-loomvt (8 bytes) @ 0x00007f8c6973a418 [0x00007f8c6973a3c0+0x0000000000000058]
        J 3005 c2 java.util.concurrent.ForkJoinTask.doExec()I java.base@19-loomvt (37 bytes) @ 0x00007f8c69738ff4 [0x00007f8c69738f60+0x0000000000000094]
        J 3003 c2 java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V java.base@19-loomvt (83 bytes) @ 0x00007f8c6973b4fc [0x00007f8c6973b460+0x000000000000009c]
        J 2995 c2 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;II)I java.base@19-loomvt (250 bytes) @ 0x00007f8c6971ed4c [0x00007f8c6971eac0+0x000000000000028c]
        j java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V+35 java.base@19-loomvt
        J 2986 c2 java.util.concurrent.ForkJoinWorkerThread.run()V java.base@19-loomvt (180 bytes) @ 0x00007f8c69729d74 [0x00007f8c69729ce0+0x0000000000000094]
        v ~StubRoutines::call_stub 0x00007f8c6902cd47
        V [libjvm.so+0xfd0d94] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x504
        V [libjvm.so+0xfd1644] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x4b4
        V [libjvm.so+0xfd1ab7] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x77
        V [libjvm.so+0x114d64b] thread_entry(JavaThread*, JavaThread*)+0x12b
        V [libjvm.so+0x1a5528a] JavaThread::thread_main_inner()+0x21a
        V [libjvm.so+0x1a62b60] Thread::call_run()+0x100
        V [libjvm.so+0x170bae4] thread_native_entry(Thread*)+0x104

        Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
        v ~RuntimeStub::cont_doYield 0x00007f8c69046527
        J 3162 c2 jdk.internal.vm.Continuation.yield0(Ljdk/internal/vm/ContinuationScope;Ljdk/internal/vm/Continuation;)Z java.base@19-loomvt (359 bytes) @ 0x00007f8c697719f8 [0x00007f8c69771900+0x00000000000000f8]
        J 3161 c2 jdk.internal.vm.Continuation.yield(Ljdk/internal/vm/ContinuationScope;)Z java.base@19-loomvt (73 bytes) @ 0x00007f8c6977937c [0x00007f8c69779280+0x00000000000000fc]
        J 3160 c2 java.lang.VirtualThread.yieldContinuation()Z java.base@19-loomvt (55 bytes) @ 0x00007f8c6976f9b4 [0x00007f8c6976f920+0x0000000000000094]
        J 3062 c2 java.lang.VirtualThread.doParkNanos(J)V java.base@19-loomvt (193 bytes) @ 0x00007f8c6974e1b0 [0x00007f8c6974e0c0+0x00000000000000f0]
        J 3057 c2 java.lang.VirtualThread.doSleepNanos(J)V java.base@19-loomvt (111 bytes) @ 0x00007f8c69749e6c [0x00007f8c69749d40+0x000000000000012c]
        J 3055 c2 java.lang.VirtualThread.sleepNanos(J)V java.base@19-loomvt (80 bytes) @ 0x00007f8c697473a4 [0x00007f8c69747340+0x0000000000000064]
        J 3054 c2 java.lang.Thread.sleep(J)V java.base@19-loomvt (103 bytes) @ 0x00007f8c69747b5c [0x00007f8c69747ae0+0x000000000000007c]
        J 3053% c2 VThreadMonitorTest.lambda$static$1()V (51 bytes) @ 0x00007f8c697480fc [0x00007f8c69748040+0x00000000000000bc]
        J 3052 c2 VThreadMonitorTest$$Lambda$2+0x0000000801001b28.run()V (4 bytes) @ 0x00007f8c6974778c [0x00007f8c69747740+0x000000000000004c]
        J 3018 jdk.internal.vm.Continuation.enterSpecial(Ljdk/internal/vm/Continuation;ZZ)V java.base@19-loomvt (0 bytes) @ 0x00007f8c6973aa59 [0x00007f8c6973a9c0+0x0000000000000099]
        J 3009 c2 jdk.internal.vm.Continuation.run()V java.base@19-loomvt (586 bytes) @ 0x00007f8c6974f978 [0x00007f8c6974f400+0x0000000000000578]
        J 2868 c2 java.lang.VirtualThread.runContinuation()V java.base@19-loomvt (135 bytes) @ 0x00007f8c696ed734 [0x00007f8c696ed600+0x0000000000000134]
        J 3007 c2 java.lang.VirtualThread$$Lambda$9+0x000000080104e828.run()V java.base@19-loomvt (8 bytes) @ 0x00007f8c6973a418 [0x00007f8c6973a3c0+0x0000000000000058]
        J 3005 c2 java.util.concurrent.ForkJoinTask.doExec()I java.base@19-loomvt (37 bytes) @ 0x00007f8c69738ff4 [0x00007f8c69738f60+0x0000000000000094]
        J 3003 c2 java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V java.base@19-loomvt (83 bytes) @ 0x00007f8c6973b4fc [0x00007f8c6973b460+0x000000000000009c]
        J 2995 c2 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;II)I java.base@19-loomvt (250 bytes) @ 0x00007f8c6971ed4c [0x00007f8c6971eac0+0x000000000000028c]
        j java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V+35 java.base@19-loomvt
        J 2986 c2 java.util.concurrent.ForkJoinWorkerThread.run()V java.base@19-loomvt (180 bytes) @ 0x00007f8c69729d74 [0x00007f8c69729ce0+0x0000000000000094]
        v ~StubRoutines::call_stub 0x00007f8c6902cd47

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rpressler Ron Pressler
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: