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

CmdUpdate should persist underlying BSON

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.7.0, 4.4.11
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Service Arch 2020-03-09, Service Arch 2020-03-23

    Description

      It appears that CmdUpdate does not persist the BSONObj it uses to make its write_ops batch. This is fine when the CommandInvocation lives as long as the underlying OpMsgRequest, but causes use-after-free when the CommandInvocation can be used off thread. We need to either make a BSONObj member for the actual Invocation or for the batch object. There is a small chance that this is a non-issue and there is some other problem causing terminate style failure when updates are mirrored.

      Attachments

        Issue Links

          Activity

            People

              amirsaman.memaripour@mongodb.com Amirsaman Memaripour
              ben.caimano@mongodb.com Benjamin Caimano (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: