Qpid
  1. Qpid
  2. QPID-4163

Deadlock between LinkRegistry and TimerTask locks

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.17
    • Fix Version/s: 0.18
    • Component/s: C++ Broker
    • Labels:
      None

      Description

      Very occasionally (about 2% of runs), when running ha_tests.py in a long loop one of the brokers deadlocks with the attached stack trace. The problem is a call to TimerTask::cancel with the LinkRegsitry lock held, while another thread is in TimerTask::fire and waiting for the LinkRegistry lock.

        Activity

        Hide
        Alan Conway added a comment -

        Comitted to 0.18 branch r1365045

        Show
        Alan Conway added a comment - Comitted to 0.18 branch r1365045
        Hide
        Alan Conway added a comment -

        Comitted to trunk r1364805

        Show
        Alan Conway added a comment - Comitted to trunk r1364805
        Hide
        Justin Ross added a comment -

        Reviewed by Gordon and Andrew. Approved for 0.18.

        Show
        Justin Ross added a comment - Reviewed by Gordon and Andrew. Approved for 0.18.
        Hide
        Alan Conway added a comment - - edited

        Code review of fix: https://reviews.apache.org/r/6092
        Request merge to 0.18

        Show
        Alan Conway added a comment - - edited Code review of fix: https://reviews.apache.org/r/6092 Request merge to 0.18
        Hide
        Alan Conway added a comment -

        Stack trace of hung broker

        Show
        Alan Conway added a comment - Stack trace of hung broker

          People

          • Assignee:
            Alan Conway
            Reporter:
            Alan Conway
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development