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

jvmti/thread/SuspendThread/suspendthrd03 failed with "FAIL: Status is 2"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • b20
    • aarch64
    • os_x

      The following test failed in my jdk-20+10 stress testing:

      serviceability/jvmti/thread/SuspendThread/suspendthrd03/suspendthrd03.java

      Here's a snippet from the log file:

      [2.837s][debug][thread,smr] tid=39427: ThreadsSMRSupport::smr_delete: thread=0x00000001280c5010 is deleted.
      Finishing tested thread
      Wait for thread to start
      [2.837s][debug][thread,smr] tid=39683: ThreadsSMRSupport::smr_delete: thread=0x00000001280c4810 is deleted.
      Sync: thread finished
      Synchronization point checkStatus(2) called.
      Data 0x150906d00 0x150907000
      FAIL: Status is 2
      Find thread: TestedThread

      <snip>

      [2.861s][info ][thread,smr] Threads class SMR info:
      [2.861s][info ][thread,smr] _java_thread_list=0x000000012fe2c980, length=11, elements={
      [2.861s][info ][thread,smr] 0x0000000138008210, 0x0000000151017a10, 0x0000000148017810, 0x0000000138028210,
      [2.861s][info ][thread,smr] 0x000000012b00ba10, 0x000000012880b210, 0x000000013880c210, 0x0000000150015c10,
      [2.861s][info ][thread,smr] 0x0000000138848e10, 0x000000015001da10, 0x0000000150021210
      [2.861s][info ][thread,smr] }
      [2.861s][info ][thread,smr] _java_thread_list_alloc_cnt=22, _java_thread_list_free_cnt=20, _java_thread_list_max=14, _nested_thread_list_max=0
      [2.861s][info ][thread,smr] _tlh_cnt=16681, _tlh_times=15, avg_tlh_time=0.00, _tlh_time_max=12
      [2.861s][info ][thread,smr] _deleted_thread_cnt=5, _deleted_thread_times=14, avg_deleted_thread_time=2.80, _deleted_thread_time_max=14
      [2.861s][info ][thread,smr] _delete_lock_wait_cnt=0, _delete_lock_wait_max=2
      [2.861s][info ][thread,smr] _to_delete_list_cnt=0, _to_delete_list_max=2
      ----------System.err:(11/635)----------
      java.lang.RuntimeException: check failed with result 2
              at suspendthrd03.main(suspendthrd03.java:191)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
              at java.base/java.lang.reflect.Method.invoke(Method.java:578)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
              at java.base/java.lang.Thread.run(Thread.java:1589)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: check failed with result 2
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: check failed with result 2
      ----------rerun:(36/6074)*----------

            lmesnik Leonid Mesnik
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: