RFR(XS) [TESTBUG] hotspot/jtreg/gtest/GTestWrapper.java fails on AIX and MUSL

Siebenborn, Axel axel.siebenborn at sap.com
Fri Apr 20 11:06:49 UTC 2018


Webrev: http://cr.openjdk.java.net/~asiebenborn/jtreg_GTestWrapper/webrev/
Bug: https://bugs.openjdk.java.net/browse/JDK-8195002

The test hotspot/jtreg/gtest/GTestWrapper.java fails on AIX, alpine/musl  and probably in all cases RequiresSetenv() in java.base/unix/native/libjli/java_md_solinux.c returns "true". 
The problem is, that the java launcher sets the library path (LD_LIBRARY_PATH or LIB_PATH). The test starts an executable, that is dynamically linked against a special gtests libjvm. Due to the inherited library path, the wrong libjvm is linked.
The fix is to use ProcessBuilder and set the env variable for LD_LIBRARY_PATH or LIBPATH to the special gtest libjvm.


More information about the hotspot-runtime-dev mailing list