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

Test runtime/cds/appcds/aotClassLinking/AddExports.java failed: posix_spawn failed, error: 11 (Resource temporarily unavailable)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • hotspot

      Likely a temporary machine issue but perhaps the test code in `CDSAppTester.executeAndCheck` could be made to retry if we get this exception?

      java.io.IOException: Cannot run program "/opt/mach5/mesos/work_dir/jib-master/install/jdk-26+12-1216/linux-x64-debug.jdk/jdk-26/fastdebug/bin/java": posix_spawn failed, error: 11 (Resource temporarily unavailable)
      Possible reasons:
        - Spawn helper ran into JDK version mismatch
        - Spawn helper ran into unexpected internal error
        - Spawn helper was terminated by another process
      Possible solutions:
        - Restart JVM, especially after in-place JDK updates
        - Check system logs for JDK-related errors
        - Re-install JDK to fix permission/versioning problems
        - Switch to legacy launch mechanism with -Djdk.lang.Process.launchMechanism=FORK

      at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1112)
      at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1046)
      at jdk.test.lib.cds.CDSAppTester.executeAndCheck(CDSAppTester.java:211)
      at jdk.test.lib.cds.CDSAppTester.productionRun(CDSAppTester.java:428)
      at jdk.test.lib.cds.CDSAppTester.productionRun(CDSAppTester.java:393)
      at jdk.test.lib.cds.CDSAppTester.runStaticWorkflow(CDSAppTester.java:460)
      at jdk.test.lib.cds.SimpleCDSAppTester.runStaticWorkflow(SimpleCDSAppTester.java:184)
      at AddExports.test(AddExports.java:90)
      at AddExports.main(AddExports.java:97)
      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:1474)

            Unassigned Unassigned
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: