Integrated: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH
    Joachim Kern 
    jkern at openjdk.org
       
    Mon Apr  7 12:53:55 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.
This pull request has now been integrated.
Changeset: 9128ec61
Author:    Joachim Kern <jkern at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9128ec61df430a2eb352f58ec9799d332f7b1a10
Stats:     31 lines in 3 files changed: 2 ins; 20 del; 9 mod
8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH
Reviewed-by: clanger, ihse, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/24351
    
    
More information about the build-dev
mailing list