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

SA: libsaproc should not require resolving the runtime loader on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • hotspot
    • None

      Using SA tools on a transported core file, with SA_ALTROOT on Linux, it enforces finding the ELF interpreter/runtime loader, e.g. /lib/ld-linux-aarch64.so.1.

      There does not seem to be a need in the SA tools to resolve this.

      Not resolving it would solve two problems:
      The ld-linux* file would not need to be transported with the libraries and be present in the SA_ALTROOT directory. Without it, the tools fail with, e.g.:
      libsaproc DEBUG: ELF interpreter /lib/ld-linux-aarch64.so.1
      libsaproc DEBUG: can't open runtime loader
      Unable to open core file

      If moving the local ld-lnux* file in place to make the tools work, a mismatch in segment size can be detected, which makes the tools fail to start, giving the error:
      libsaproc DEBUG: can't read segments of interpreter
      Unable to open core file

            Unassigned Unassigned
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: