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

runtime/jni/terminatedThread/TestTerminatedThread.java fails intermittently on Linux-X64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 12
    • 11, 12
    • hotspot
    • x86_64
    • linux_ubuntu

      The following test failed due to an exception on Linux X64
      in the slowdebug config using jdk11+23 bits:

      runtime/jni/terminatedThread/TestTerminatedThread.java

      The test only failed in 1 of 3 'slowdebug' bits runs so I'm
      tagging this bug as intermittent. It did not fail at all in the
      'fastdebug' or 'release' bits runs.

      Here is a snippet from the log file:

      ----------System.out:(11/312)----------
      Working with thread: Thread[Thread-1,5,main], in state: RUNNABLE
      Calling suspend ...
      Calling resume ...
      Calling getStackTrace ...
      []
      Calling setName("NewName") ...
      Calling interrupt ...
      Calling stop ...
      Calling getThreadCpuTime ...
      Native thread is running and attaching as daemon ...
      Native thread terminating
      ----------System.err:(13/924)----------
      java.lang.RuntimeException: Invalid ThreadCpuTime returned = 107789556 expected = -1
              at TestTerminatedThread.main(TestTerminatedThread.java:88)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
              at java.base/java.lang.Thread.run(Thread.java:834)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Invalid ThreadCpuTime returned = 107789556 expected = -1
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Invalid ThreadCpuTime returned = 107789556 expected = -1
      ----------rerun:(29/3557)*----------

        1. diffs.8208159.txt.00
          8 kB
          Daniel Daugherty

            dholmes David Holmes
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: