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

Jre causes SIGSEGV in closing plural Dialogs.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6
    • hotspot
    • sparc
    • solaris_2.5.1



      Name: diC59631 Date: 03/26/98


      Date: 23 Mar 1998
      One line description: Jre causes SIGSEGV in closing plural Dialogs.
       

      Jre causes SIGSEGV when the application that uses java.Runtime.exec()
      to execute UNIX application cloases several Dialogs.

      Procedure to demostrate the problem is as follows:

      1.Compile the C source code.
      %cc -o ap3_node_start ap3_node_start.c
      %cc -o ap3_pwr_cntl ap3_pwr_cntl.c
      %cc -o apvary apvary.c
      %cc -o ping ping.c

      2.Compile the Java source code.
      %java BlinkTest.java

      3.Modify the jre path in the test shell script blink.sh

      4.Start the shell script.
      %./blink.sh

      5.Press the start button and the nine dialogs will appear.
        Press 'OK' button and the dialog will blink.

      6.Repeat the procedure 5 before the blink terminates. (Press
        start button and 'OK' button while the dialogs blink.)
        Repeating this procedure several times, over ten times maybe,
        causes SIGEGV with the following message. Note that the
        exact contents of the message varies depending on the timing
        of SIGSEGV.

      Start
      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_MAPERR [addr: 0x90100018]

              stackbase=EDB51000, stackpointer=EDB50750

      Full thread dump:
          "AWT-Modal" (TID:0xee306e28, sys_thread_t:0xedb20db8, state:CW) prio=5
              sun.awt.motif.ModalThread.run(MDialogPeer.java:148)
          "AWT-Dispatch-Proxy" (TID:0xee306de8, sys_thread_t:0xedb50db8, state:R) prio=5 *current thread*
              sun.awt.motif.X11Graphics.<init>(X11Graphics.java:66)
              sun.awt.motif.MComponentPeer.getGraphics(MComponentPeer.java:219)
              java.awt.Component.getGraphics(Component.java:1161)
              sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:186)
              java.awt.Component.dispatchEventImpl(Component.java:1826)
              java.awt.Component.dispatchEvent(Component.java:1705)
              java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
          "stderr reader pid=24807" (TID:0xee307498, sys_thread_t:0xedb80db8, state:CW) prio=5
              java.io.FileInputStream.read(FileInputStream.java)
              java.lang.ProcessInputStream.run(UNIXProcess.java)
              java.lang.Thread.run(Thread.java)
          "stdout reader pid=24807" (TID:0xee305410, sys_thread_t:0xedc10db8, state:CW) prio=5
              java.io.FileInputStream.read(FileInputStream.java)
              java.lang.ProcessInputStream.run(UNIXProcess.java)
              java.lang.Thread.run(Thread.java)
          "Thread-9" (TID:0xee306fd8, sys_thread_t:0xedbb0db8, state:CW) prio=5
              java.lang.UNIXProcess.waitFor(UNIXProcess.java)
              ExtCommandAsync.run(ExtCommandAsync.java:62)
              java.lang.Thread.run(Thread.java)
          "Thread-8" (TID:0xee307978, sys_thread_t:0xedbe0db8, state:R) prio=5
              NodeBtn.run(NodeBtn.java:217)
              java.lang.Thread.run(Thread.java)
          "stderr reader pid=24806" (TID:0xee307408, sys_thread_t:0xedc40db8, state:CW) prio=5
              java.io.FileInputStream.read(FileInputStream.java)
              java.lang.ProcessInputStream.run(UNIXProcess.java)
              java.lang.Thread.run(Thread.java)
          "stdout reader pid=24806" (TID:0xee307140, sys_thread_t:0xeddc0db8, state:CW) prio=5
              java.io.FileInputStream.read(FileInputStream.java)
              java.lang.ProcessInputStream.run(UNIXProcess.java)
              java.lang.Thread.run(Thread.java)
          "Thread-7" (TID:0xee3063d0, sys_thread_t:0xedc70db8, state:CW) prio=5
              java.lang.UNIXProcess.waitFor(UNIXProcess.java)
              ExtCommandAsync.run(ExtCommandAsync.java:62)
              java.lang.Thread.run(Thread.java)
          "Thread-6" (TID:0xee3073a0, sys_thread_t:0xedca0db8, state:MW) prio=5
              java.awt.Button.setLabel(Button.java:155)
              NodeBtn.run(NodeBtn.java:210)
              java.lang.Thread.run(Thread.java)
          "stderr reader pid=24805" (TID:0xee3048f8, sys_thread_t:0xedcd0db8, state:CW) prio=5
              java.io.FileInputStream.read(FileInputStream.java)
              java.lang.ProcessInputStream.run(UNIXProcess.java)
              java.lang.Thread.run(Thread.java)
          "stdout reader pid=24805" (TID:0xee306d30, sys_thread_t:0xedd00db8, state:CW) prio=5
              java.io.FileInputStream.read(FileInputStream.java)
              java.lang.ProcessInputStream.run(UNIXProcess.java)
              java.lang.Thread.run(Thread.java)
          "process reaper" (TID:0xee3055a8, sys_thread_t:0xedd30db8, state:CW) prio=5
              java.lang.Thread.run(Thread.java)
          "Thread-5" (TID:0xee306b30, sys_thread_t:0xedd60db8, state:CW) prio=5
              java.lang.UNIXProcess.waitFor(UNIXProcess.java)
              ExtCommandAsync.run(ExtCommandAsync.java:62)
              java.lang.Thread.run(Thread.java)
          "Thread-4" (TID:0xee3070c8, sys_thread_t:0xedd90db8, state:CW) prio=5
              NodeBtn.run(NodeBtn.java:217)
              java.lang.Thread.run(Thread.java)
          "AWT-Finalizer" (TID:0xee306f68, sys_thread_t:0xeddf0db8, state:CW) prio=9
              java.lang.Object.wait(Object.java)
              sun.awt.AWTFinalizer.run(AWTFinalizer.java:48)
          "Screen Updater" (TID:0xee306af8, sys_thread_t:0xef030db8, state:CW) prio=4
              java.lang.Object.wait(Object.java)
              sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:78)
              sun.awt.ScreenUpdater.run(ScreenUpdater.java:98)
          "AWT-Motif" (TID:0xee305670, sys_thread_t:0xef180db8, state:CW) prio=5
              java.lang.Thread.run(Thread.java)
          "AWT-Input" (TID:0xee305650, sys_thread_t:0xef1b0db8, state:R) prio=5
          "AWT-EventQueue-0" (TID:0xee306208, sys_thread_t:0xef200db8, state:CW) prio=5
              java.lang.Object.wait(Object.java)
              sun.awt.motif.MDialogPeer.show(MDialogPeer.java:104)
              java.awt.Dialog.show(Dialog.java:218)
              java.awt.Component.show(Component.java:499)
              java.awt.Component.setVisible(Component.java:461)
              BlinkTest.actionPerformed(BlinkTest.java:67)
              java.awt.Button.processActionEvent(Button.java:257)
              java.awt.Button.processEvent(Button.java:230)
              java.awt.Component.dispatchEventImpl(Component.java:1773)
              java.awt.Component.dispatchEvent(Component.java:1705)
              java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
          "Finalizer thread" (TID:0xee300208, sys_thread_t:0xef230db8, state:CW) prio=1
          "Async Garbage Collector" (TID:0xee300250, sys_thread_t:0xef2f0db8, state:CW) prio=1
          "Idle thread" (TID:0xee300298, sys_thread_t:0xef570db8, state:R) prio=0
          "Clock" (TID:0xee300088, sys_thread_t:0xef670db8, state:CW) prio=12
          "main" (TID:0xee3000b0, sys_thread_t:0x372f8, state:CW) prio=5
      Monitor Cache Dump:
          java.lang.Object@EE304BB0/EE3683A0: owner "AWT-Dispatch-Proxy" (0xedb50db8, 1 entry)
          sun.awt.motif.MToolkit@EE305FD0/EE370838: owner "AWT-Dispatch-Proxy" (0xedb50db8,1 entry)
              Waiting to enter:
                  "AWT-Modal" (0xedb20db8)
                  "Thread-6" (0xedca0db8)
                  "Thread-8" (0xedbe0db8)
              Waiting to be notified:
                  "AWT-Motif" (0xef180db8)
          NodeBtn@EE305338/EE36E1D0: owner "Thread-6" (0xedca0db8, 1 entry)
          <unknown key> (0xef494228): owner "AWT-Dispatch-Proxy" (0xedb50db8, 1 entry)
          java.lang.UNIXProcess@EE303D30/EE381128: <unowned>
              Waiting to be notified:
                  "Thread-7" (0xedc70db8)
          sun.awt.AWTFinalizer@EE306F68/EE37B968: <unowned>
              Waiting to be notified:
                  "AWT-Finalizer" (0xeddf0db8)
          java.lang.UNIXProcess@EE306690/EE37E790: <unowned>
              Waiting to be notified:
                  "Thread-5" (0xedd60db8)
          java.lang.UNIXProcess@EE3072A8/EE381FC8: <unowned>
              Waiting to be notified:
                  "Thread-9" (0xedbb0db8)
          <unknown key> (0xedd90db8): <unowned>
              Waiting to be notified:
                  "Thread-4" (0xedd90db8)
          <unknown key> (0xef2f0db8): <unowned>
              Waiting to be notified:
                  "Async Garbage Collector" (0xef2f0db8)
          NodeBtn@EE3052C8/EE36E338: owner "Thread-8" (0xedbe0db8, 1 entry)
          sun.awt.ScreenUpdater@EE306AF8/EE37B5D0: <unowned>
              Waiting to be notified:
                  "Screen Updater" (0xef030db8)
          sun.awt.motif.ModalThread@EE306E28/EE3846D0: owner "AWT-Modal" (0xedb20db8, 1 entry)
              Waiting to be notified:
                  "AWT-EventQueue-0" (0xef200db8)
      Registered Monitor Dump:
          Thread queue lock: <unowned>
              Waiting to be notified:
                  "main" (0x372f8)
          Name and type hash table lock: <unowned>
          String intern lock: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class loading lock: <unowned>
          Java stack lock: <unowned>
          Code rewrite lock: <unowned>
          Heap lock: <unowned>
          Has finalization queue lock: <unowned>
          Finalize me queue lock: <unowned>
              Waiting to be notified:
                  "Finalizer thread" (0xef230db8)
          Monitor IO lock: <unowned>
          Child death monitor: <unowned>
              Waiting to be notified:
                  "process reaper" (0xedd30db8)
          Event monitor: <unowned>
          I/O monitor: owner "AWT-Input" (0xef1b0db8, 1 entry)
          Alarm monitor: <unowned>
              Waiting to be notified:
                  "Clock" (0xef670db8)
          Sbrk lock: <unowned>
          Monitor registry: owner "AWT-Dispatch-Proxy" (0xedb50db8, 1 entry)
      Thread Alarm Q:
          sys_thread_t 0xedd90db8 [Timeout in 218 ms]
          sys_thread_t 0xef2f0db8 [Timeout in 257 ms]

      (Review ID: 27001)
      ======================================================================

            Unassigned Unassigned
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: