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

Error: dl failure on line 689: Copies of libjvm.so need to have chcon (selinux) re-applied to them

    Details

    • Subcomponent:
    • Resolved In Build:
      b36
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      Using CentOS 5.2 (supposedly very close to RH Enterprise 5.2) I encountered a build problem building the jdk. The first time the built jdk is used, you get the error "Error: dl failure on line 689" (ignore the 689, that line number will likely be different). The issue is that the launcher cannot load libjvm.so. This only happens if SELINUX is enabled, which it is by default. You can turn SELINUX off, but ideally it would be nice if you could build the jdk with it on, turning SELINUX on and off seems wrong to me.

      /XXX/build/linux-i586-fastdebug/bin/java -version
      Error: dl failure on line 689
      Error: failed /XXX/build/linux-i586-fastdebug/lib/i386/client/libjvm.so, because /XXX/build/linux-i586-fastdebug/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied

      The hotspot Makefiles are running chcon on the libjvm.so it creates, but this attribute of the file does not persist through the copy made into the jdk area. So anytime libjvm.so is copied, the chcon command needs to be run to add the right attribute. As to why libjvm.so needs to have chcon run on it, see 6538311.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ohair Kelly Ohair (Inactive)
                Reporter:
                ohair Kelly Ohair (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: