Test vmTestbase/nsk/jdi/ThreadReference/isSuspended/issuspended001/TestDescription.java failed: JVMTI_ERROR_THREAD_NOT_ALIVE

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 26
    • Component/s: core-svc

      ==> nsk/jdi/ThreadReference/isSuspended/issuspended001 new checkready: #0
      [8:3:42.137] --> debugger: getting ThreadReference objects and setting up breakponts
      [8:3:42.145] --> debugger: setting up breakpoints
      [8:3:42.145] --> debugger: setting up a breakpoint: method: 'runt1' line: breakpointLineNumber1
      [8:3:42.153] --> debugger: a breakpoint has been set up
      [8:3:42.153] --> debugger: setting up a breakpoint: method: 'runt1' line: breakpointLineNumber3
      [8:3:42.154] --> debugger: a breakpoint has been set up
      [8:3:42.154] --> debugger: setting up a breakpoint: method: 'runt2' line: breakpointLineNumber2
      [8:3:42.154] --> debugger: a breakpoint has been set up
      [8:3:42.154] --> debugger: checking up the thread2 before to begin testing it
      [8:3:42.169] --> debugger: suspendCount == 0
      [8:3:42.170] --> debugger: : !thread2.isSuspended()
      [8:3:42.170] --> debugger: .....testing case 1:
      [8:3:42.170] --> debugger: .....the thread2 is suspended with thread2.suspend();
      [8:3:42.170] --> debugger: .....and resumed with thread2.resume();
      [8:3:42.171] --> debugger: checking up the thread2 after suspending it
      [8:3:42.171] --> debugger: : thread2.isSuspended()
      [8:3:42.171] --> debugger: suspendCount == 1
      [8:3:42.172] --> debugger: checking up the thread2 after resuming it
      [8:3:42.172] --> debugger: : !thread2.isSuspended()
      [8:3:42.172] --> debugger: suspendCount == 0
      [8:3:42.173] --> debugger: .....testing case 2:
      [8:3:42.173] --> debugger: .....the thread2 is suspended with thread2.suspend();
      [8:3:42.173] --> debugger: .....and resumed with vm.resume();
      [8:3:42.173] --> debugger: checking up the thread2 after suspending it
      [8:3:42.174] --> debugger: : thread2.isSuspended()
      [8:3:42.174] --> debugger: suspendCount == 1
      [8:3:42.175] --> debugger: checking up the thread2 after resuming the application in VM
      [8:3:42.175] --> debugger: : !thread2.isSuspended()
      [8:3:42.175] --> debugger: suspendCount == 0
      [8:3:42.175] --> debugger: .....testing case 3:
      [8:3:42.175] --> debugger: .....the thread2 is suspended with vm.suspend();
      [8:3:42.175] --> debugger: .....and resumed with vm.resume();
      [8:3:42.178] --> debugger: checking up the thread2 after suspending the application in VM
      [8:3:42.178] --> debugger: : thread2.isSuspended()
      [8:3:42.178] --> debugger: suspendCount == 1
      [8:3:42.180] --> debugger: checking up the thread2 after resuming the application in VM
      [8:3:42.180] --> debugger: : !thread2.isSuspended()
      [8:3:42.181] --> debugger: suspendCount == 0
      [8:3:42.181] --> debugger: enabling breakpRequest1
      [8:3:42.182] --> debugger: instructing main thread to leave the synchronized block
      [8:3:42.184] debugee.stderr> **> thread2: entered into block: synchronized (lockingObject)
      [8:3:42.185] debugee.stderr> **> thread2: exited from block: synchronized (lockingObject)
      [8:3:42.185] debugee.stderr> **> mainThread: out of synchronized block
      [8:3:42.185] debugee.stderr> **> thread2: call to the method 'runt1'
      [8:3:42.186] debugee.stderr> **> thread2: method 'runt1' enter
      [8:3:42.187] --> debugger: waiting for BreakpointEvent
      [8:3:42.187] --> debugger: new: eventSet = eventQueue.remove();
      [8:3:42.188] --> debugger: : eventSet != null; size == 1
      [8:3:42.188] --> debugger: BreakpointEvent removed
      [8:3:42.188] --> debugger: : eventSet == null: EventQueue is empty
      [8:3:42.189] --> debugger: the thread2 is at first breakpoint
      [8:3:42.189] --> debugger: frameCount == 7
      [8:3:42.189] --> debugger: checking up that thread2 is suspended at first breakpoint
      [8:3:42.190] --> debugger: suspendCount == 1
      [8:3:42.191] --> debugger: : thread2.isAtBreakpoint()
      [8:3:42.192] --> debugger: : thread2.isSuspended()
      [8:3:42.192] --> debugger: instructing main thread to enter the synchronized block
      [8:3:42.193] debugee.stderr> **> mainThread: in synchronized block
      [8:3:42.195] --> debugger: the thread2 has left the breakpoint
      [8:3:42.195] --> debugger: .....testing case 4: suspended_at_breakpoint - eventSet.resume();
      [8:3:42.195] --> debugger: .....checking up that the thread2 is not at first breakpoint
      [8:3:42.196] --> debugger: : !thread2.isAtBreakpoint()
      [8:3:42.196] --> debugger: checking up that the thread2 is not suspended
      [8:3:42.196] --> debugger: suspendCount == 0
      [8:3:42.198] --> debugger: : !thread2.isSuspended()
      [8:3:42.198] --> debugger: enabling breakpRequest2
      [8:3:42.200] --> debugger: instructing main thread to leave the synchronized block
      [8:3:42.202] debugee.stderr> **> mainThread: out of synchronized block
      [8:3:42.202] --> debugger: waiting for BreakpointEvent
      [8:3:42.202] --> debugger: new: eventSet = eventQueue.remove();
      [8:3:42.203] debugee.stderr> **> thread2: entered into block: synchronized (lockingObject)
      [8:3:42.203] debugee.stderr> **> thread2: exited from block: synchronized (lockingObject)
      [8:3:42.203] debugee.stderr> **> thread2: call to the method 'runt2'
      [8:3:42.204] debugee.stderr> **> thread2: method 'runt2' enter
      [8:3:42.204] --> debugger: : eventSet != null; size == 1
      [8:3:42.205] --> debugger: BreakpointEvent removed
      [8:3:42.205] --> debugger: : eventSet == null: EventQueue is empty
      [8:3:42.205] --> debugger: the thread2 is at second breakpoint
      [8:3:42.205] --> debugger: frameCount == 8
      [8:3:42.205] --> debugger: checking up that the thread2 is suspended at second breakpoint
      [8:3:42.206] --> debugger: suspendCount == 1
      [8:3:42.207] --> debugger: : thread2.isAtBreakpoint()
      [8:3:42.207] --> debugger: : thread2.isSuspended()
      [8:3:42.207] --> debugger: instructing main thread to enter the synchronized block
      [8:3:42.210] debugee.stderr> **> mainThread: in synchronized block
      [8:3:42.211] --> debugger: the thread2 has left the breakpoint
      [8:3:42.212] --> debugger: .....testing case 5: suspended_at_breakpoint - thread2.resume();
      [8:3:42.212] --> debugger: .....checking up that the thread is not at a breakpoint
      [8:3:42.212] --> debugger: : !thread2.isAtBreakpoint()
      [8:3:42.212] --> debugger: checking up that the thread is not suspended
      [8:3:42.213] --> debugger: suspendCount == 0
      [8:3:42.213] --> debugger: : !thread2.isSuspended()
      [8:3:42.213] --> debugger: enabling breakpRequest3
      [8:3:42.214] --> debugger: instructing main thread to leave the synchronized block
      [8:3:42.217] debugee.stderr> **> mainThread: out of synchronized block
      [8:3:42.217] debugee.stderr> **> thread2: entered into block: synchronized (lockingObject)
      [8:3:42.217] debugee.stderr> **> thread2: exited from block: synchronized (lockingObject)
      [8:3:42.217] debugee.stderr> **> thread2: method 'run2t' exit
      [8:3:42.218] debugee.stderr> **> thread2: returned from the method 'runt2'
      [8:3:42.218] --> debugger: waiting for BreakpointEvent
      [8:3:42.218] --> debugger: new: eventSet = eventQueue.remove();
      [8:3:42.218] --> debugger: : eventSet != null; size == 1
      [8:3:42.218] --> debugger: BreakpointEvent removed
      [8:3:42.218] --> debugger: : eventSet == null: EventQueue is empty
      [8:3:42.218] --> debugger: the thread2 is at third breakpoint
      [8:3:42.219] --> debugger: frameCount == 7
      [8:3:42.219] --> debugger: checking up that the thread2 is suspended at third breakpoint
      [8:3:42.219] --> debugger: suspendCount == 1
      [8:3:42.220] --> debugger: : thread2.isAtBreakpoint()
      [8:3:42.221] --> debugger: : thread2.isSuspended()
      [8:3:42.221] --> debugger: the thread has left the breakpoint
      [8:3:42.221] --> debugger: .....testing case 6: suspended_at_breakpoint - vm.resume();
      [8:3:42.221] --> debugger: .....checking up that the thread is not at a breakpoint
      [8:3:42.222] debugee.stderr> **> thread2: method 'runt1' exit
      [8:3:42.222] debugee.stderr> **> thread2: returned from the method 'runt1'
      [8:3:42.222] debugee.stderr> **> thread2: method 'run' exit
      [8:3:42.222] --> debugger: : !thread2.isAtBreakpoint()
      [8:3:42.222] --> debugger: checking that the thread is not suspended
      [8:3:42.223] --> debugger: suspendCount == 0
      [8:3:42.224] debugee.stderr> JDWP exit error JVMTI_ERROR_THREAD_NOT_ALIVE(15): cannot set thread local storage [/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S11768/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/136d798f-c042-4b00-965d-f2ef08802a51/runs/2ab3d83f-d968-42bc-9c1f-a5e419704e39/workspace/open/src/jdk.jdwp.agent/share/native/libjdwp/threadControl.c:165]
      [8:3:42.224] debugee.stdout> FATAL ERROR in native method: JDWP cannot set thread local storage, jvmtiError=JVMTI_ERROR_THREAD_NOT_ALIVE(15)
      [8:3:42.224] debugee.stdout> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      [8:3:44.10] debugee.stdout> V [libjvm.so+0xf06a34] JavaThread::print_jni_stack()+0xcc (resourceArea.hpp:217)
      [8:3:44.11] debugee.stdout> V [libjvm.so+0x1008280] jni_FatalError+0xa0 (jni.cpp:623)
      [8:3:44.17] debugee.stdout> C [libjdwp.so+0x11528] jniFatalError.constprop.0+0xdc (debugInit.c:616)
      [8:3:44.17] debugee.stdout> C [libjdwp.so+0x11754] debugInit_exit+0x74 (debugInit.c:1331)
      [8:3:44.17] debugee.stdout> C [libjdwp.so+0x26aa8] insertThread+0x164 (threadControl.c:487)
      [8:3:44.17] debugee.stdout> C [libjdwp.so+0x26ee0] findRunningThread+0xd0 (threadControl.c:304)
      [8:3:44.18] debugee.stdout> C [libjdwp.so+0x28c10] threadControl_applicationThreadStatus+0xac (threadControl.c:2360)
      [8:3:44.18] debugee.stdout> C [libjdwp.so+0xcc58] status+0x70 (ThreadReferenceImpl.c:140)
      [8:3:44.18] debugee.stdout> C [libjdwp.so+0x13fa4] debugLoop_run+0x1c4 (debugLoop.c:164)
      [8:3:44.18] debugee.stdout> C [libjdwp.so+0x2a018] attachThread+0x4c (transport.c:387)
      [8:3:44.19] debugee.stdout> V [libjvm.so+0x12298fc] JvmtiAgentThread::call_start_function()+0xb8 (jvmtiImpl.cpp:89)
      [8:3:44.21] debugee.stdout> V [libjvm.so+0xf014a8] JavaThread::thread_main_inner()+0x108 (javaThread.cpp:776)
      [8:3:44.22] debugee.stdout> V [libjvm.so+0x187ea9c] Thread::call_run()+0xac (thread.cpp:242)
      [8:3:44.23] debugee.stdout> V [libjvm.so+0x154d21c] thread_native_entry(Thread*)+0x11c (os_linux.cpp:860)
      [8:3:44.24] debugee.stdout> C [libc.so.6+0x80b50] start_thread+0x300
      ----------System.err:(19/1339)----------
      com.sun.jdi.VMDisconnectedException
      at jdk.jdi/com.sun.tools.jdi.TargetVM.waitForReply(TargetVM.java:305)
      at jdk.jdi/com.sun.tools.jdi.VirtualMachineImpl.waitForTargetReply(VirtualMachineImpl.java:1175)
      at jdk.jdi/com.sun.tools.jdi.PacketStream.waitForReply(PacketStream.java:89)
      at jdk.jdi/com.sun.tools.jdi.JDWP$ThreadReference$Status.waitForReply(JDWP.java:5342)
      at jdk.jdi/com.sun.tools.jdi.JDWP$ThreadReference$Status.process(JDWP.java:5323)
      at jdk.jdi/com.sun.tools.jdi.ThreadReferenceImpl.jdwpStatus(ThreadReferenceImpl.java:304)
      at jdk.jdi/com.sun.tools.jdi.ThreadReferenceImpl.isSuspended(ThreadReferenceImpl.java:322)
      at nsk.jdi.ThreadReference.isSuspended.issuspended001.runThis(issuspended001.java:585)
      at nsk.jdi.ThreadReference.isSuspended.issuspended001.run(issuspended001.java:92)
      at nsk.jdi.ThreadReference.isSuspended.issuspended001.main(issuspended001.java:85)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:459)

            Assignee:
            Chris Plummer
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: