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

exec("rmid"); sleep(3000); hangs under a bizarre set of conditions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • hotspot
    • sparc
    • solaris_2.6



      Name: rm29839 Date: 01/21/98


      The following Java program never completes:

      import java.lang.*;

      public class Test
      {
         static public void main(String args[]) {
            System.out.println("Launcing rmid");

            try { Runtime.getRuntime().exec("rmid"); }
            catch (java.io.IOException e) {
               System.out.println(e);
               System.exit(1);
            }

            System.out.println("Waiting");
            try { Thread.currentThread().sleep(3000); }
            catch (InterruptedException e) { }
            System.out.println("Done");

         }

      }

      The sleep never returns. It will return if I kill
      the rmid processes. It will return if I remove the
      very first print statement ("Launching rmid"). It
      will return if I exec something other than rmid.
      It will return if I use green threads instead of
      native threads. I've tried this on a number of
      different machines. I even re-installed JDK1.2.

      This worked before our sys admin installed the
      following set of Solaris patches:

      105580-02
      105722-01
      105724-01
      105795-01

      Have fun.
      (Review ID: 23304)
      ======================================================================

            never Tom Rodriguez
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: