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

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • 6-pool
    • Affects Version/s: 6
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: