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

enabling corruptDocumentOnInsert fail point causes heap-use-after-free violation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.0
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Execution Team 2020-08-24
    • Linked BF Score:
      95

      Description

      validate_repair_mode.js and repair_corrupt_document.js use the corruptDocumentOnInsert fail point to trigger validation errors in the server. The fail point constructs a Record for RecordStore::insertRecords() that references a temporary buffer that is no longer in scope.

      This issue is only present in the tests that use this fail point and does not impact production code.

        Attachments

          Activity

            People

            Assignee:
            benety.goh Benety Goh
            Reporter:
            benety.goh Benety Goh
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: