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

RunTime.exec() hang up in windows platform when exec kinit command

    XMLWordPrintable

Details

    Description

      RunTime.exec() hang up in windows platform when exec kinit command "kinit -J-Djava.security.krb5.kdc=infinityzero.sfbay.sun.com -J-Djava.security.krb5.realm=JAVASOFT3.ENG.SUN.COM -F -c FILE:mykrb5cc dummy bogus ". when remove "-F" flag, everything works fine.

      Platform: Win2000, Windows-NT (I just tried on these two platforms)

      JDK: Hopper1.4.1-b13, Hopper1.4.1-b08, (maybe all hopper builds have the same probelm)

      How to produce:
      1. set JAVA_HOME to jdk build which has kinit
      2. untar attached test.tar
      3. javac TestCommand.java
      4. java TestCommand

      you should see the hangup.
      ###@###.### 2002-06-03

      If changing the order of InputStream and error inputStream in the TestCommand.java like follows, hangup disappears.

            
                  while (( c=err.read() ) != -1 ) {
      out.write((char)c) ;
      }
      err.close();
      out.println("close err inputstream");

      while (( c=in.read() ) != -1 ) {
      out.write((char)c) ;
             }
             in.close();
             out.println("close inputstream");
      ###@###.### 2002-06-03

      Attachments

        Activity

          People

            rmartisunw Ramachandran Marti (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: