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

Coverity analysis defect 101837: Wrapper object use after free

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Fully Compatible
    • ALL
    • Sharding 2017-07-31

    Description

      An internal pointer of a wrapper object remains available after the object is freed

      Defect 101837 (STATIC_C)
      Checker WRAPPER_ESCAPE (subcategory none)
      File: /src/mongo/s/config_server_test_fixture.cpp
      Function mongo::ConfigServerTestFixture::setUp()
      /src/mongo/s/config_server_test_fixture.cpp, line: 118
      The internal representation of local "specialExec" escapes into "this->_executorForAddShard", but is destroyed when it exits scope.

                  _executorForAddShard = specialExec.get();

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: