junit.framework.AssertionFailedError: timed out waiting for thread to terminate ------ stacktrace dump start ------ "Thread-2100" daemon prio=5 Id=2884 RUNNABLE at java.util.concurrent.locks.StampedLock.acquireWrite(java.base@9-ea/StampedLock.java:1158) at java.util.concurrent.locks.StampedLock.writeLock(java.base@9-ea/StampedLock.java:385)

JDK Bug System | Calvin Cheung | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    This failure was seen during jdk9/hs nightly test on Aug 3, 2016. ----------System.err:(131/8965)---------- Looks like we're stuck running test: testWriteAfterReadLock(StampedLockTest) ------ stacktrace dump start ------ "Thread-2101" daemon prio=5 Id=2887 RUNNABLE at java.util.concurrent.locks.StampedLock.acquireWrite(java.base@9-internal/StampedLock.java:1165) at java.util.concurrent.locks.StampedLock.writeLock(java.base@9-internal/StampedLock.java:385) at StampedLockTest$8.realRun(StampedLockTest.java:468) at JSR166TestCase$CheckedRunnable.run(JSR166TestCase.java:1389) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) "ForkJoinPool.commonPool-worker-1" daemon prio=5 Id=2657 WAITING on java.util.concurrent.ForkJoinPool@d26478 at jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method) - waiting on java.util.concurrent.ForkJoinPool@d26478 at java.util.concurrent.locks.LockSupport.park(java.base@9-internal/LockSupport.java:192) at java.util.concurrent.ForkJoinPool.runWorker(java.base@9-internal/ForkJoinPool.java:1645) at java.util.concurrent.ForkJoinWorkerThread.run(java.base@9-internal/ForkJoinWorkerThread.java:158) "CompletableFutureDelayScheduler" daemon prio=5 Id=1612 TIMED_WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@d3897d at jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method) - waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@d3897d at java.util.concurrent.locks.LockSupport.parkNanos(java.base@9-internal/LockSupport.java:232) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@9-internal/AbstractQueuedSynchronizer.java:2104) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-internal/ScheduledThreadPoolExecutor.java:1131) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-internal/ScheduledThreadPoolExecutor.java:848) at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@9-internal/ThreadPoolExecutor.java:1083) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1143) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:632) ... "MainThread" prio=5 Id=13 TIMED_WAITING on java.lang.Thread@9496ca at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.Thread@9496ca at java.lang.Thread.join(java.base@9-internal/Thread.java:1360) at JSR166TestCase.awaitTermination(JSR166TestCase.java:1362) at JSR166TestCase.awaitTermination(JSR166TestCase.java:1379) at StampedLockTest.testWriteAfterReadLock(StampedLockTest.java:476) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) ... "Common-Cleaner" daemon prio=8 Id=10 TIMED_WAITING on java.lang.ref.ReferenceQueue$Lock@18581f3 at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.ref.ReferenceQueue$Lock@18581f3 at java.lang.ref.ReferenceQueue.remove(java.base@9-internal/ReferenceQueue.java:151) at jdk.internal.ref.CleanerImpl.run(java.base@9-internal/CleanerImpl.java:148) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) at jdk.internal.misc.InnocuousThread.run(java.base@9-internal/InnocuousThread.java:122) "Attach Listener" daemon prio=5 Id=5 RUNNABLE "main" prio=5 Id=1 WAITING on java.lang.Thread@a8b614 at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.Thread@a8b614 at java.lang.Thread.join(java.base@9-internal/Thread.java:1352) at java.lang.Thread.join(java.base@9-internal/Thread.java:1426) at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74) ------ stacktrace dump end ------ junit.framework.AssertionFailedError: timed out waiting for thread to terminate ------ stacktrace dump start ------ "Thread-2101" daemon prio=5 Id=2887 RUNNABLE at java.lang.Thread.interrupted(java.base@9-internal/Thread.java:1043) at java.util.concurrent.locks.StampedLock.acquireWrite(java.base@9-internal/StampedLock.java:1158) at java.util.concurrent.locks.StampedLock.writeLock(java.base@9-internal/StampedLock.java:385) at StampedLockTest$8.realRun(StampedLockTest.java:468) at JSR166TestCase$CheckedRunnable.run(JSR166TestCase.java:1389) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) "ForkJoinPool.commonPool-worker-1" daemon prio=5 Id=2657 WAITING on java.util.concurrent.ForkJoinPool@d26478 at jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method) - waiting on java.util.concurrent.ForkJoinPool@d26478 at java.util.concurrent.locks.LockSupport.park(java.base@9-internal/LockSupport.java:192) at java.util.concurrent.ForkJoinPool.runWorker(java.base@9-internal/ForkJoinPool.java:1645) at java.util.concurrent.ForkJoinWorkerThread.run(java.base@9-internal/ForkJoinWorkerThread.java:158) "CompletableFutureDelayScheduler" daemon prio=5 Id=1612 TIMED_WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@d3897d at jdk.internal.misc.Unsafe.park(java.base@9-internal/Native Method) - waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@d3897d at java.util.concurrent.locks.LockSupport.parkNanos(java.base@9-internal/LockSupport.java:232) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@9-internal/AbstractQueuedSynchronizer.java:2104) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-internal/ScheduledThreadPoolExecutor.java:1131) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-internal/ScheduledThreadPoolExecutor.java:848) at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@9-internal/ThreadPoolExecutor.java:1083) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-internal/ThreadPoolExecutor.java:1143) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-internal/ThreadPoolExecutor.java:632) ... "MainThread" prio=5 Id=13 RUNNABLE at sun.management.ThreadImpl.dumpThreads0(java.management@9-internal/Native Method) at sun.management.ThreadImpl.dumpAllThreads(java.management@9-internal/ThreadImpl.java:479) at JSR166TestCase.dumpTestThreads(JSR166TestCase.java:1032) at JSR166TestCase.threadRecordFailure(JSR166TestCase.java:686) at JSR166TestCase.threadFail(JSR166TestCase.java:765) at JSR166TestCase.awaitTermination(JSR166TestCase.java:1368) at JSR166TestCase.awaitTermination(JSR166TestCase.java:1379) at StampedLockTest.testWriteAfterReadLock(StampedLockTest.java:476) ... "Common-Cleaner" daemon prio=8 Id=10 TIMED_WAITING on java.lang.ref.ReferenceQueue$Lock@18581f3 at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.ref.ReferenceQueue$Lock@18581f3 at java.lang.ref.ReferenceQueue.remove(java.base@9-internal/ReferenceQueue.java:151) at jdk.internal.ref.CleanerImpl.run(java.base@9-internal/CleanerImpl.java:148) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) at jdk.internal.misc.InnocuousThread.run(java.base@9-internal/InnocuousThread.java:122) "Attach Listener" daemon prio=5 Id=5 RUNNABLE "main" prio=5 Id=1 WAITING on java.lang.Thread@a8b614 at java.lang.Object.wait(java.base@9-internal/Native Method) - waiting on java.lang.Thread@a8b614 at java.lang.Thread.join(java.base@9-internal/Thread.java:1352) at java.lang.Thread.join(java.base@9-internal/Thread.java:1426) at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74) ------ stacktrace dump end ------ JavaTest Message: JUnit Failure: testWriteAfterReadLock(StampedLockTest): timed out waiting for thread to terminate java.lang.Exception: JUnit test failure at com.sun.javatest.regtest.JUnitAction$JUnitRunner.main(JUnitAction.java:128) at com.sun.javatest.regtest.JUnitAction$JUnitRunner.main(JUnitAction.java:87) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:533) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-internal/Thread.java:843) JavaTest Message: Test threw exception: java.lang.Exception: JUnit test failure JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.Exception: JUnit test failure

    JDK Bug System | 7 months ago | Calvin Cheung
    junit.framework.AssertionFailedError: timed out waiting for thread to terminate ------ stacktrace dump start ------ "Thread-2100" daemon prio=5 Id=2884 RUNNABLE at java.util.concurrent.locks.StampedLock.acquireWrite(java.base@9-ea/StampedLock.java:1158) at java.util.concurrent.locks.StampedLock.writeLock(java.base@9-ea/StampedLock.java:385)

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      timed out waiting for thread to terminate ------ stacktrace dump start ------ "Thread-2100" daemon prio=5 Id=2884 RUNNABLE at java.util.concurrent.locks.StampedLock.acquireWrite(java.base@9-ea/StampedLock.java:1158) at java.util.concurrent.locks.StampedLock.writeLock(java.base@9-ea/StampedLock.java:385)

      at StampedLockTest$8.realRun()
    2. Unknown
      JSR166TestCase$CheckedRunnable.run
      1. StampedLockTest$8.realRun(StampedLockTest.java:468)
      2. JSR166TestCase$CheckedRunnable.run(JSR166TestCase.java:1388)
      2 frames