RFR: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH
Jaikiran Pai
jpai at openjdk.org
Thu Apr 3 12:59:49 UTC 2025
On Tue, 1 Apr 2025 09:13:45 GMT, Joachim Kern <jkern at openjdk.org> wrote:
> In the JDK launcher, there is a codepath which would set/modify the LD_LIBRARY_PATH. This happens unconditionally on AIX and Linux/musl and can also happen on other Linux platforms if an LD_LIBRARY_PATH is pre-set which contains a libjvm.so.
>
> The LD_LIBRARY_PATH is set to $JVMPATH:$JDK/lib:$JDK/../lib. The last part of this, $JDK/../lib, seems to be a remnant of times when there was a jre subfolder in a JDK deployment. So it should likely be removed.
Hello @JoKern65, the change looks reasonable to me. Please give me a day or so to run this change against our CI. In the meantime, could you please update the copyright years on `java_md.c` and the `Test7029048.java` files?
-------------
Marked as reviewed by jpai (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24351#pullrequestreview-2739755041
More information about the core-libs-dev
mailing list