[llvm] [ValueLattice][SCCP] Consider provenance for predicate-derived pointer constants (PR #160083)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 7 01:54:41 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-asan` running on `sanitizer-buildbot7` while building `llvm` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/24/builds/22893
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[98/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RISCVAttributeParser.cpp.o
[99/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/SmallPtrSet.cpp.o
[100/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Atomic.cpp.o
[101/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/OptionStrCmp.cpp.o
[102/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/CachePruning.cpp.o
[103/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
[104/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/SlowDynamicAPInt.cpp.o
[105/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MSP430AttributeParser.cpp.o
[106/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Valgrind.cpp.o
[107/5957] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o
FAILED: [code=1] lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/Support -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/../third-party/siphash/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/../libc -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -UNDEBUG -Wno-c99-extensions -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o -c /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/regcomp.c
=================================================================
==373462==ERROR: AddressSanitizer: heap-use-after-free on address 0xeb8209a2253a at pc 0xc41743417c28 bp 0xfffff65eb930 sp 0xfffff65eb928
READ of size 1 at 0xeb8209a2253a thread T0
#0 0xc41743417c24 in mayHaveDifferentProvenance /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Analysis/ValueLattice.h:508:52
#1 0xc41743417c24 in llvm::SCCPInstVisitor::visitGetElementPtrInst(llvm::GetElementPtrInst&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Utils/SCCPSolver.cpp:1892:18
#2 0xc4174341d32c in llvm::SCCPInstVisitor::solve() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Utils/SCCPSolver.cpp:2278:9
#3 0xc417436ddda0 in runSCCP /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Scalar/SCCP.cpp:82:12
#4 0xc417436ddda0 in llvm::SCCPPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Scalar/SCCP.cpp:134:8
#5 0xc4173f5be46c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#6 0xc4173f5be46c in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#7 0xc4173dbe801c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#8 0xc4173dbe801c in llvm::CGSCCToFunctionPassAdaptor::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:548:38
#9 0xc4173dbdd4fc in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#10 0xc4173dbdd4fc in llvm::PassManager<llvm::LazyCallGraph::SCC, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:94:38
#11 0xc4173dbe4e80 in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#12 0xc4173dbe4e80 in llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:420:38
#13 0xc4173dbe1144 in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#14 0xc4173dbe1144 in llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:281:44
#15 0xc4173f5bc16c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#16 0xc4173f5bc16c in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#17 0xc417430d4204 in llvm::ModuleInlinerWrapperPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/IPO/Inliner.cpp:646:7
#18 0xc4173f5bc16c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#19 0xc4173f5bc16c in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#20 0xc41741890c84 in (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>&, std::__1::unique_ptr<llvm::ToolOutputFile, std::__1::default_delete<llvm::ToolOutputFile>>&, clang::BackendConsumer*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1225:9
#21 0xc4174187e48c in emitAssembly /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1366:3
#22 0xc4174187e48c in clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1543:13
#23 0xc417418a7df0 in clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:322:3
#24 0xc4174537329c in clang::ParseAST(clang::Sema&, bool, bool) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Parse/ParseAST.cpp:178:13
#25 0xc417418b26b4 in clang::CodeGenAction::ExecuteAction() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:1166:30
#26 0xc41742432bbc in clang::FrontendAction::Execute() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1346:3
#27 0xc417423054a0 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1035:33
#28 0xc417425ecc5c in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:331:25
#29 0xc417397b72c8 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/cc1_main.cpp:296:13
#30 0xc417397aef2c in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/driver.cpp:229:12
#31 0xc417397b543c in operator() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/driver.cpp:379:12
#32 0xc417397b543c in int llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext const&)::$_0>(long, llvm::SmallVectorImpl<char const*>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#33 0xc41741f5b7bc in operator() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
Step 12 (build stage3/asan build) failure: build stage3/asan build (failure)
...
[98/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RISCVAttributeParser.cpp.o
[99/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/SmallPtrSet.cpp.o
[100/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Atomic.cpp.o
[101/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/OptionStrCmp.cpp.o
[102/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/CachePruning.cpp.o
[103/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/AMDGPUMetadata.cpp.o
[104/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/SlowDynamicAPInt.cpp.o
[105/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MSP430AttributeParser.cpp.o
[106/5957] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Valgrind.cpp.o
[107/5957] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o
FAILED: [code=1] lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/Support -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/../third-party/siphash/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/../libc -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -UNDEBUG -Wno-c99-extensions -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o -c /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/regcomp.c
=================================================================
==373462==ERROR: AddressSanitizer: heap-use-after-free on address 0xeb8209a2253a at pc 0xc41743417c28 bp 0xfffff65eb930 sp 0xfffff65eb928
READ of size 1 at 0xeb8209a2253a thread T0
#0 0xc41743417c24 in mayHaveDifferentProvenance /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Analysis/ValueLattice.h:508:52
#1 0xc41743417c24 in llvm::SCCPInstVisitor::visitGetElementPtrInst(llvm::GetElementPtrInst&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Utils/SCCPSolver.cpp:1892:18
#2 0xc4174341d32c in llvm::SCCPInstVisitor::solve() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Utils/SCCPSolver.cpp:2278:9
#3 0xc417436ddda0 in runSCCP /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Scalar/SCCP.cpp:82:12
#4 0xc417436ddda0 in llvm::SCCPPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Scalar/SCCP.cpp:134:8
#5 0xc4173f5be46c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#6 0xc4173f5be46c in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#7 0xc4173dbe801c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#8 0xc4173dbe801c in llvm::CGSCCToFunctionPassAdaptor::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:548:38
#9 0xc4173dbdd4fc in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#10 0xc4173dbdd4fc in llvm::PassManager<llvm::LazyCallGraph::SCC, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:94:38
#11 0xc4173dbe4e80 in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#12 0xc4173dbe4e80 in llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:420:38
#13 0xc4173dbe1144 in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#14 0xc4173dbe1144 in llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:281:44
#15 0xc4173f5bc16c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#16 0xc4173f5bc16c in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#17 0xc417430d4204 in llvm::ModuleInlinerWrapperPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/IPO/Inliner.cpp:646:7
#18 0xc4173f5bc16c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#19 0xc4173f5bc16c in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#20 0xc41741890c84 in (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>&, std::__1::unique_ptr<llvm::ToolOutputFile, std::__1::default_delete<llvm::ToolOutputFile>>&, clang::BackendConsumer*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1225:9
#21 0xc4174187e48c in emitAssembly /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1366:3
#22 0xc4174187e48c in clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1543:13
#23 0xc417418a7df0 in clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:322:3
#24 0xc4174537329c in clang::ParseAST(clang::Sema&, bool, bool) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Parse/ParseAST.cpp:178:13
#25 0xc417418b26b4 in clang::CodeGenAction::ExecuteAction() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:1166:30
#26 0xc41742432bbc in clang::FrontendAction::Execute() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1346:3
#27 0xc417423054a0 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1035:33
#28 0xc417425ecc5c in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:331:25
#29 0xc417397b72c8 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/cc1_main.cpp:296:13
#30 0xc417397aef2c in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/driver.cpp:229:12
#31 0xc417397b543c in operator() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/driver.cpp:379:12
#32 0xc417397b543c in int llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext const&)::$_0>(long, llvm::SmallVectorImpl<char const*>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#33 0xc41741f5b7bc in operator() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
Step 13 (stage3/asan check) failure: stage3/asan check (failure)
...
ninja: Entering directory `llvm_build2_asan'
[1/6993] Generating VCSRevision.h
[2/6993] Linking CXX static library lib/libLLVMDemangle.a
[3/6993] Building CXX object utils/TableGen/CMakeFiles/llvm-min-tblgen.dir/llvm-min-tblgen.cpp.o
[4/6993] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_portable.c.o
[5/6993] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_neon.c.o
[6/6993] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/Line.cpp.o
[7/6993] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/CodeViewError.cpp.o
[8/6993] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGTimer.cpp.o
[9/6993] Building C object lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o
FAILED: [code=1] lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/Support -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/../third-party/siphash/include -I/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/../libc -fPIC -fno-semantic-interposition -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -UNDEBUG -Wno-c99-extensions -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/regcomp.c.o -c /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Support/regcomp.c
=================================================================
==385560==ERROR: AddressSanitizer: heap-use-after-free on address 0xfa94db42244a at pc 0xaf78d6297c28 bp 0xffffef588ed0 sp 0xffffef588ec8
READ of size 1 at 0xfa94db42244a thread T0
#0 0xaf78d6297c24 in mayHaveDifferentProvenance /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/Analysis/ValueLattice.h:508:52
#1 0xaf78d6297c24 in llvm::SCCPInstVisitor::visitGetElementPtrInst(llvm::GetElementPtrInst&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Utils/SCCPSolver.cpp:1892:18
#2 0xaf78d629d32c in llvm::SCCPInstVisitor::solve() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Utils/SCCPSolver.cpp:2278:9
#3 0xaf78d655dda0 in runSCCP /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Scalar/SCCP.cpp:82:12
#4 0xaf78d655dda0 in llvm::SCCPPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/Scalar/SCCP.cpp:134:8
#5 0xaf78d243e46c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#6 0xaf78d243e46c in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#7 0xaf78d0a6801c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#8 0xaf78d0a6801c in llvm::CGSCCToFunctionPassAdaptor::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:548:38
#9 0xaf78d0a5d4fc in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#10 0xaf78d0a5d4fc in llvm::PassManager<llvm::LazyCallGraph::SCC, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:94:38
#11 0xaf78d0a64e80 in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#12 0xaf78d0a64e80 in llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:420:38
#13 0xaf78d0a61144 in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#14 0xaf78d0a61144 in llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Analysis/CGSCCPassManager.cpp:281:44
#15 0xaf78d243c16c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#16 0xaf78d243c16c in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#17 0xaf78d5f54204 in llvm::ModuleInlinerWrapperPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/lib/Transforms/IPO/Inliner.cpp:646:7
#18 0xaf78d243c16c in run /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:84:12
#19 0xaf78d243c16c in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:76:38
#20 0xaf78d4710c84 in (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>&, std::__1::unique_ptr<llvm::ToolOutputFile, std::__1::default_delete<llvm::ToolOutputFile>>&, clang::BackendConsumer*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1225:9
#21 0xaf78d46fe48c in emitAssembly /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1366:3
#22 0xaf78d46fe48c in clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1543:13
#23 0xaf78d4727df0 in clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:322:3
#24 0xaf78d81f329c in clang::ParseAST(clang::Sema&, bool, bool) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Parse/ParseAST.cpp:178:13
#25 0xaf78d47326b4 in clang::CodeGenAction::ExecuteAction() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:1166:30
#26 0xaf78d52b2bbc in clang::FrontendAction::Execute() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1346:3
#27 0xaf78d51854a0 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1035:33
#28 0xaf78d546cc5c in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:331:25
#29 0xaf78cc6372c8 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/cc1_main.cpp:296:13
#30 0xaf78cc62ef2c in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/driver.cpp:229:12
#31 0xaf78cc63543c in operator() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/tools/driver/driver.cpp:379:12
#32 0xaf78cc63543c in int llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext const&)::$_0>(long, llvm::SmallVectorImpl<char const*>&) /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:46:12
#33 0xaf78d4ddb7bc in operator() /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/include/llvm/ADT/STLFunctionalExtras.h:69:12
```
</details>
https://github.com/llvm/llvm-project/pull/160083
More information about the llvm-commits
mailing list