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

Re-enable ASan coverage support

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.1
    • Affects Version/s: 3.1.4
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • TIG E (01/08/16), TIG F (01/29/16)

      ASan coverage support was added in SERVER-18597. It's causing issues with ASan patch builds, so it's being disabled for now.

      For example, after running jstests/aggregation/bugs/cond.js, this check failed:

      ==16845==AddressSanitizer CHECK failed: /build/buildd/llvm-toolchain-3.4-3.4/projects/compiler-rt/lib/sanitizer_common/sanitizer_common.h:323 "((initial_capacity)) > ((0))" (0x0, 0x0)
      [js_test:cond] ==16870==AddressSanitizer CHECK failed: /build/buildd/llvm-toolchain-3.4-3.4/projects/compiler-rt/lib/sanitizer_common/sanitizer_common.h:323 "((initial_capacity)) > ((0))" (0x0, 0x0)
      [js_test:cond]     #0 0x71713f in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/data/mci/src/mongo+0x71713f)
      [js_test:cond]     #1 0x71c9a1 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/data/mci/src/mongo+0x71c9a1)
      [js_test:cond]     #2 0x71d8c2 in __sanitizer::CovDump() (/data/mci/src/mongo+0x71d8c2)
      [js_test:cond]     #3 0xe1541c in mongo::quickExit(int) /data/mci/src/src/mongo/util/quick_exit.cpp:76
      [js_test:cond]     #4 0x742501 in main /data/mci/src/src/mongo/shell/dbshell.cpp:923
      [js_test:cond]     #5 0x7f8e37fa7ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4)
      [js_test:cond]     #6 0x72727c in _start (/data/mci/src/mongo+0x72727c)
      [js_test:cond] 
          #0 0x9a185f in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/data/mci/src/mongod+0x9a185f)
          #1 0x9a70c1 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/data/mci/src/mongod+0x9a70c1)
          #2 0x9a7fe2 in __sanitizer::CovDump() (/data/mci/src/mongod+0x9a7fe2)
          #3 0x2a59e7c in mongo::quickExit(int) /data/mci/src/src/mongo/util/quick_exit.cpp:76
          #4 0x1526acf in mongo::dbexit(mongo::ExitCode, char const*) /data/mci/src/src/mongo/db/instance.cpp:1352
          #5 0x15257bd in mongo::exitCleanly(mongo::ExitCode) /data/mci/src/src/mongo/db/instance.cpp:1335
          #6 0x2a5d98a in mongo::(anonymous namespace)::signalProcessingThread() /data/mci/src/src/mongo/util/signal_handlers.cpp:184
          #7 0x2b35566 in boost::(anonymous namespace)::thread_proxy(void*) /data/mci/src/src/third_party/boost-1.56.0/libs/thread/src/pthread/thread.cpp:173
          #8 0x7f45c9f00181 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x8181)
          #9 0x7f45c971347c (/lib/x86_64-linux-gnu/libc.so.6+0xfa47c)
      

            Assignee:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: