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

java/util/logging/LoggingDeadlock2.java fails with AssertionError: Some tests failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • gc
    • b24
    • generic
    • generic

      The following test failed in the JDK23 CI:

      java/util/logging/LoggingDeadlock2.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/223)----------
      command: main LoggingDeadlock2
      reason: User specified action: run main LoggingDeadlock2
      started: Fri May 17 19:38:07 UTC 2024
      Mode: agentvm
      Agent id: 18
      finished: Fri May 17 19:38:09 UTC 2024
      elapsed time (seconds): 2.045
      ----------configuration:(14/1845)----------

      <snip>

      ----------System.out:(19/5222)----------
      [-classpath, /opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S15509/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ce0e5d10-174f-45de-bc3d-8c5debd321ac/runs/44ca1ee7-8959-4d3e-8707-f1edafdc0b1a/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/1/java/util/logging/LoggingDeadlock2.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+23-1890/src.full/open/test/jdk/java/util/logging:/opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S15509/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ce0e5d10-174f-45de-bc3d-8c5debd321ac/runs/44ca1ee7-8959-4d3e-8707-f1edafdc0b1a/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/1/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.9.2.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/testng-7.3.0.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jcommander-1.82.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/guice-5.1.0.jar, LoggingDeadlock2$JavaChild]
      Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+23-1890/linux-x64-debug.jdk/jdk-23/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S15509/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ce0e5d10-174f-45de-bc3d-8c5debd321ac/runs/44ca1ee7-8959-4d3e-8707-f1edafdc0b1a/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/1/java/util/logging/LoggingDeadlock2.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+23-1890/src.full/open/test/jdk/java/util/logging:/opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S15509/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ce0e5d10-174f-45de-bc3d-8c5debd321ac/runs/44ca1ee7-8959-4d3e-8707-f1edafdc0b1a/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/1/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.9.2.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/testng-7.3.0.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jcommander-1.82.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/guice-5.1.0.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/22/36/bundles/linux-x64/jdk-22_linux-x64_bin.tar.gz/jdk-22 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S15509/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ce0e5d10-174f-45de-bc3d-8c5debd321ac/runs/44ca1ee7-8959-4d3e-8707-f1edafdc0b1a/testoutput/test-support/jtreg_open_test_jdk_jdk_util/tmp -ea -esa -XX:+UseZGC -XX:-ZGenerational -classpath /opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S15509/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ce0e5d10-174f-45de-bc3d-8c5debd321ac/runs/44ca1ee7-8959-4d3e-8707-f1edafdc0b1a/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/1/java/util/logging/LoggingDeadlock2.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+23-1890/src.full/open/test/jdk/java/util/logging:/opt/mach5/mesos/work_dir/slaves/a4a7850a-7c35-410a-b879-d77fbb2f6087-S15509/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ce0e5d10-174f-45de-bc3d-8c5debd321ac/runs/44ca1ee7-8959-4d3e-8707-f1edafdc0b1a/testoutput/test-support/jtreg_open_test_jdk_jdk_util/classes/1/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.9.2.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/testng-7.3.0.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jcommander-1.82.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/guice-5.1.0.jar LoggingDeadlock2$JavaChild ]
      Waiting for child process to exit
      Java HotSpot(TM) 64-Bit Server VM warning: Option ZGenerational was deprecated in version 23.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Non-generational ZGC is deprecated.
      JavaChild started
      seed=8923185888594799393
      dojoin=true
      iters1=237
      iters2=787
      exiter started
      $
      Child exited with status: 99
      Java HotSpot(TM) 64-Bit Server VM warning: Option ZGenerational was deprecated in version 23.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Non-generational ZGC is deprecated.
       not equal to

      Passed = 4, failed = 1

      ----------System.err:(21/1204)----------
      java.lang.Exception: Stack trace
      at java.base/java.lang.Thread.dumpStack(Thread.java:2148)
      at LoggingDeadlock2.fail(LoggingDeadlock2.java:323)
      at LoggingDeadlock2.fail(LoggingDeadlock2.java:324)
      at LoggingDeadlock2.equal(LoggingDeadlock2.java:330)
      at LoggingDeadlock2.realMain(LoggingDeadlock2.java:91)
      at LoggingDeadlock2.main(LoggingDeadlock2.java:332)
      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:1575)
      java.lang.AssertionError: Some tests failed
      at LoggingDeadlock2.main(LoggingDeadlock2.java:334)
      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:1575)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed

      It appears that the failure is due to the following unexpected output:

      Child exited with status: 99
      Java HotSpot(TM) 64-Bit Server VM warning: Option ZGenerational was deprecated in version 23.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Non-generational ZGC is deprecated.
       not equal to

      Passed = 4, failed = 1

      I believe that rather obscure diagnostic means that an empty stderr
      was expected for this test, but that's just my guess.

      This test failure has happened on macosx-x64, windows-x64
      and linux-x64 in jdk-23+23-1890-tier8 and that build-ID includes
      the fix for:

      JDK-8326957 Implement JEP 474: ZGC: Generational Mode by Default

      The test task's JVM args are: -XX:+UseZGC -XX:-ZGenerational

      Should these task definitions have been modified by JDK-8326957?

            aboldtch Axel Boldt-Christmas
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: