-
Bug
-
Resolution: Fixed
-
P3
-
9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084845 | emb-9 | Jaroslav BachorĂk | P3 | Resolved | Fixed | team |
From the GC nightlies:
----------messages:(3/122)----------
command: main ThreadStackTrace
reason: User specified action: run main ThreadStackTrace
elapsed time (seconds): 6.307
----------System.out:(9/439)----------
Checking stack trace for the examiner thread is waiting to begin.
Now starting the blocked thread
Checking examiner's its own stack trace
Checking stack trace for BlockedThread - should be blocked on lockA.
Unexpected exception.
Checking stack trace for BlockedThread - should be waiting on lockA.
Checking examiner's its own stack trace
BlockedThread notified
Checking stack trace for BlockedThread - should be blocked on lockB.
----------System.err:(24/1367)----------
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1333)
at Utils.checkThreadState(Utils.java:63)
at ThreadStackTrace$Examiner.examine2(ThreadStackTrace.java:290)
at ThreadStackTrace$Examiner.examine1(ThreadStackTrace.java:251)
at ThreadStackTrace$Examiner.run(ThreadStackTrace.java:326)
java.lang.RuntimeException: BlockedThread expected to have BLOCKED but got RUNNABLE
at Utils.checkThreadState(Utils.java:64)
at ThreadStackTrace$Examiner.examine2(ThreadStackTrace.java:290)
at ThreadStackTrace$Examiner.examine1(ThreadStackTrace.java:251)
at ThreadStackTrace$Examiner.run(ThreadStackTrace.java:326)
java.lang.RuntimeException: TEST FAILED.
at ThreadStackTrace.main(ThreadStackTrace.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:502)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Thread.java:745)
JavaTest Message: Test threw exception: java.lang.RuntimeException: TEST FAILED.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: TEST FAILED.
----------messages:(3/122)----------
command: main ThreadStackTrace
reason: User specified action: run main ThreadStackTrace
elapsed time (seconds): 6.307
----------System.out:(9/439)----------
Checking stack trace for the examiner thread is waiting to begin.
Now starting the blocked thread
Checking examiner's its own stack trace
Checking stack trace for BlockedThread - should be blocked on lockA.
Unexpected exception.
Checking stack trace for BlockedThread - should be waiting on lockA.
Checking examiner's its own stack trace
BlockedThread notified
Checking stack trace for BlockedThread - should be blocked on lockB.
----------System.err:(24/1367)----------
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1333)
at Utils.checkThreadState(Utils.java:63)
at ThreadStackTrace$Examiner.examine2(ThreadStackTrace.java:290)
at ThreadStackTrace$Examiner.examine1(ThreadStackTrace.java:251)
at ThreadStackTrace$Examiner.run(ThreadStackTrace.java:326)
java.lang.RuntimeException: BlockedThread expected to have BLOCKED but got RUNNABLE
at Utils.checkThreadState(Utils.java:64)
at ThreadStackTrace$Examiner.examine2(ThreadStackTrace.java:290)
at ThreadStackTrace$Examiner.examine1(ThreadStackTrace.java:251)
at ThreadStackTrace$Examiner.run(ThreadStackTrace.java:326)
java.lang.RuntimeException: TEST FAILED.
at ThreadStackTrace.main(ThreadStackTrace.java:111)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:502)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Thread.java:745)
JavaTest Message: Test threw exception: java.lang.RuntimeException: TEST FAILED.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: TEST FAILED.
- backported by
-
JDK-8084845 ThreadStackTrace.java throws exception: BlockedThread expected to have BLOCKED but got RUNNABLE
- Resolved