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

LD_LIBRARY_PATH takes precedence over a runpath (solaris)

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 7u25
    • Fix Version/s: 14
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • OS:
      solaris

      Description

       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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: