[crac] RFR: 8364624: [CRaC] Resolve startup failures with static JDK build

Dmitry Cherepanov dcherepanov at openjdk.org
Mon Aug 4 14:20:20 UTC 2025


On Mon, 4 Aug 2025 12:35:43 GMT, Timofei Pushkin <tpushkin at openjdk.org> wrote:

>> The patch fixes locating the `lib` folder and also fixes handling for `crexec` case for static JDK build.
>> 
>> It also fixes "setup CRIU" test step and ensures that criu is copied into static JDK for static JDK build. Another change in tests is to re-enable tests for static JDK and add some CRaC tests with known failures to the exclude list for static JDK (tests requiring jcmd and tests requiring a container with libX11 preinstalled).
>
> test/jdk/ProblemList-StaticJdk.txt line 27:
> 
>> 25: jdk/crac/java/lang/System/NanoTimeTest.java                                      8364624 generic-all
>> 26: jdk/crac/java/net/InetAddress/ResolveTest.java                                   8364624 generic-all
>> 27: jdk/crac/java/lang/System/TimedWaitingTest.java                                  8364624 generic-all
> 
> Could you please explain what is the problem with these? The tests themselves should not require X11.

The tests fail with following error

> /jdk/bin/java: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory 

It seems that `libawt_xawt.so` has the dependency on `libX11.so.6` and when it's statically linked, `java` executable has the dependency.

-------------

PR Review Comment: https://git.openjdk.org/crac/pull/257#discussion_r2251641358


More information about the crac-dev mailing list