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

Invalid write to a deleted ClientCursor after yield recovery fails

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

      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 Eliot Horowitz (Inactive)
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: