[asan] serviceability/sa/TestJmapCore.java and TestJmapCoreMetaspace.java fail after recent improvements

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 26
    • Component/s: hotspot
    • None
    • svc
    • generic
    • linux

      In the 2 core related tests TestJmapCore.java and TestJmapCoreMetaspace.java we run into the errors below when using asan-enabled binaries. This is most likely because we do not write cores any more with asan; seems to be related to JDK-8368365 .

      # Internal Error (debug.cpp:282), pid=25655, tid=25658
      # fatal error: OutOfMemory encountered: Java heap space
      #
      # JRE version: OpenJDK Runtime Environment (26.0) (build 26-internal-adhoc.sapmachine.jdk)
      # Java VM: OpenJDK 64-Bit Server VM (26-internal-adhoc.sapmachine.jdk, mixed mode, sharing, tiered, compressed oops, compact obj headers, g1 gc, linux-amd64)
      # CreateCoredumpOnCrash turned off, no core file dumped
      #
      # An error report file with more information is saved as:
      # /data/jvmtests/output_openjdk26_weekly_optU_linuxx86_64/jtreg_hotspot_tier2_work/JTwork/scratch/7/hs_err_pid25655.log
      ]
      ----------System.err:(15/877)----------
      java.lang.RuntimeException: Output doesn't contain the location of core file.: expected true, was false
                      at jdk.test.lib.Asserts.fail(Asserts.java:715)
                      at jdk.test.lib.Asserts.assertTrue(Asserts.java:545)
                      at jdk.test.lib.util.CoreUtils.parseCoreFileLocationFromOutput(CoreUtils.java:211)
                      at jdk.test.lib.util.CoreUtils.getCoreFileLocation(CoreUtils.java:108)
                      at TestJmapCore.test(TestJmapCore.java:86)
                      at TestJmapCore.main(TestJmapCore.java:70)
                      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
                      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
                      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
                      at java.base/java.lang.Thread.run(Thread.java:1516)

      and

      #
      # Internal Error (debug.cpp:282), pid=25694, tid=25699
      # fatal error: OutOfMemory encountered: Metaspace
      #
      # JRE version: OpenJDK Runtime Environment (26.0) (build 26-internal-adhoc.sapmachine.jdk)
      # Java VM: OpenJDK 64-Bit Server VM (26-internal-adhoc.sapmachine.jdk, mixed mode, sharing, tiered, compressed oops, compact obj headers, g1 gc, linux-amd64)
      # CreateCoredumpOnCrash turned off, no core file dumped
      #
      # An error report file with more information is saved as:
      # /data/jvmtests/output_openjdk26_weekly_optU_linuxx86_64/jtreg_hotspot_tier2_work/JTwork/scratch/9/hs_err_pid25694.log
      ]
      ----------System.err:(15/877)----------
      java.lang.RuntimeException: Output doesn't contain the location of core file.: expected true, was false
                      at jdk.test.lib.Asserts.fail(Asserts.java:715)
                      at jdk.test.lib.Asserts.assertTrue(Asserts.java:545)
                      at jdk.test.lib.util.CoreUtils.parseCoreFileLocationFromOutput(CoreUtils.java:211)
                      at jdk.test.lib.util.CoreUtils.getCoreFileLocation(CoreUtils.java:108)
                      at TestJmapCore.test(TestJmapCore.java:86)
                      at TestJmapCore.main(TestJmapCore.java:70)
                      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
                      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
                      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
                      at java.base/java.lang.Thread.run(Thread.java:1516)

            Assignee:
            Unassigned
            Reporter:
            Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: