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

AOT crashes on linux musl with AddReads.java

XMLWordPrintable

    • x86
    • linux_alpine

      There were crashes while running runtime/cds/appcds/aotClassLinking/AddReads.java on Alpine linux. See attached hs_err file. Note that Compact Object Headers were enabled by patch for testing:
      - product(bool, UseCompactObjectHeaders, false, EXPERIMENTAL,
      + product(bool, UseCompactObjectHeaders, true,

      java.lang.RuntimeException: Hotspot crashed
      at jdk.test.lib.cds.CDSTestUtils.executeAndLog(CDSTestUtils.java:703)
      at jdk.test.lib.cds.CDSAppTester.executeAndCheck(CDSAppTester.java:194)
      at jdk.test.lib.cds.CDSAppTester.recordAOTConfiguration(CDSAppTester.java:250)
      at jdk.test.lib.cds.CDSAppTester.runAOTWorkflow(CDSAppTester.java:437)
      at jdk.test.lib.cds.SimpleCDSAppTester.runAOTWorkflow(SimpleCDSAppTester.java:189)
      at AddReads.test(AddReads.java:120)
      at AddReads.main(AddReads.java:190)
      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:1447)

      We have also seen aotClassLinking crashes on Alpine linux without Compact Object Headers. New attachment AddReads.jtr was created without it.
      The crashes seem to happen always since 2025-05-16 (after JDK-8354887 and JDK-8354083).

        1. AddReads.jtr
          47 kB
          Martin Doerr
        2. add-reads-with-classpath.aotconfig.log
          664 kB
          Matthias Baesken
        3. hs_err_pid1395.log
          89 kB
          Martin Doerr

            iklam Ioi Lam
            mdoerr Martin Doerr
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: