Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10380

[C++] Running tests with ASAN, UBSAN using conda-forge compiler toolchain on macOS

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: C++
    • Labels:
      None

      Description

      I tried running the test suite with ASAN/UBSAN enabled using the conda-forge toolchain (following the instructions in the Python documentation) and found that it's horribly broken, at least with the way that I'm running it. I would guess there is some additional configuration necessary or perhaps the compiler flags are wrong.

      see for example

      https://gist.github.com/wesm/88aa66f90a642fd0a051c4a7960de350

      here are what the compiler flags look like from the CMake output

      -- CMAKE_C_FLAGS: -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/wesm/miniconda/envs/pyarrow-dev/include -Qunused-arguments -ggdb -O0  -Wall -Wextra -Wdocumentation -Wno-missing-braces -Wno-unused-parameter -Wno-unknown-warning-option -Wno-constant-logical-operand -Werror -Wno-unknown-warning-option -Wno-pass-failed -march=haswell -mavx2 
      -- CMAKE_CXX_FLAGS:  -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem /Users/wesm/miniconda/envs/pyarrow-dev/include -Qunused-arguments -fcolor-diagnostics -ggdb -O0  -Wall -Wextra -Wdocumentation -Wno-missing-braces -Wno-unused-parameter -Wno-unknown-warning-option -Wno-constant-logical-operand -Werror -Wno-unknown-warning-option -Wno-pass-failed -march=haswell -mavx2  -fsanitize=address -DADDRESS_SANITIZER -fsanitize=undefined -fno-sanitize=alignment,vptr,function,float-divide-by-zero -fno-sanitize-recover=all -fsanitize-blacklist=/Users/wesm/code/arrow/cpp/build-support/sanitizer-disallowed-entries.txt
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wesm Wes McKinney
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: