Skip to content

Multiple issues after running llvm-spirv test-suite with ASAN. #2233

@bwlodarcz

Description

@bwlodarcz

Description: ASAN reports multiple issues after running test-suite.
Steps to reproduce:

  1. Clone llvm-project and go into it.
  2. Clone Translator inside llvm/projects.
  3. Run cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_ENABLE_PROJECTS=clang -DLLVM_BUILD_TESTS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_USE_SANITIZER='Address' -DLLVM_SPIRV_INCLUDE_TESTS=ON ./llvm.
  4. Run cmake --build build and wait until build completes.
  5. Go to build directory and run ninja check-llvm-spirv.

Results
Big chunk of ASAN errors and:

Failed Tests (119):
  LLVM_SPIRV :: DebugInfo/DebugInfoChecksum.ll
  LLVM_SPIRV :: DebugInfo/DebugInfoChecksumCompileUnit.ll
  LLVM_SPIRV :: DebugInfo/DebugInfoLLVMArg.ll
  LLVM_SPIRV :: DebugInfo/DebugInfoTypeBasic.ll
  LLVM_SPIRV :: DebugInfo/DebugInfoTypeInheritance.ll
  LLVM_SPIRV :: DebugInfo/Generic/inlined-locations.ll
  LLVM_SPIRV :: DebugInfo/NonSemantic/DIImportedEntity.ll
  ...TRUNCATED...
  LLVM_SPIRV :: transcoding/OpGroupAllAny.ll
  LLVM_SPIRV :: transcoding/image_signedness.ll
  LLVM_SPIRV :: transcoding/sub_group_ballot.ll
  LLVM_SPIRV :: transcoding/sub_group_clustered_reduce.ll
  LLVM_SPIRV :: transcoding/sub_group_non_uniform_arithmetic.ll
  LLVM_SPIRV :: transcoding/sub_group_non_uniform_vote.ll


Testing Time: 21.15s

Total Discovered Tests: 751
  Passed           : 628 (83.62%)
  Expectedly Failed:   4 (0.53%)
  Failed           : 119 (15.85%)

Full text file from run:
llvm-spirv-asan.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions