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

(thread) TEST_BUG java/lang/Thread/StopBeforeStart,ThreadStateTest.java fail with -Xcomp

XMLWordPrintable

    • generic
    • generic, solaris

      During HS14-b01/jdk7b31 PIT

      java/lang/Thread/ThreadStateTest.java fails on solaris-sparcv9 with -server -Xcomp
      ----------System.out:(16/510)----------
      Checking thread state NEW
      Checking thread state RUNNABLE
      Waiting myThread to go blocked.
        myThread is going to block.
      Checking thread state BLOCKED
      Waiting myThread to go waiting.
        myThread is going to wait.
      Checking thread state WAITING
      Waiting myThread to go timed waiting.
        myThread is going to timed wait.
      Checking thread state TIMED_WAITING
      Waiting myThread to go sleeping.
        myThread is going to sleep.
      Checking thread state TIMED_WAITING
      Waiting myThread to terminate.
      Checking thread state RUNNABLE
      ----------System.err:(14/884)----------
      java.lang.RuntimeException: MyThread expected to have TERMINATED but got RUNNABLE
      at ThreadStateTest.checkThreadState(ThreadStateTest.java:119)
      at ThreadStateTest.main(ThreadStateTest.java:96)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:674)


      Similarly, java/lang/Thread/StopBeforeStart.java fails on Solaris-i586 with -client -Xcomp:
      ----------System.out:(0/0)----------
      ----------System.err:(15/894)----------
      java.lang.RuntimeException: Runnable test: app thread did not terminate
      at StopBeforeStart.runit(StopBeforeStart.java:126)
      at StopBeforeStart.doit(StopBeforeStart.java:102)
      at StopBeforeStart.main(StopBeforeStart.java:94)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:674)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Runnable test: app thread did not terminate
      JavaTest Message: shutting down test

      see comments for notes on how to reproduce these failures.

      There may be a testbug due to some race condition or a thread state visibility issue,
      but this is not obvious.

            chegar Chris Hegarty
            nzinovie Nikita Zinoviev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: