Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4962

Deadlock in TimerManager::stop

    XMLWordPrintableJSON

Details

    Description

      If multiple threads call TimerManager::stop, they will all be waiting on monitor for state to go to STOPPED.
      As Dispatcher use monitor_.notify, only one of the thread will be awakened, other will stay waiting forever.

      See attached test code to reproduce the issue (timing dependent).

      Attachments

        1. test.cpp
          0.7 kB
          Guillaume Blanc

        Issue Links

          Activity

            People

              gbl Guillaume Blanc
              gbl Guillaume Blanc
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m