Invalid write to a deleted ClientCursor after yield recovery fails

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.2.0-rc0
    • Affects Version/s: None
    • Component/s: Stability
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There are a couple of places doing something like the following:

                      bool res = yield( suggestYieldMicros() , rec );
                      _yieldSometimesTracker.resetLastTime();
                      return res;
      

      If res if false, the 'this' pointer will have been deleted so calling _yieldSometimesTracker.resetLastTime() causes a write to invalid memory. I believe the resulting memory corruption causes SERVER-6480.

              Assignee:
              Eliot Horowitz (Inactive)
              Reporter:
              Aaron Staple (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: