Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8026260

LD_LIBRARY_PATH takes precedence over a runpath (solaris)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 14
    • 7u25
    • infrastructure
    • solaris

       LD_LIBRARY_PATH takes precedence over a runpath on Solaris. This means that if someone runs the JDK with LD_LIBRARY_PATH set to include a directory that contains any of libawt, libfontmanager, libjava, libnio, libnet, libverify, .. then these will may be loaded even if the JDK library has been previously loaded with System.loadLibrary. The result is hard to diagnose errors such as relocation errors and "referenced symbol not found".

      Here are a few examples

      libfontmanager.so => libawt.so
      libfontmanager.so => libjava.so
      libfontmanager.so => libverify.so

      libt2k => libfontmanager
      libt2k => libawt

      libsctp.so => libnio.so
      libsctp.so => libnet.so

      libnio.so => libnet.so

            Unassigned Unassigned
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: