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

REGRESSION: java fails to launch if the launching ksh script has the s-bit set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 6-pool
    • 6
    • tools
    • sparc
    • solaris_10

        Java fails to launch in the following scenario:

        java is started from a ksh script, this script has a root owner and the s-bit it set.
        Even java -version fails with the following message.

        > ./launch.ksh
        JAVA_HOME=/java/1.6.0/b65/solaris-sparc/
        user is root
        ld.so.1: java: fatal: libjli.so: open failed: No such file or directory

        >ls -al launch.ksh
        -rwsr-xr-x 1 root staff 88 Nov 23 06:16 launch.ksh

        >cat launch.ksh
        #!/bin/ksh
        echo JAVA_HOME=$JAVA_HOME
        echo user is `whami`
        $JAVA_HOME/bin/java -version

        This is a regression because until jdk6 build65 this script worked fine. This script still works fine with JDK5 update N. This script fails with JDK7.

              dmeetry Dmeetry Degrave (Inactive)
              ikrylov Ivan Krylov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: