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

ASAN crashes on 5.0 with v3 clang

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Server Development Platform
    • ALL
    • Hide

      git checkout v5.0
      /buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars --ninja generate-ninja ICECC=icecc CCACHE=ccache --modules="" --dbg=on --opt=off --link-model=dynamic --sanitize=address --allocator=system NINJA_PREFIX=asan VARIANT_DIR=asandebug
      ninja -f asan.ninja -j400 +executor_test

      Show
      git checkout v5.0 /buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars --ninja generate-ninja ICECC=icecc CCACHE=ccache --modules="" --dbg=on --opt=off --link-model=dynamic --sanitize=address --allocator=system NINJA_PREFIX=asan VARIANT_DIR=asandebug ninja -f asan.ninja -j400 +executor_test

      It appears there was some bug in our v3 clang ASAN which prevents this from happening: https://github.com/llvm/llvm-project/issues/55785. It seems related to this GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114.

      The GCC bug was fixed and backported and the fix exists in our v3 gcc but not v3 clang. V4 clang has similar changes that represent the fix. Possibly we could backport some fix.

      The workaround is use_sigaltstack=false in ASAN_OPTIONS.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: