Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6481

Invalid write to a deleted ClientCursor after yield recovery fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-rc0
    • Component/s: Stability
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: