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

GlobalCursorIdCache leaks a SecureRandom

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc4
    • Fix Version/s: 2.8.0-rc5
    • Component/s: None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      compile mock_stage_test with -fsanitize=address and run with LSAN enabled... or just patch against the compile stage of the ASAN build on MCI

      Show
      compile mock_stage_test with -fsanitize=address and run with LSAN enabled... or just patch against the compile stage of the ASAN build on MCI

      Description

      Although there is a comment in the GlobalCursorIdCache destructor that "we're just going to leak everything, as it doesn't matter", this is currently breaking the ASAN build.

      It seems like it would be simple to just wrap it in a boost::scoped_ptr.

      http://buildlogs.mongodb.org/MCI_ubuntu1404-debug-asan/builds/476704/test/compile_0/mock_stage_test

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adam.midvidy Adam Midvidy
              Reporter:
              adam.midvidy Adam Midvidy
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: