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

java/util/concurrent/locks/Lock/TimedAcquireLeak.java timed out

XMLWordPrintable

      The following test timed out in the JDK22 CI:

      java/util/concurrent/locks/Lock/TimedAcquireLeak.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(10/322)----------
      command: main TimedAcquireLeak
      reason: Assumed action based on file name: run main TimedAcquireLeak
      started: Tue Dec 05 19:11:50 GMT 2023
      Mode: agentvm
      Agent id: 5
      Timeout signalled after 480 seconds
      Timeout information:
      --- Timeout information end.
      finished: Tue Dec 05 19:28:19 GMT 2023
      elapsed time (seconds): 989.145
      ----------configuration:(14/1982)----------

      <snip>

      ----------System.out:(19/748)----------
      134 not equal to 0
      134 not equal to 0
      Exception in thread "main" java.io.IOException: Connection refused
      at jdk.attach/sun.tools.attach.VirtualMachineImpl.connect(Native Method)
      at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:114)
      at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
      at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
      at jdk.jcmd/sun.tools.jmap.JMap.executeCommandForPid(JMap.java:127)
      at jdk.jcmd/sun.tools.jmap.JMap.histo(JMap.java:199)
      at jdk.jcmd/sun.tools.jmap.JMap.main(JMap.java:112)
       not equal to
      1 not equal to 0
      1 not equal to 0
      134 not equal to 0
      134 not equal to 0
      -1 -> -1

      Passed = 6, failed = 143

      ----------System.err:(134/8570)*----------
      java.lang.Exception: Stack trace
      at java.base/java.lang.Thread.dumpStack(Thread.java:2176)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:333)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:334)
      at TimedAcquireLeak.equal(TimedAcquireLeak.java:340)
      at TimedAcquireLeak.outputOf(TimedAcquireLeak.java:108)
      at TimedAcquireLeak.commandOutputOf(TimedAcquireLeak.java:115)
      at TimedAcquireLeak.lambda$objectsInUse$0(TimedAcquireLeak.java:185)
      at TimedAcquireLeak.rendezvousParent(TimedAcquireLeak.java:123)
      at TimedAcquireLeak.objectsInUse(TimedAcquireLeak.java:194)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:223)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.Exception: Stack trace
      at java.base/java.lang.Thread.dumpStack(Thread.java:2176)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:333)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:334)
      at TimedAcquireLeak.equal(TimedAcquireLeak.java:340)
      at TimedAcquireLeak.outputOf(TimedAcquireLeak.java:109)
      at TimedAcquireLeak.commandOutputOf(TimedAcquireLeak.java:115)
      at TimedAcquireLeak.lambda$objectsInUse$0(TimedAcquireLeak.java:185)
      at TimedAcquireLeak.rendezvousParent(TimedAcquireLeak.java:123)
      at TimedAcquireLeak.objectsInUse(TimedAcquireLeak.java:194)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:223)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.AssertionError: match failed: s= regex=(?m)^ *[0-9]+: +([0-9]+) +[0-9]+ +\\Qjava.util.concurrent.locks.AbstractQueuedSynchronizer$\\E[A-Za-z]+(?:$| )
      at TimedAcquireLeak.match(TimedAcquireLeak.java:167)
      at TimedAcquireLeak.lambda$objectsInUse$0(TimedAcquireLeak.java:185)
      at TimedAcquireLeak.rendezvousParent(TimedAcquireLeak.java:123)
      at TimedAcquireLeak.objectsInUse(TimedAcquireLeak.java:194)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:223)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.Exception: Stack trace
      at java.base/java.lang.Thread.dumpStack(Thread.java:2176)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:333)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:334)
      at TimedAcquireLeak.equal(TimedAcquireLeak.java:340)
      at TimedAcquireLeak.outputOf(TimedAcquireLeak.java:107)
      at TimedAcquireLeak.commandOutputOf(TimedAcquireLeak.java:115)
      at TimedAcquireLeak.lambda$objectsInUse$0(TimedAcquireLeak.java:185)
      at TimedAcquireLeak.rendezvousParent(TimedAcquireLeak.java:123)
      at TimedAcquireLeak.objectsInUse(TimedAcquireLeak.java:194)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:224)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.Exception: Stack trace
      at java.base/java.lang.Thread.dumpStack(Thread.java:2176)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:333)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:334)
      at TimedAcquireLeak.equal(TimedAcquireLeak.java:340)
      at TimedAcquireLeak.outputOf(TimedAcquireLeak.java:108)
      at TimedAcquireLeak.commandOutputOf(TimedAcquireLeak.java:115)
      at TimedAcquireLeak.lambda$objectsInUse$0(TimedAcquireLeak.java:185)
      at TimedAcquireLeak.rendezvousParent(TimedAcquireLeak.java:123)
      at TimedAcquireLeak.objectsInUse(TimedAcquireLeak.java:194)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:224)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.Exception: Stack trace
      at java.base/java.lang.Thread.dumpStack(Thread.java:2176)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:333)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:334)
      at TimedAcquireLeak.equal(TimedAcquireLeak.java:340)
      at TimedAcquireLeak.outputOf(TimedAcquireLeak.java:109)
      at TimedAcquireLeak.commandOutputOf(TimedAcquireLeak.java:115)
      at TimedAcquireLeak.lambda$objectsInUse$0(TimedAcquireLeak.java:185)
      at TimedAcquireLeak.rendezvousParent(TimedAcquireLeak.java:123)
      at TimedAcquireLeak.objectsInUse(TimedAcquireLeak.java:194)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:224)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.AssertionError: match failed: s= regex=(?m)^ *[0-9]+: +([0-9]+) +[0-9]+ +\\Qjava.util.concurrent.locks.AbstractQueuedSynchronizer$\\E[A-Za-z]+(?:$| )
      at TimedAcquireLeak.match(TimedAcquireLeak.java:167)
      at TimedAcquireLeak.lambda$objectsInUse$0(TimedAcquireLeak.java:185)
      at TimedAcquireLeak.rendezvousParent(TimedAcquireLeak.java:123)
      at TimedAcquireLeak.objectsInUse(TimedAcquireLeak.java:194)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:224)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.Exception: Stack trace
      at java.base/java.lang.Thread.dumpStack(Thread.java:2176)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:333)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:334)
      at TimedAcquireLeak.equal(TimedAcquireLeak.java:340)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:225)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.Exception: Stack trace
      at java.base/java.lang.Thread.dumpStack(Thread.java:2176)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:333)
      at TimedAcquireLeak.fail(TimedAcquireLeak.java:334)
      at TimedAcquireLeak.equal(TimedAcquireLeak.java:340)
      at TimedAcquireLeak.realMain(TimedAcquireLeak.java:226)
      at TimedAcquireLeak.main(TimedAcquireLeak.java:342)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      java.lang.AssertionError: Some tests failed
      at TimedAcquireLeak.main(TimedAcquireLeak.java:344)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1570)

      JavaTest Message: Test threw exception: java.lang.AssertionError
      JavaTest Message: shutting down test

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

            vklang Viktor Klang
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: