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

Runtime.exec()'s Process.waitFor() stalls indefinitely

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 1.4.0
    • hotspot
    • x86
    • windows_98

      The following attached program runJCE.java repeats the Runtime.exec of
      InitKeyTests and write3Tests for a default of 2000 iterations. It also
      create 3 threads. One thread to constantly monitor the Process.exitValue()
      of the child process. The other 2 threads to drain out the System.out
      and System.err of the child process. Meantime the main program balks at the
      Process.waitFor() statement until "done".

      Each executing iteration would normally take about 2 to 3 minutes at most.
      However, after a number of runs the main thread just hangs at the waitFor
      statement indefinitely. Strangely, the thread that monitor the exitValue
      has indication that the child process has indeed exited already?

      The program only stalls on Window98. It ran fine on Solaris and Window2000.

            acorn Karen Kinnear (Inactive)
            rphamsunw Roger Pham (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: