Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8170216 JShell tests: jdk/jshell tests hang/timeout intermittently
  3. JDK-8162821

JShell tests: jdk/jshell/ClassMembersTest.java and ToolRetainTest failed due to timeout

    Details

      Description

      ----------messages:(242/14716)----------
      command: testng ClassMembersTest
      reason: User specified action: run testng/timeout=600 ClassMembersTest
      Mode: agentvm
      Timeout signalled after 3,000 seconds
      Timeout information:
      Running jstack on process 77854
      2016-07-31 23:27:37
      Full thread dump Java HotSpot(TM) 64-Bit Server VM (9-ea+130-mach5-b920 mixed mode):

      "Attach Listener" #115 daemon prio=9 os_prio=31 tid=0x00007f92c6423800 nid=0x8217 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "launched target monitor" #114 daemon prio=5 os_prio=31 tid=0x00007f92c6320000 nid=0x9517 in Object.wait() [0x0000000132237000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-ea/Native Method)
      - waiting on <no object reference available>
      at java.lang.Object.wait(java.base@9-ea/Object.java:516)
      at java.lang.ProcessImpl.waitFor(java.base@9-ea/ProcessImpl.java:498)
      - waiting to re-lock in wait() <0x00000007a8e8ee18> (a java.lang.ProcessImpl)
      at com.sun.tools.jdi.AbstractLauncher$Helper$1.run(jdk.jdi@9-ea/AbstractLauncher.java:235)

      "connection acceptor" #113 daemon prio=5 os_prio=31 tid=0x00007f92c528d800 nid=0x853f runnable [0x0000000132134000]
         java.lang.Thread.State: RUNNABLE
      at java.net.PlainSocketImpl.socketAccept(java.base@9-ea/Native Method)
      at java.net.AbstractPlainSocketImpl.accept(java.base@9-ea/AbstractPlainSocketImpl.java:459)
      at java.net.ServerSocket.implAccept(java.base@9-ea/ServerSocket.java:546)
      at java.net.ServerSocket.accept(java.base@9-ea/ServerSocket.java:514)
      at com.sun.tools.jdi.SocketTransportService.accept(jdk.jdi@9-ea/SocketTransportService.java:351)
      at com.sun.tools.jdi.AbstractLauncher$Helper$2.run(jdk.jdi@9-ea/AbstractLauncher.java:255)

      "process reaper" #32 daemon prio=10 os_prio=31 tid=0x00007f92c616a000 nid=0x8a07 runnable [0x000000013037d000]
         java.lang.Thread.State: RUNNABLE
      at java.lang.ProcessHandleImpl.waitForProcessExit0(java.base@9-ea/Native Method)
      at java.lang.ProcessHandleImpl.lambda$completion$2(java.base@9-ea/ProcessHandleImpl.java:133)
      at java.lang.ProcessHandleImpl$$Lambda$205/940376661.run(java.base@9-ea/Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

      "Thread-0" #31 daemon prio=5 os_prio=31 tid=0x00007f92c7142800 nid=0x8013 in Object.wait() [0x0000000131fc1000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-ea/Native Method)
      - waiting on <no object reference available>
      at java.lang.Object.wait(java.base@9-ea/Object.java:516)
      at jdk.jshell.SourceCodeAnalysisImpl.waitIndexingNotSuspended(jdk.jshell@9-ea/SourceCodeAnalysisImpl.java:1385)
      - waiting to re-lock in wait() <0x00000007a9871ef0> (a java.lang.Object)
      at jdk.jshell.SourceCodeAnalysisImpl.refreshIndexes(jdk.jshell@9-ea/SourceCodeAnalysisImpl.java:1434)
      at jdk.jshell.SourceCodeAnalysisImpl.lambda$new$2(jdk.jshell@9-ea/SourceCodeAnalysisImpl.java:163)
      at jdk.jshell.SourceCodeAnalysisImpl$$Lambda$296/789662237.run(jdk.jshell@9-ea/Unknown Source)
      at java.util.concurrent.Executors$RunnableAdapter.call(java.base@9-ea/Executors.java:514)
      at java.util.concurrent.FutureTask.run(java.base@9-ea/FutureTask.java:264)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1158)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

      "SameVMThread" #14 prio=5 os_prio=31 tid=0x00007f92c3106800 nid=0x7c03 in Object.wait() [0x00000001311e3000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-ea/Native Method)
      - waiting on <no object reference available>
      at java.lang.Object.wait(java.base@9-ea/Object.java:516)
      at com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(jdk.jdi@9-ea/AbstractLauncher.java:188)
      - waiting to re-lock in wait() <0x00000007a8e8ea28> (a com.sun.tools.jdi.AbstractLauncher$Helper)
      at com.sun.tools.jdi.AbstractLauncher.launch(jdk.jdi@9-ea/AbstractLauncher.java:132)
      at com.sun.tools.jdi.SunCommandLineLauncher.launch(jdk.jdi@9-ea/SunCommandLineLauncher.java:225)
      at jdk.jshell.execution.JDIInitiator.launchTarget(jdk.jshell@9-ea/JDIInitiator.java:104)
      at jdk.jshell.execution.JDIInitiator.<init>(jdk.jshell@9-ea/JDIInitiator.java:77)
      at jdk.jshell.execution.JDIDefaultExecutionControl.create(jdk.jshell@9-ea/JDIDefaultExecutionControl.java:114)
      at jdk.jshell.execution.JDIDefaultExecutionControl.lambda$launch$0(jdk.jshell@9-ea/JDIDefaultExecutionControl.java:80)
      at jdk.jshell.execution.JDIDefaultExecutionControl$$Lambda$46/894129660.generate(jdk.jshell@9-ea/Unknown Source)
      at jdk.jshell.execution.Util.lambda$failOverExecutionControlGenerator$0(jdk.jshell@9-ea/Util.java:70)
      at jdk.jshell.execution.Util$$Lambda$48/922397566.generate(jdk.jshell@9-ea/Unknown Source)
      at jdk.jshell.JShell.executionControl(jdk.jshell@9-ea/JShell.java:737)
      at jdk.jshell.Eval.load(jdk.jshell@9-ea/Eval.java:723)
      at jdk.jshell.Eval.compileAndLoad(jdk.jshell@9-ea/Eval.java:679)
      at jdk.jshell.Eval.declare(jdk.jshell@9-ea/Eval.java:535)
      at jdk.jshell.Eval.eval(jdk.jshell@9-ea/Eval.java:118)
      at jdk.jshell.JShell.eval(jdk.jshell@9-ea/JShell.java:420)
      at KullaTesting.lambda$assertEval$2(KullaTesting.java:357)
      at KullaTesting$$Lambda$214/1277731419.get(Unknown Source)
      at KullaTesting.checkEvents(KullaTesting.java:436)
      at KullaTesting.assertEval(KullaTesting.java:357)
      at KullaTesting.assertEval(KullaTesting.java:351)
      at KullaTesting.assertEval(KullaTesting.java:322)
      at ClassMembersTest.extendsMemberTest(ClassMembersTest.java:76)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:220)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

      "pool-1-thread-1" #13 daemon prio=5 os_prio=31 tid=0x00007f92c3829800 nid=0x7b07 waiting on condition [0x00000001310bb000]
         java.lang.Thread.State: TIMED_WAITING (parking)
      at jdk.internal.misc.Unsafe.park(java.base@9-ea/Native Method)
      - parking to wait for <0x00000007a03cb4a0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
      at java.util.concurrent.locks.LockSupport.parkNanos(java.base@9-ea/LockSupport.java:232)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@9-ea/AbstractQueuedSynchronizer.java:2104)
      at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-ea/ScheduledThreadPoolExecutor.java:1131)
      at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@9-ea/ScheduledThreadPoolExecutor.java:848)
      at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@9-ea/ThreadPoolExecutor.java:1083)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1143)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:632)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

      "Service Thread" #12 daemon prio=9 os_prio=31 tid=0x00007f92c7004000 nid=0x7103 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "Common-Cleaner" #11 daemon prio=8 os_prio=31 tid=0x00007f92c4024800 nid=0x6f03 in Object.wait() [0x0000000130c89000]
         java.lang.Thread.State: TIMED_WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-ea/Native Method)
      - waiting on <no object reference available>
      at java.lang.ref.ReferenceQueue.remove(java.base@9-ea/ReferenceQueue.java:151)
      - waiting to re-lock in wait() <0x00000007a03eda78> (a java.lang.ref.ReferenceQueue$Lock)
      at jdk.internal.ref.CleanerImpl.run(java.base@9-ea/CleanerImpl.java:148)
      at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
      at jdk.internal.misc.InnocuousThread.run(java.base@9-ea/InnocuousThread.java:122)

      "Sweeper thread" #10 daemon prio=9 os_prio=31 tid=0x00007f92c4022000 nid=0x6d03 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "C1 CompilerThread3" #9 daemon prio=9 os_prio=31 tid=0x00007f92c383a000 nid=0x6b03 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         No compile task

      "C2 CompilerThread2" #8 daemon prio=9 os_prio=31 tid=0x00007f92c3011000 nid=0x6903 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         No compile task

      "C2 CompilerThread1" #7 daemon prio=9 os_prio=31 tid=0x00007f92c5811000 nid=0x6703 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         No compile task

      "C2 CompilerThread0" #6 daemon prio=9 os_prio=31 tid=0x00007f92c4019000 nid=0x6503 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
         No compile task

      "Signal Dispatcher" #5 daemon prio=9 os_prio=31 tid=0x00007f92c3006000 nid=0x6303 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "Reference Pending List Locker" #4 daemon prio=9 os_prio=31 tid=0x00007f92c5801800 nid=0x5a13 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

      "Finalizer" #3 daemon prio=8 os_prio=31 tid=0x00007f92c601b800 nid=0x5103 in Object.wait() [0x000000013023a000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-ea/Native Method)
      - waiting on <no object reference available>
      at java.lang.ref.ReferenceQueue.remove(java.base@9-ea/ReferenceQueue.java:151)
      - waiting to re-lock in wait() <0x00000007a03edc60> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(java.base@9-ea/ReferenceQueue.java:172)
      at java.lang.ref.Finalizer$FinalizerThread.run(java.base@9-ea/Finalizer.java:216)

      "Reference Handler" #2 daemon prio=10 os_prio=31 tid=0x00007f92c601b000 nid=0x4f03 in Object.wait() [0x0000000130137000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-ea/Native Method)
      - waiting on <no object reference available>
      at java.lang.Object.wait(java.base@9-ea/Object.java:516)
      at java.lang.ref.Reference.tryHandlePending(java.base@9-ea/Reference.java:193)
      - waiting to re-lock in wait() <0x00000007a03c0138> (a java.lang.ref.Reference$Lock)
      at java.lang.ref.Reference$ReferenceHandler.run(java.base@9-ea/Reference.java:155)

      "main" #1 prio=5 os_prio=31 tid=0x00007f92c6809800 nid=0x1403 in Object.wait() [0x00000001108cd000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@9-ea/Native Method)
      - waiting on <0x00000007a03b4ac8> (a java.lang.Thread)
      at java.lang.Thread.join(java.base@9-ea/Thread.java:1352)
      - waiting to re-lock in wait() <0x00000007a03b4ac8> (a java.lang.Thread)
      at java.lang.Thread.join(java.base@9-ea/Thread.java:1426)
      at com.sun.javatest.regtest.agent.MainActionHelper.runClass(MainActionHelper.java:130)
      at com.sun.javatest.regtest.agent.AgentServer.doMain(AgentServer.java:233)
      at com.sun.javatest.regtest.agent.AgentServer.run(AgentServer.java:182)
      at com.sun.javatest.regtest.agent.AgentServer.main(AgentServer.java:59)

      "VM Thread" os_prio=31 tid=0x00007f92c4008000 nid=0x4d03 runnable

      "GC Thread#0" os_prio=31 tid=0x00007f92c3801000 nid=0x2303 runnable

      "GC Thread#1" os_prio=31 tid=0x00007f92c5803800 nid=0x2503 runnable

      "GC Thread#2" os_prio=31 tid=0x00007f92c4000000 nid=0x2703 runnable

      "GC Thread#3" os_prio=31 tid=0x00007f92c6812000 nid=0x2903 runnable

      "GC Thread#4" os_prio=31 tid=0x00007f92c5804000 nid=0x2b03 runnable

      "GC Thread#5" os_prio=31 tid=0x00007f92c7000000 nid=0x2d03 runnable

      "GC Thread#6" os_prio=31 tid=0x00007f92c7001000 nid=0x2f03 runnable

      "GC Thread#7" os_prio=31 tid=0x00007f92c7001800 nid=0x3103 runnable

      "G1 Main Marker" os_prio=31 tid=0x00007f92c501d800 nid=0x4503 runnable

      "G1 Marker#0" os_prio=31 tid=0x00007f92c4005000 nid=0x4903 runnable

      "G1 Marker#1" os_prio=31 tid=0x00007f92c6816800 nid=0x4b03 runnable

      "G1 Refine#0" os_prio=31 tid=0x00007f92c6001800 nid=0x4103 runnable

      "G1 Refine#1" os_prio=31 tid=0x00007f92c4003000 nid=0x3f03 runnable

      "G1 Refine#2" os_prio=31 tid=0x00007f92c5001000 nid=0x3d03 runnable

      "G1 Refine#3" os_prio=31 tid=0x00007f92c6815800 nid=0x3b03 runnable

      "G1 Refine#4" os_prio=31 tid=0x00007f92c6815000 nid=0x3903 runnable

      "G1 Refine#5" os_prio=31 tid=0x00007f92c6814000 nid=0x3703 runnable

      "G1 Refine#6" os_prio=31 tid=0x00007f92c6813800 nid=0x3503 runnable

      "G1 Refine#7" os_prio=31 tid=0x00007f92c6812800 nid=0x3303 runnable

      "G1 Young RemSet Sampling" os_prio=31 tid=0x00007f92c3801800 nid=0x4303 runnable

      "VM Periodic Task Thread" os_prio=31 tid=0x00007f92c4033800 nid=0x7303 waiting on condition

      JNI global references: 1648

      --- Timeout information end.
      elapsed time (seconds): 3007.127
      ----------configuration:(10/695)----------
      Boot Layer
        class path: /scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/testng.jar
                    /scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/javatest.jar
                    /scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/jtreg.jar
        patch: java.base /scratch/jenkins/workspace/9-dev/testresults/macosx-x64/tier1/JTwork/langtools_test/patches/java.base

      Test Layer
        class path: /scratch/jenkins/workspace/9-dev/testresults/macosx-x64/tier1/JTwork/langtools_test/classes/10/jdk/jshell
                    /scratch/jenkins/workspace/9-dev/langtools/test/jdk/jshell

      ----------rerun:(18/1680)*----------
      HOME=/Users/mach5-one \\
      PATH=/bin:/usr/bin \\
      buildid=BUILD_ID \\
          /scratch/jenkins/workspace/9-dev/jdk/bin/java \\
              -Dtest.class.path.prefix=/scratch/jenkins/workspace/9-dev/testresults/macosx-x64/tier1/JTwork/langtools_test/classes/10/jdk/jshell:/scratch/jenkins/workspace/9-dev/langtools/test/jdk/jshell \\
              -Dtest.src=/scratch/jenkins/workspace/9-dev/langtools/test/jdk/jshell \\
              -Dtest.src.path=/scratch/jenkins/workspace/9-dev/langtools/test/jdk/jshell \\
              -Dtest.classes=/scratch/jenkins/workspace/9-dev/testresults/macosx-x64/tier1/JTwork/langtools_test/classes/10/jdk/jshell \\
              -Dtest.class.path=/scratch/jenkins/workspace/9-dev/testresults/macosx-x64/tier1/JTwork/langtools_test/classes/10/jdk/jshell \\
              -Dtest.vm.opts='-ea -esa -Xmx512m' \\
              -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \\
              -Dtest.compiler.opts= \\
              -Dtest.java.opts= \\
              -Dtest.jdk=/scratch/jenkins/workspace/9-dev/jdk \\
              -Dcompile.jdk=/scratch/jenkins/workspace/9-dev/jdk \\
              -Dtest.timeout.factor=5.0 \\
              -classpath /scratch/jenkins/workspace/9-dev/testresults/macosx-x64/tier1/JTwork/langtools_test/classes/10/jdk/jshell:/scratch/jenkins/workspace/9-dev/langtools/test/jdk/jshell:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/testng.jar:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/javatest.jar:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/jtreg.jar \\
              'com.sun.javatest.regtest.TestNGAction$TestNGRunner' jdk/jshell/ClassMembersTest.java ClassMembersTest
      result: Error. Agent error: java.lang.Exception: Agent timed out with a timeout of 3000 seconds; check console log for any additional details


      test result: Error. Agent error: java.lang.Exception: Agent timed out with a timeout of 3000 seconds; check console log for any additional details

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfield Robert Field
                Reporter:
                fyuan Frank Yuan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: