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

jdwp and hprof code do not handle multiple sun.boot.library.path elements correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • hs24
    • hotspot
    • b68
    • x86
    • linux

    Backports

      Description

        When bug 6819213 was fixed it enabled sun.boot.library.path property to contain multiple paths. Some code was added to os class to properly parse the elements when attempting to load agent libraries. However the code in the jdwp and hprof agents does not parse the elements. It just concatenates the libname to the end of the entire sun.boot.library.path property which fails to load the library. The code falls back to passing only the libname with no boot path to the dlopen() call. On SE this works as LD_LIBRARY_PATH is correctly set up. I hit this bug on an embedded platform that does not have the ability to set LD_LIBRARY_PATH at execution time nor can it re-exec to add it. Hence the agents fail to load their dependent libs such as libnpt.so or libjava_crw_demo.so.

        Attachments

          Issue Links

            Activity

              People

                bpittore Bill Pittore (Inactive)
                bpittore Bill Pittore (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: