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

JCK JavaTest GUI locks up X desktop during drag and drop

XMLWordPrintable

    • generic, other, x86, sparc
    • solaris_2.5.1, solaris_9

      Bug sympton changed. Please see evaluation for detail.

      wesley.chen@Eng 1997-02-20

      =====

      I if another mouse operation is attempted immediately after a drag and drop operation on the JavaTest summary window the JV segfaults.

      To reproduce:
      > cd JCK-11beta2
      > export CLASSPATH=/usr/java/lib/classes.zip:./classes
      > java javasoft.sqe.harness.Main

      In the JavaTest GUI open lib/vm-jdk11.jtp and press start. When the tests begin executing attempt the operation described above.

      SIGSEGV 11* segmentation violation
          si_signo [11]: SIGSEGV 11* segmentation violation
          si_errno [0]: Error 0
          si_code [1]: SEGV_ACCERR [addr: 0x0]

              stackbase=EF143DDC, stackpointer=EF143074

      Full thread dump:
          "TestRunnerThread-0:0" (TID:0xed58b380, sys_thread_t:0x340e50, thread_t: t@1
      4, sp:0xee473898 pc:0xef797fb8 threadID:0xee473df8, stack_base:0xee473ddc, stack
      _size:0x20000) prio=2
              java.awt.Label.setText(Label.java)
              javasoft.sqe.harness.HarnessFrame.finished(HarnessFrame.java:91)
              javasoft.sqe.harness.TestRunner.notifyFinished(TestRunner.java:149)
              javasoft.sqe.harness.TestRunnerThread.runTest(TestRunner.java:310)
              javasoft.sqe.harness.TestRunnerThread.run(TestRunner.java:224)
          "Timer" (TID:0xed58b3f0, sys_thread_t:0x348a00, thread_t: t@13, sp:0xee55375
      0 pc:0xef3b80b0 threadID:0xee553df8, stack_base:0xee553ddc, stack_size:0x20000)
      prio=3
              javasoft.sqe.harness.Timer.run(Timer.java:96)
          "Thread-2" (TID:0xed70d640, sys_thread_t:0x2049c0, thread_t: t@12, sp:0xee58
      3778 pc:0xef3b80b0 threadID:0xee583df8, stack_base:0xee583ddc, stack_size:0x2000
      0) prio=3
              java.lang.Object.wait(Object.java)
              javasoft.sqe.harness.TestRunner.run(TestRunner.java:75)
              javasoft.sqe.harness.Harness.run(Harness.java:388)
              javasoft.sqe.harness.Harness.workerCallback(Harness.java:306)
              javasoft.sqe.harness.HarnessWorker.run(Harness.java:869)
          "Screen Updater" (TID:0xed70d368, sys_thread_t:0x7e558, thread_t: t@9, sp:0x
      ef093778 pc:0xef3b80b0 threadID:0xef093df8, stack_base:0xef093ddc, stack_size:0x
      20000) prio=3
              java.lang.Object.wait(Object.java)
              sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:78)
              sun.awt.ScreenUpdater.run(ScreenUpdater.java:100)
          "AWT-Motif" (TID:0xed707ec8, sys_thread_t:0xf78c0, thread_t: t@8, sp:0xef0e3
      3a0 pc:0xef797fb8 threadID:0xef0e3df8, stack_base:0xef0e3ddc, stack_size:0x20000
      ) prio=5
              java.lang.Thread.run(Thread.java)
          "AWT-Input" (TID:0xed707ea8, sys_thread_t:0xf75f8, thread_t: t@7, sp:0xef113
      7b0 pc:0xef797fb8 threadID:0xef113df8, stack_base:0xef113ddc, stack_size:0x20000
      ) prio=5
          "AWT-EventQueue" (TID:0xed707e78, sys_thread_t:0xf4d18, thread_t: t@6, sp:0x
      ef142f48 pc:0xef7991b0 threadID:0xef143df8, stack_base:0xef143ddc, stack_size:0x
      20000) prio=5 *current thread*
              java.awt.Component.dispatchEvent(Component.java:1242)
              java.awt.EventDispatchThread.run(EventDispatchThread.java:109)
          "SIGQUIT handler" (TID:0xed700268, sys_thread_t:0x63c40, thread_t: t@5, sp:0
      x0 pc:0x0 threadID:0xef373df8, stack_base:0xef373d94, stack_size:0x20000) prio=0
          "Finalizer thread" (TID:0xed700180, sys_thread_t:0x63be0, thread_t: t@4, sp:
      0xef473778 pc:0xef3b80b0 threadID:0xef473df8, stack_base:0xef473ddc, stack_size:
      0x20000) prio=1
              java.awt.Graphics.finalize(Graphics.java)
          "main" (TID:0xed700150, sys_thread_t:0x42678, thread_t: t@1, sp:0xeffff908 p
      c:0xef797fb8 threadID:0x20a30, stack_base:0xeffffbe4, stack_size:0x70000000) pri
      o=5
      Monitor Cache Dump:
               javasoft.sqe.harness.TestRunner@ED7128D0/ED7EFD78 (key=0xed7128d0):
       monitor owner: "TestRunnerThread-0:0" (0x340e50)
              Waiting to be notified:
                  "Thread-2"
               javasoft.sqe.harness.HarnessFrame@ED707A08/ED756600 (key=0xed707a08):
         monitor owner: "TestRunnerThread-0:0" (0x340e50)
               javasoft.sqe.harness.Timer@ED58B3F0/EE19A698 (key=0xed58b3f0): unow
      ned
              Waiting to be notified:
                  "Timer"
               sun.awt.ScreenUpdater@ED70D368/ED76D058 (key=0xed70d368): unowned
              Waiting to be notified:
                  "Screen Updater"
               sun.awt.motif.MToolkit@ED707E48/ED757EC8 (key=0xed707e48): monitor
      owner: "AWT-EventQueue" (0xf4d18)
              Waiting to acquire:
                  "AWT-Motif"
                  "TestRunnerThread-0:0"
                  "Finalizer thread"
              Waiting to be notified:
                  "AWT-Input"
               java.awt.Label@ED70B100/ED798E70 (key=0xed70b100): monitor owner: "
      TestRunnerThread-0:0" (0x340e50)
      Registered Monitor Dump:
          Finalize me queue lock: unowned
          Thread queue lock: unowned
              Waiting to be notified:
                  "main"
          Name and type hash table lock: unowned
          String intern 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
          Monitor cache expansion lock: unowned
          Monitor registry: monitor owner: "AWT-EventQueue" (0xf4d18)
      Abort - core dumped
      (/ws/on297-tools/SUNWspro/SC4.2/bin/dbx) where
      current thread: t@6
      =>[1] __lwp_kill(0x0, 0x6, 0xef143280, 0xb, 0xef143e60, 0xef143e40), at 0xef3b7eec
        [2] __libthread_segvhdlr(0xb, 0xef143538, 0xef143280, 0xef1431c0, 0xef6e45cc, 0xef143e40), at 0xef6d2570
        ---- called from signal handler with signal 11 (SIGSEGV) ------
        [3] DragMotionProto(), at 0xee6b2a9c
        [4] FinishAction(0x359270, 0x15c530, 0xee7746ac, 0x0, 0x36c870, 0x0), at 0xee6b3044
        [5] HandleActions(0x0, 0x359270, 0x19d7f0, 0xef206130, 0x2507ac, 0xef206128), at 0xef1e674c
        [6] HandleSimpleState(0x8, 0x3179d0, 0x1, 0x2, 0xef206128, 0x1), at 0xef1e6e88
        [7] _XtTranslateEvent(0x359270, 0x0, 0xef200044, 0x3592a0, 0x28c, 0xef143e60), at 0xef1e7580
        [8] XtDispatchEventToWidget(0x1, 0x36c870, 0xef200044, 0x0, 0x0, 0x8), at 0xef1bcec8
        [9] _XtDefaultDispatcher(0x36c870, 0x8, 0x0, 0xf43e4, 0x0, 0x334bd8), at 0xef1bdb04
        [10] XtDispatchEvent(0x36c870, 0x0, 0xef1bd764, 0xef200044, 0x0, 0x1), at 0xef1bddac
        [11] sun_awt_motif_MComponentPeer_handleEvent(0xef272400, 0xed585598, 0xee2072b8, 0xef143a24, 0x22618, 0x1), at 0xef230da4
        [12] Java_sun_awt_motif_MComponentPeer_handleEvent_stub(0xf8f3c, 0xef143d5c, 0xf4d18, 0xef7b2f18, 0x3b674387, 0x3b5c1f), at 0xef251ed4
        [13] invokeNativeMethod(0xf8f14, 0x15f83c, 0xf8f3c, 0xef143d5c, 0xef757318, 0xed707b48), at 0xef7576bc
        [14] finish_invokevirtual(0xd9a45, 0xef143d5c, 0xf8f3c, 0xf8f04, 0xd2e10, 0xf8f14), at 0xef79a5e0
        [15] do_execute_java_method_vararg(0xef143d5c, 0x0, 0x0, 0x0, 0x0, 0xef7b7b0d), at 0xef767294
        [16] execute_java_dynamic_method(0xef143d5c, 0xed707e78, 0xef7b7b08, 0xef7b7b0c, 0xef7b9c00, 0x0), at 0xef7669a8
        [17] ThreadRT0(0xed707e78, 0xef7b7b0c, 0x0, 0xef6ed064, 0x1, 0xfe400000), at 0



      Added by Randy Crihfield, x20812

      Sorry, but this definately IS reproduceable. In any of the JCK manual tests
      if I highlight text in a textbox and drag it and click immediately before the
      dragging text disappears I can get Java to dump core. SunSoft has a fix for
      this and it's verified.

            mbronsonsunw Mike Bronson (Inactive)
            bcaperonsunw Bren Caperon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: