Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7001630

Deadlock on AWT thread when using status filter

    XMLWordPrintable

Details

    • b01
    • x86
    • generic
    • Verified

    Description

      I'm "happy" to report that there is a severe deadlock in JavaTest 4.3 (b20 fcs).

      For me, on Windows 7, I stumbled upon this about 5-6 times today, during JavaTest startup, when a couple of CDC TCK test suites were opening.

      (CDC TCK is pretty big TCK and that could be a reason why the deadlock is seen more often with this TCK).

      Since AWT thread is blocked, the whole JavaTest window appears frozen and no user input is accepted.

      I'd say that this, if confirmed, is show-stopper for JavaTest 4.3.

      Here's the relevant info.

      Found one Java-level deadlock:
      =============================
      "Test Tree Cache Worker":
        waiting to lock monitor 0x1cb698e4 (object 0x0b6194d0, a com.sun.javatest.TRT_TreeNode),
        which is held by "AWT-EventQueue-0"
      "AWT-EventQueue-0":
        waiting to lock monitor 0x1cb6994c (object 0x0af95128, a com.sun.javatest.TRT_TreeNode),
        which is held by "Test Tree Cache Worker"

      Java stack information for the threads listed above:
      ===================================================
      "Test Tree Cache Worker":
       at com.sun.javatest.TRT_TreeNode.scanIfNeeded(TRT_TreeNode.java:598)
       - waiting to lock <0x0b6194d0> (a com.sun.javatest.TRT_TreeNode)
       at com.sun.javatest.TestResultTable.findTest(TestResultTable.java:1964)
       at com.sun.javatest.TestResultTable.findTest(TestResultTable.java:2002)
       at com.sun.javatest.TestResultTable.lookup(TestResultTable.java:616)
       at com.sun.javatest.TestResultTable.lookup(TestResultTable.java:599)
       at com.sun.javatest.StatusFilter.accepts(StatusFilter.java:96)
       at com.sun.javatest.ParameterFilter.accepts(ParameterFilter.java:75)
       at com.sun.javatest.exec.TT_NodeCache.process(TT_NodeCache.java:587)
       - locked <0x06e502c8> (a com.sun.javatest.exec.TT_NodeCache$FilterObserver)
       - locked <0x06e502d8> (a com.sun.javatest.exec.TT_NodeCache)
       - locked <0x0af95128> (a com.sun.javatest.TRT_TreeNode)
       at com.sun.javatest.exec.TT_NodeCache.run(TT_NodeCache.java:92)
       at com.sun.javatest.exec.TestTreeModel$CacheWorker.run(TestTreeModel.java:1187)

      "AWT-EventQueue-0":
       at com.sun.javatest.TRT_TreeNode.scanIfNeeded(TRT_TreeNode.java:598)
       - waiting to lock <0x0af95128> (a com.sun.javatest.TRT_TreeNode)
       at com.sun.javatest.TRT_TreeNode.getTreeNode(TRT_TreeNode.java:462)
       at com.sun.javatest.TestResultTable.findTest(TestResultTable.java:1998)
       at com.sun.javatest.TestResultTable.lookup(TestResultTable.java:616)
       at com.sun.javatest.TestResultTable.lookup(TestResultTable.java:599)
       at com.sun.javatest.StatusFilter.accepts(StatusFilter.java:96)
       at com.sun.javatest.ParameterFilter.accepts(ParameterFilter.java:75)
       at com.sun.javatest.exec.TT_NodeCache.add(TT_NodeCache.java:147)
       - locked <0x06e50340> (a com.sun.javatest.exec.TT_NodeCache$FilterObserver)
       - locked <0x06e50350> (a com.sun.javatest.exec.TT_NodeCache)
       at com.sun.javatest.exec.TestTreeModel.nodeInserted0(TestTreeModel.java:287)
       - locked <0x0b6194d0> (a com.sun.javatest.TRT_TreeNode)
       - locked <0x0b619ea8> (a com.sun.javatest.exec.TestTreeModel)
       at com.sun.javatest.exec.TestTreeModel.access$100(TestTreeModel.java:66)
       at com.sun.javatest.exec.TestTreeModel$1.run(TestTreeModel.java:202)
       at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
       at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

      Found 1 deadlock.

      Attachments

        Activity

          People

            bkurotsu Brian Kurotsuchi (Inactive)
            vsizikov Vladimir Sizikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: