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

Timofei Pushkin tpushkin at openjdk.org
Mon Aug 4 15:04:19 UTC 2025


On Mon, 4 Aug 2025 14:17:22 GMT, Dmitry Cherepanov <dcherepanov at openjdk.org> wrote:

>> 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.

I wonder why none of the tests from the mainline failed since some of these tests use the default base image which others should also use. Maybe tests using Docker are not included into the tiers run in CI...

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

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


More information about the crac-dev mailing list