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

lock_mgr_test reports leaks under the ASAN build

    • Fully Compatible
    • ALL
    • Hide

      scons --cc=/usr/bin/clang-3.5 --cxx=/usr/bin/clang++-3.5 --cache --ssl --dbg=on --opt=on --sanitize=address,leak --llvm-symbolizer=<path-to-symbolizer> --allocator=system --build-fast-and-loose=off --mute -j25 build/cached/mongo/db/concurrency/lock_mgr_test

      LSAN_OPTIONS="suppressions=etc/lsan.suppressions" ASAN_OPTIONS=detect_leaks=1 ASAN_SYMBOLIZER_PATH=<path-to-symbolizer> build/cached/mongo/db/concurrency/lock_mgr_test

      Show
      scons --cc=/usr/bin/clang-3.5 --cxx=/usr/bin/clang++-3.5 --cache --ssl --dbg=on --opt=on --sanitize=address,leak --llvm-symbolizer=<path-to-symbolizer> --allocator=system --build-fast-and-loose=off --mute -j25 build/cached/mongo/db/concurrency/lock_mgr_test LSAN_OPTIONS="suppressions=etc/lsan.suppressions" ASAN_OPTIONS=detect_leaks=1 ASAN_SYMBOLIZER_PATH=<path-to-symbolizer> build/cached/mongo/db/concurrency/lock_mgr_test

      First failed build here: https://mci.10gen.com/build/mongodb_mongo_master_sanitize_ubuntu1404_debug_asan_5598c216ca28234735999ca25b3f6f9a030f51e6_14_12_03_17_59_14

      The failure is in the C++ unit test for the lock manager:

      https://mci.10gen.com/task/mongodb_mongo_master_sanitize_ubuntu1404_debug_asan_5598c216ca28234735999ca25b3f6f9a030f51e6_14_12_03_17_59_14_compile_ubuntu1404_debug_asan

      http://buildlogs.mongodb.org/MCI_asan_ubuntu1404-debug-asan/builds/959/test/compile_0/lock_mgr_test

      This test was passing under asan+lsan in commit 9872c67daf.

      Bisecting 9872c67daf..master says:

      6cab2a29c7dcb56ce132c200321bd1424f977f55 is the first bad commit
      commit 6cab2a29c7dcb56ce132c200321bd1424f977f55
      Author: Geert Bosch <geert@mongodb.com>
      Date: Tue Dec 2 14:11:17 2014 -0500

      SERVER-16067: Partition intent locks in the lock manager

      :040000 040000 15ee981b633c5dcbc19b554269964b140f1c13de 46a2ef22d596320bb19dd36448620ef4efe65e33 M src

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: