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

java.lang.Runtime.exec() hangs after [signed] applet reload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • deploy
    • x86
    • linux



      Name: boT120536 Date: 03/22/2001


      Java(TM) Plug-in: Version 1.3.1
      Using JRE version 1.3.1-beta Java HotSpot(TM) Client VM
        User home directory = /home/cwturner
      Proxy Configuration: no proxy

      A signed applet can call java.lang.Runtime.exec() with no problems until following
      an applet reload, when a call to exec() will hang. Thread traces show
      the problem might be associated with interrupted forker and reaper threads.

      A thread trace of the good working situation is:-
      about to exec...
      done
      hello world
      Dump thread list ...
      Group main,ac=15,agc=1,pri=10
          main,5,alive
          AWT-EventQueue-0,6,alive
          SunToolkit.PostEventQueue-0,6,alive
          AWT-Motif,6,alive
          TimerQueue,5,alive,dameon
          Thread-0,5,alive
          Thread-1,5,alive
          Thread-2,5,alive
          Screen Updater,5,alive
      Group http://java.cycom.co.uk/bugdemo/-threadGroup,ac=6,agc=0,pri=4
          AWT-EventQueue-1,4,alive
          SunToolkit.PostEventQueue-1,4,alive
          thread applet-BugDemo,4,alive
          TimerQueue,4,alive,dameon
          process reaper,4,alive,dameon
          process forker,4,alive,dameon
      Done.

      A thread trace following the applet reload and just prior to the hang is:-
      Dump thread list ...
      Group main,ac=15,agc=2,pri=10
          main,5,alive
          AWT-EventQueue-0,6,alive
          SunToolkit.PostEventQueue-0,6,alive
          AWT-Motif,6,alive
          TimerQueue,5,alive,dameon
          Thread-0,5,alive
          Thread-1,5,alive
          Thread-2,5,alive
          Screen Updater,5,alive
      Group http://java.cycom.co.uk/bugdemo/-threadGroup,ac=2,agc=0,pri=4
          process reaper,4,alive,dameon,interrupted
          process forker,4,alive,dameon,interrupted
      Group http://java.cycom.co.uk/bugdemo/-threadGroup,ac=4,agc=0,pri=4
          AWT-EventQueue-2,4,alive
          SunToolkit.PostEventQueue-2,4,alive
          thread applet-BugDemo,4,alive
          TimerQueue,4,alive,dameon
      Done.
      about to exec... (here it is hung)

      It iseasy to set it up that way bu... jarred and signed applet are at
      http://java.cycom.co.uk/bugdemo/
      You can trust Cycom Limited.
      (Review ID: 119068)
      ======================================================================

            stanleyh Stanley Ho (Inactive)
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: