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 toJDK-8352276, although exeFPRegs (the test launcher executable) doesn't have explicit dependency on libjvm.so.
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
- relates to
-
JDK-8352276 Skip jtreg tests using native executable with libjvm.so/libjli.so dependencies on static JDK
-
- Resolved
-
-
JDK-8352305 Add tests using custom launcher executable on static JDK
-
- Open
-
-
JDK-8303796 Optionally build fully statically linked JDK image
-
- Open
-
- links to
-
Commit(master) openjdk/jdk/073af3bb
-
Review(master) openjdk/jdk/25239