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

Missing ResourceMark in code called from JvmtiEnvBase::get_vthread_jvf

    XMLWordPrintable

Details

    • b05

    Backports

      Description

        Failing test:
        - vmTestbase/nsk/jdi/ReferenceType/defaultStratum/defaultStratum004/defaultStratum004.java

        Stack: [0x00007f83c3bfd000,0x00007f83c3cfd000], sp=0x00007f83c3cf7d80, free space=1003k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x15cfe26] ResourceArea::verify_has_resource_mark() [clone .part.0]+0x26 (resourceArea.cpp:66)
        V [libjvm.so+0x15d0456] (arena.hpp:140)
        V [libjvm.so+0x18540c0] vframe::new_vframe(frame const*, RegisterMap const*, JavaThread*)+0xa0 (allocation.hpp:437)
        V [libjvm.so+0x18543f8] vframeStreamCommon::asJavaVFrame()+0xd8 (vframe.cpp:613)
        V [libjvm.so+0x1185f38] JvmtiEnvBase::get_vthread_jvf(oop)+0x108 (jvmtiEnvBase.cpp:708)
        V [libjvm.so+0x1186f09] SetFramePopClosure::do_vthread(Handle)+0x39 (jvmtiEnvBase.cpp:2440)
        V [libjvm.so+0xda13d7] HandshakeOperation::do_handshake(JavaThread*)+0x47 (handshake.cpp:326)
        V [libjvm.so+0xda1601] HandshakeState::process_by_self(bool, bool)+0x141 (handshake.cpp:571)
        V [libjvm.so+0x15f4265] SafepointMechanism::process(JavaThread*, bool, bool)+0x65 (safepointMechanism.cpp:159)
        V [libjvm.so+0x141061c] Monitor::wait(unsigned long)+0x4bc (safepointMechanism.inline.hpp:83)
        V [libjvm.so+0x11d9fa2] JvmtiVTMSTransitionDisabler::start_VTMS_transition(_jobject*, bool)+0x272 (mutexLocker.hpp:283)
        V [libjvm.so+0x11da6f0] JvmtiVTMSTransitionDisabler::VTMS_unmount_begin(_jobject*, bool)+0x40 (jvmtiThreadState.cpp:658)
        V [libjvm.so+0xff1b46] JVM_VirtualThreadUnmount+0xd6 (jvm.cpp:3986)
        j java.lang.VirtualThread.notifyJvmtiUnmount(Z)V+0 java.base@23-ea
        j java.lang.VirtualThread.yieldContinuation()Z+2 java.base@23-ea
        j java.lang.VirtualThread.park()V+45 java.base@23-ea
        j java.lang.System$2.parkVirtualThread()V+17 java.base@23-ea
        j jdk.internal.misc.VirtualThreads.park()V+3 java.base@23-ea
        j java.util.concurrent.locks.LockSupport.park()V+9 java.base@23-ea
        j sun.nio.ch.Poller.poll(IJLjava/util/function/BooleanSupplier;)V+32 java.base@23-ea
        j sun.nio.ch.Poller.poll(IIJLjava/util/function/BooleanSupplier;)V+38 java.base@23-ea
        j sun.nio.ch.NioSocketImpl.park(Ljava/io/FileDescriptor;IJ)V+25 java.base@23-ea
        j sun.nio.ch.NioSocketImpl.park(Ljava/io/FileDescriptor;I)V+4 java.base@23-ea
        j sun.nio.ch.NioSocketImpl.implRead([BII)I+136 java.base@23-ea
        j sun.nio.ch.NioSocketImpl.read([BII)I+54 java.base@23-ea
        j sun.nio.ch.NioSocketImpl$1.read([BII)I+7 java.base@23-ea
        j java.net.Socket$SocketInputStream.implRead([BII)I+7 java.base@23-ea
        j java.net.Socket$SocketInputStream.read([BII)I+10 java.base@23-ea
        j java.net.Socket$SocketInputStream.read()I+8 java.base@23-ea
        j java.io.ObjectInputStream$PeekInputStream.peek()I+17 java.base@23-ea
        j java.io.ObjectInputStream$BlockDataInputStream.peek()I+51 java.base@23-ea
        j java.io.ObjectInputStream$BlockDataInputStream.peekByte()B+1 java.base@23-ea
        j java.io.ObjectInputStream.readObject0(Ljava/lang/Class;Z)Ljava/lang/Object;+65 java.base@23-ea
        j java.io.ObjectInputStream.readObject(Ljava/lang/Class;)Ljava/lang/Object;+42 java.base@23-ea
        j java.io.ObjectInputStream.readObject()Ljava/lang/Object;+3 java.base@23-ea
        j nsk.share.jpda.SocketConnection.doReadObject()Ljava/lang/Object;+25
        j nsk.share.jpda.SocketConnection.readObject()Ljava/lang/Object;+25
        j nsk.share.jpda.SocketIOPipe.readln()Ljava/lang/String;+15
        j nsk.share.jpda.AbstractDebuggeeTest.doTest()V+33
        J 131 jdk.internal.vm.Continuation.enterSpecial(Ljdk/internal/vm/Continuation;ZZ)V java.base@23-ea (0 bytes) @ 0x00007f882471efd3 [0x00007f882471ee60+0x0000000000000173]
        j jdk.internal.vm.Continuation.run()V+152 java.base@23-ea
        j java.lang.VirtualThread.runContinuation()V+72 java.base@23-ea
        j java.lang.VirtualThread$$Lambda+0x00007f8383048340.run()V+4 java.base@23-ea
        j java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute()Ljava/lang/Void;+4 java.base@23-ea
        j java.util.concurrent.ForkJoinTask$RunnableExecuteAction.compute()Ljava/lang/Object;+1 java.base@23-ea
        j java.util.concurrent.ForkJoinTask$InterruptibleTask.exec()Z+51 java.base@23-ea
        j java.util.concurrent.ForkJoinTask.doExec()V+10 java.base@23-ea
        j java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Ljava/util/concurrent/ForkJoinTask;Ljava/util/concurrent/ForkJoinPool$WorkQueue;I)V+49 java.base@23-ea
        J 228 c1 java.util.concurrent.ForkJoinPool.scan(Ljava/util/concurrent/ForkJoinPool$WorkQueue;JI)J java.base@23-ea (301 bytes) @ 0x00007f881cc8d9f4 [0x00007f881cc8d1e0+0x0000000000000814]
        j java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V+62 java.base@23-ea
        j java.util.concurrent.ForkJoinWorkerThread.run()V+31 java.base@23-ea
        v ~StubRoutines::call_stub 0x00007f8824181d1a
        V [libjvm.so+0xe841a9] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x4a9 (javaCalls.cpp:415)
        V [libjvm.so+0xe84865] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x345 (javaCalls.cpp:329)
        V [libjvm.so+0xe84a86] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x76 (javaCalls.cpp:191)
        V [libjvm.so+0xfed813] thread_entry(JavaThread*, JavaThread*)+0x93 (jvm.cpp:2937)
        V [libjvm.so+0xeb921c] JavaThread::thread_main_inner()+0xcc (javaThread.cpp:720)
        V [libjvm.so+0x179e216] Thread::call_run()+0xb6 (thread.cpp:220)
        V [libjvm.so+0x14a84f7] thread_native_entry(Thread*)+0x127 (os_linux.cpp:789)

        Attachments

          Issue Links

            Activity

              People

                sspitsyn Serguei Spitsyn
                dholmes David Holmes
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: