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

runtime/jni/CalleeSavedRegisters/FPRegs.java fails on static-jdk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • None
    • hotspot
    • None
    • b24

      runtime/jni/CalleeSavedRegisters/FPRegs.java finds libjvm.so and passes it to the native test launcher executable (built from exeFPRegs.c) for creating the VM. The test fails on static-jdk because libjvm.so doesn't exist.

      https://github.com/jianglizhou/jdk/actions/runs/14983844599#user-content-runtime_jni_calleesavedregisters_fpregs:

      ```
      ...
      ----------System.out:(511/45211)----------
      Launcher = /home/runner/work/jdk/jdk/bundles/tests/hotspot/jtreg/native/FPRegs (exists)
      Root = /home/runner/work/jdk/jdk/bundles/static-jdk/static-jdk-25
      Library = libjvm.so
      TESTBUG: JVM not found in
      /home/runner/work/jdk/jdk/bundles/static-jdk/static-jdk-25
      /home/runner/work/jdk/jdk/bundles/static-jdk/static-jdk-25/release
      ...
      ----------System.err:(10/568)----------
      java.lang.NullPointerException: Cannot invoke "java.nio.file.Path.toString()" because "<local2>" is null
      at FPRegs.main(FPRegs.java:50)
      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)

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

      This issue is similar to JDK-8352276, although exeFPRegs (the test launcher executable) doesn't have explicit dependency on libjvm.so.

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: