[llvm] [LLVM][Instrumentation] Add numerical sanitizer (PR #85916)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 16:10:07 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/919
Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[633/634] Running the LLVM regression tests
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
An error occurred retrieving the git revision: Command '['git', '-C', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm', 'rev-parse', 'HEAD']' returned non-zero exit status 129.
-- Testing: 54291 tests, 48 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.
FAIL: LLVM :: Instrumentation/NumericalStabilitySanitizer/basic.ll (30476 of 54291)
******************** TEST 'LLVM :: Instrumentation/NumericalStabilitySanitizer/basic.ll' FAILED ********************
Exit Code: 2
Command Output (stderr):
--
RUN: at line 2: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -passes=nsan -nsan-shadow-type-mapping=dqq -nsan-truncate-fcmp-eq=false -S /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll | /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll --check-prefixes=CHECK,DQQ
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll --check-prefixes=CHECK,DQQ
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -passes=nsan -nsan-shadow-type-mapping=dqq -nsan-truncate-fcmp-eq=false -S /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -passes=nsan -nsan-shadow-type-mapping=dqq -nsan-truncate-fcmp-eq=false -S /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll
1. Running pass "nsan" on module "/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll"
#0 0x0000000002489357 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:13
#1 0x0000000002487510 llvm::sys::RunSignalHandlers() /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Support/Signals.cpp:106:18
#2 0x0000000002489a1f SignalHandler(int) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
#3 0x00007f8bc33b7630 __restore_rt sigaction.c:0:0
#4 0x00000000022bd551 llvm::Type::isVoidTy() const /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/IR/Type.h:140:46
#5 0x00000000022bd551 llvm::Intrinsic::getType(llvm::LLVMContext&, unsigned int, llvm::ArrayRef<llvm::Type*>) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/IR/Function.cpp:1466:41
#6 0x00000000022bf2af llvm::Intrinsic::getDeclaration(llvm::Module*, unsigned int, llvm::ArrayRef<llvm::Type*>) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/IR/Function.cpp:1487:14
#7 0x00000000022c66ca llvm::IRBuilderBase::createCallHelper(llvm::Function*, llvm::ArrayRef<llvm::Value*>, llvm::Twine const&, llvm::Instruction*, llvm::ArrayRef<llvm::OperandBundleDefT<llvm::Value*>>) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/IR/IRBuilder.cpp:0:0
#8 0x00000000022c66ca llvm::IRBuilderBase::CreateIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>, llvm::ArrayRef<llvm::Value*>, llvm::Instruction*, llvm::Twine const&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/IR/IRBuilder.cpp:939:10
#9 0x0000000001677568 (anonymous namespace)::NumericalStabilitySanitizer::maybeHandleKnownCallBase(llvm::CallBase&, llvm::Type*, llvm::Type*, llvm::TargetLibraryInfo const&, (anonymous namespace)::ValueToShadowMap const&, llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1557:34
#10 0x0000000001677568 (anonymous namespace)::NumericalStabilitySanitizer::handleCallBase(llvm::CallBase&, llvm::Type*, llvm::Type*, llvm::TargetLibraryInfo const&, (anonymous namespace)::ValueToShadowMap const&, llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1578:11
#11 0x0000000001672026 (anonymous namespace)::NumericalStabilitySanitizer::createShadowValueWithOperandsAvailable(llvm::Instruction&, llvm::TargetLibraryInfo const&, (anonymous namespace)::ValueToShadowMap const&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1615:12
#12 0x0000000001672026 (anonymous namespace)::NumericalStabilitySanitizer::maybeCreateShadowValue(llvm::Instruction&, llvm::TargetLibraryInfo const&, (anonymous namespace)::ValueToShadowMap&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1730:21
#13 0x000000000166f591 __gnu_cxx::__normal_iterator<llvm::Instruction**, std::vector<llvm::Instruction*, std::allocator<llvm::Instruction*>>>::operator++() /opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/bits/stl_iterator.h:1005:2
#14 0x000000000166f591 (anonymous namespace)::NumericalStabilitySanitizer::sanitizeFunction(llvm::Function&, llvm::TargetLibraryInfo const&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:2094:23
#15 0x000000000166f591 llvm::NumericalStabilitySanitizerPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:584:10
#16 0x0000000000eb4dad llvm::detail::PassModel<llvm::Module, llvm::NumericalStabilitySanitizerPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:5
#17 0x0000000002328d76 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:79:8
#18 0x000000000075b9f6 llvm::SmallPtrSetImplBase::isSmall() const /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:197:33
#19 0x000000000075b9f6 llvm::SmallPtrSetImplBase::~SmallPtrSetImplBase() /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:84:10
#20 0x000000000075b9f6 llvm::PreservedAnalyses::~PreservedAnalyses() /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/IR/Analysis.h:111:7
#21 0x000000000075b9f6 llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::ArrayRef<std::function<void (llvm::PassBuilder&)>>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/tools/opt/NewPMDriver.cpp:547:3
#22 0x000000000075106b optMain /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/tools/opt/optdriver.cpp:739:12
#23 0x000000000074baca main /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/tools/opt/opt.cpp:25:35
#24 0x00007f8bc23d0555 __libc_start_main /usr/src/debug/glibc-2.17-c758a686/csu/../csu/libc-start.c:300:0
#25 0x000000000074ba07 _start (/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt+0x74ba07)
Step 8 (check-llvm) failure: check-llvm (failure)
...
[633/634] Running the LLVM regression tests
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
An error occurred retrieving the git revision: Command '['git', '-C', '/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm', 'rev-parse', 'HEAD']' returned non-zero exit status 129.
-- Testing: 54291 tests, 48 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.
FAIL: LLVM :: Instrumentation/NumericalStabilitySanitizer/basic.ll (30476 of 54291)
******************** TEST 'LLVM :: Instrumentation/NumericalStabilitySanitizer/basic.ll' FAILED ********************
Exit Code: 2
Command Output (stderr):
--
RUN: at line 2: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -passes=nsan -nsan-shadow-type-mapping=dqq -nsan-truncate-fcmp-eq=false -S /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll | /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll --check-prefixes=CHECK,DQQ
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll --check-prefixes=CHECK,DQQ
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -passes=nsan -nsan-shadow-type-mapping=dqq -nsan-truncate-fcmp-eq=false -S /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt -passes=nsan -nsan-shadow-type-mapping=dqq -nsan-truncate-fcmp-eq=false -S /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll
1. Running pass "nsan" on module "/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/test/Instrumentation/NumericalStabilitySanitizer/basic.ll"
#0 0x0000000002489357 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:13
#1 0x0000000002487510 llvm::sys::RunSignalHandlers() /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Support/Signals.cpp:106:18
#2 0x0000000002489a1f SignalHandler(int) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Support/Unix/Signals.inc:413:1
#3 0x00007f8bc33b7630 __restore_rt sigaction.c:0:0
#4 0x00000000022bd551 llvm::Type::isVoidTy() const /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/IR/Type.h:140:46
#5 0x00000000022bd551 llvm::Intrinsic::getType(llvm::LLVMContext&, unsigned int, llvm::ArrayRef<llvm::Type*>) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/IR/Function.cpp:1466:41
#6 0x00000000022bf2af llvm::Intrinsic::getDeclaration(llvm::Module*, unsigned int, llvm::ArrayRef<llvm::Type*>) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/IR/Function.cpp:1487:14
#7 0x00000000022c66ca llvm::IRBuilderBase::createCallHelper(llvm::Function*, llvm::ArrayRef<llvm::Value*>, llvm::Twine const&, llvm::Instruction*, llvm::ArrayRef<llvm::OperandBundleDefT<llvm::Value*>>) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/IR/IRBuilder.cpp:0:0
#8 0x00000000022c66ca llvm::IRBuilderBase::CreateIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>, llvm::ArrayRef<llvm::Value*>, llvm::Instruction*, llvm::Twine const&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/IR/IRBuilder.cpp:939:10
#9 0x0000000001677568 (anonymous namespace)::NumericalStabilitySanitizer::maybeHandleKnownCallBase(llvm::CallBase&, llvm::Type*, llvm::Type*, llvm::TargetLibraryInfo const&, (anonymous namespace)::ValueToShadowMap const&, llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1557:34
#10 0x0000000001677568 (anonymous namespace)::NumericalStabilitySanitizer::handleCallBase(llvm::CallBase&, llvm::Type*, llvm::Type*, llvm::TargetLibraryInfo const&, (anonymous namespace)::ValueToShadowMap const&, llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1578:11
#11 0x0000000001672026 (anonymous namespace)::NumericalStabilitySanitizer::createShadowValueWithOperandsAvailable(llvm::Instruction&, llvm::TargetLibraryInfo const&, (anonymous namespace)::ValueToShadowMap const&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1615:12
#12 0x0000000001672026 (anonymous namespace)::NumericalStabilitySanitizer::maybeCreateShadowValue(llvm::Instruction&, llvm::TargetLibraryInfo const&, (anonymous namespace)::ValueToShadowMap&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1730:21
#13 0x000000000166f591 __gnu_cxx::__normal_iterator<llvm::Instruction**, std::vector<llvm::Instruction*, std::allocator<llvm::Instruction*>>>::operator++() /opt/rh/devtoolset-10/root/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/bits/stl_iterator.h:1005:2
#14 0x000000000166f591 (anonymous namespace)::NumericalStabilitySanitizer::sanitizeFunction(llvm::Function&, llvm::TargetLibraryInfo const&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:2094:23
#15 0x000000000166f591 llvm::NumericalStabilitySanitizerPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:584:10
#16 0x0000000000eb4dad llvm::detail::PassModel<llvm::Module, llvm::NumericalStabilitySanitizerPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:90:5
#17 0x0000000002328d76 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:79:8
#18 0x000000000075b9f6 llvm::SmallPtrSetImplBase::isSmall() const /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:197:33
#19 0x000000000075b9f6 llvm::SmallPtrSetImplBase::~SmallPtrSetImplBase() /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/ADT/SmallPtrSet.h:84:10
#20 0x000000000075b9f6 llvm::PreservedAnalyses::~PreservedAnalyses() /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/include/llvm/IR/Analysis.h:111:7
#21 0x000000000075b9f6 llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::ArrayRef<std::function<void (llvm::PassBuilder&)>>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool) /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/tools/opt/NewPMDriver.cpp:547:3
#22 0x000000000075106b optMain /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/tools/opt/optdriver.cpp:739:12
#23 0x000000000074baca main /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/tools/opt/opt.cpp:25:35
#24 0x00007f8bc23d0555 __libc_start_main /usr/src/debug/glibc-2.17-c758a686/csu/../csu/libc-start.c:300:0
#25 0x000000000074ba07 _start (/scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/opt+0x74ba07)
```
https://github.com/llvm/llvm-project/pull/85916
More information about the llvm-commits
mailing list